/var/opt/gitlab/postgresql/data missing after downgrade from 12.0 to 11.10

Summary

The postgres installation for gitlab in /var/opt/gitlab/postgresql/data is missing.

Steps to reproduce

Don't know how to reporduce.

What is the current bug behavior?

gitlab-ctl status is shows postgresql as down after running gitlab-ctl start

What is the expected correct behavior?

gitlab-ctl start should start all the dependencies and gitlab-ctl status should keep postgresql running

Relevant logs

Relevant logs
==> /var/log/gitlab/postgres-exporter/current <==
2021-09-01_09:10:42.64745 time="2021-09-01T14:40:42+05:30" level=info msg="Established new database connection." source="postgres_exporter.go:1035"
2021-09-01_09:10:42.64748 time="2021-09-01T14:40:42+05:30" level=info msg="Error while closing non-pinging DB connection: " source="postgres_exporter.go:1041"
2021-09-01_09:10:42.64749 time="2021-09-01T14:40:42+05:30" level=info msg="Error opening connection to database (user=gitlab-psql%20host=/var/opt/gitlab/postgresql%20database=postgres%20sslmode=allow): dial unix /var/opt/gitlab/postgresql/.s.PGSQL.5432: connect: no such file or directory" source="postgres_exporter.go:1070"

==> /var/log/gitlab/postgresql/current <== 2021-09-01_09:10:43.06632 FATAL: "/var/opt/gitlab/postgresql/data" is not a valid data directory 2021-09-01_09:10:43.06634 DETAIL: File "/var/opt/gitlab/postgresql/data/PG_VERSION" does not contain valid data. 2021-09-01_09:10:43.06635 HINT: You might need to initdb. 2021-09-01_09:10:44.09782 FATAL: "/var/opt/gitlab/postgresql/data" is not a valid data directory 2021-09-01_09:10:44.09783 DETAIL: File "/var/opt/gitlab/postgresql/data/PG_VERSION" does not contain valid data. 2021-09-01_09:10:44.09784 HINT: You might need to initdb. 2021-09-01_09:10:45.13285 FATAL: "/var/opt/gitlab/postgresql/data" is not a valid data directory 2021-09-01_09:10:45.13286 DETAIL: File "/var/opt/gitlab/postgresql/data/PG_VERSION" does not contain valid data. 2021-09-01_09:10:45.13287 HINT: You might need to initdb. 2021-09-01_09:10:46.16118 FATAL: "/var/opt/gitlab/postgresql/data" is not a valid data directory 2021-09-01_09:10:46.16119 DETAIL: File "/var/opt/gitlab/postgresql/data/PG_VERSION" does not contain valid data. 2021-09-01_09:10:46.16120 HINT: You might need to initdb. 2021-09-01_09:10:47.19242 FATAL: "/var/opt/gitlab/postgresql/data" is not a valid data directory 2021-09-01_09:10:47.19243 DETAIL: File "/var/opt/gitlab/postgresql/data/PG_VERSION" does not contain valid data. 2021-09-01_09:10:47.19244 HINT: You might need to initdb. 2021-09-01_09:10:48.22483 FATAL: "/var/opt/gitlab/postgresql/data" is not a valid data directory 2021-09-01_09:10:48.22485 DETAIL: File "/var/opt/gitlab/postgresql/data/PG_VERSION" does not contain valid data. 2021-09-01_09:10:48.22486 HINT: You might need to initdb.

==> /var/log/gitlab/gitlab-rails/production.log <== Creating scope :of_projects. Overwriting existing method MergeRequest.of_projects. Creating scope :join_project. Overwriting existing method MergeRequest.join_project. Creating scope :references_project. Overwriting existing method MergeRequest.references_project. Creating scope :system. Overwriting existing method Note.system. Creating scope :group_view_details. Overwriting existing method User.group_view_details.

==> /var/log/gitlab/postgresql/current <== 2021-09-01_09:10:49.26141 FATAL: "/var/opt/gitlab/postgresql/data" is not a valid data directory 2021-09-01_09:10:49.26143 DETAIL: File "/var/opt/gitlab/postgresql/data/PG_VERSION" does not contain valid data. 2021-09-01_09:10:49.26144 HINT: You might need to initdb.

==> /var/log/gitlab/gitlab-rails/production.log <== Creating scope :opened. Overwriting existing method Epic.opened. Creating scope :closed. Overwriting existing method Epic.closed. Creating scope :of_projects. Overwriting existing method MergeRequest.of_projects. Creating scope :join_project. Overwriting existing method MergeRequest.join_project. Creating scope :references_project. Overwriting existing method MergeRequest.references_project. Creating scope :system. Overwriting existing method Note.system.

==> /var/log/gitlab/postgresql/current <== 2021-09-01_09:10:50.29282 FATAL: "/var/opt/gitlab/postgresql/data" is not a valid data directory 2021-09-01_09:10:50.29284 DETAIL: File "/var/opt/gitlab/postgresql/data/PG_VERSION" does not contain valid data. 2021-09-01_09:10:50.29285 HINT: You might need to initdb.

==> /var/log/gitlab/gitlab-rails/production.log <== Creating scope :group_view_details. Overwriting existing method User.group_view_details. Creating scope :opened. Overwriting existing method Epic.opened. Creating scope :closed. Overwriting existing method Epic.closed.

==> /var/log/gitlab/gitlab-rails/sidekiq.log <== 2021-09-01_09:10:51.26283 2021-09-01T09:10:51.262Z 2870 TID-oxtqk6i46 INFO: Booting Sidekiq 5.2.5 with redis options {:path=>"/var/opt/gitlab/redis/redis.socket", :namespace=>"resque:gitlab", :id=>"Sidekiq-server-PID-2870", :url=>nil} 2021-09-01_09:10:51.27254 could not connect to server: No such file or directory 2021-09-01_09:10:51.27255 Is the server running locally and accepting 2021-09-01_09:10:51.27256 connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"? 2021-09-01_09:10:51.27393 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/pg-1.1.4/lib/pg.rb:56:in initialize' 2021-09-01_09:10:51.27394 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/pg-1.1.4/lib/pg.rb:56:in new' 2021-09-01_09:10:51.27396 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/pg-1.1.4/lib/pg.rb:56:in connect' 2021-09-01_09:10:51.27397 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:673:in connect' 2021-09-01_09:10:51.27397 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:217:in initialize' 2021-09-01_09:10:51.27398 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in new' 2021-09-01_09:10:51.27399 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in postgresql_connection' 2021-09-01_09:10:51.27400 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:729:in new_connection' 2021-09-01_09:10:51.27400 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:773:in checkout_new_connection' 2021-09-01_09:10:51.27403 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:752:in try_to_checkout_new_connection' 2021-09-01_09:10:51.27404 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:713:in acquire_connection' 2021-09-01_09:10:51.27405 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:490:in checkout' 2021-09-01_09:10:51.27406 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:364:in connection' 2021-09-01_09:10:51.27406 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:883:in retrieve_connection' 2021-09-01_09:10:51.27407 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_handling.rb:128:in retrieve_connection' 2021-09-01_09:10:51.27411 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_handling.rb:91:in connection' 2021-09-01_09:10:51.27412 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/model_schema.rb:331:in table_exists?' 2021-09-01_09:10:51.27412 /opt/gitlab/embedded/service/gitlab-rails/config/initializers/sidekiq.rb:48:in block in <top (required)>' 2021-09-01_09:10:51.27413 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq.rb:75:in configure_server' 2021-09-01_09:10:51.27414 /opt/gitlab/embedded/service/gitlab-rails/config/initializers/sidekiq.rb:20:in <top (required)>' 2021-09-01_09:10:51.27414 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:287:in load' 2021-09-01_09:10:51.27415 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:287:in block in load' 2021-09-01_09:10:51.27416 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:259:in load_dependency' 2021-09-01_09:10:51.27416 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:287:in load' 2021-09-01_09:10:51.27420 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/engine.rb:648:in block in load_config_initializer' 2021-09-01_09:10:51.27421 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7.2/lib/active_support/notifications.rb:166:in instrument' 2021-09-01_09:10:51.27421 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/engine.rb:647:in load_config_initializer' 2021-09-01_09:10:51.27422 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/engine.rb:612:in block (2 levels) in class:Engine' 2021-09-01_09:10:51.27423 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/engine.rb:611:in each' 2021-09-01_09:10:51.27423 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/engine.rb:611:in block in class:Engine' 2021-09-01_09:10:51.27424 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:30:in instance_exec' 2021-09-01_09:10:51.27425 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:30:in run' 2021-09-01_09:10:51.27425 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:55:in block in run_initializers' 2021-09-01_09:10:51.27428 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:228:in block in tsort_each' 2021-09-01_09:10:51.27429 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' 2021-09-01_09:10:51.27430 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:422:in block (2 levels) in each_strongly_connected_component_from' 2021-09-01_09:10:51.27430 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:431:in each_strongly_connected_component_from' 2021-09-01_09:10:51.27431 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:421:in block in each_strongly_connected_component_from' 2021-09-01_09:10:51.27432 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:44:in each' 2021-09-01_09:10:51.27432 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:44:in tsort_each_child' 2021-09-01_09:10:51.27433 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:415:in call' 2021-09-01_09:10:51.27434 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:415:in each_strongly_connected_component_from' 2021-09-01_09:10:51.27434 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:349:in block in each_strongly_connected_component' 2021-09-01_09:10:51.27438 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:347:in each' 2021-09-01_09:10:51.27438 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:347:in call' 2021-09-01_09:10:51.27439 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:347:in each_strongly_connected_component' 2021-09-01_09:10:51.27440 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:226:in tsort_each' 2021-09-01_09:10:51.27441 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:205:in tsort_each' 2021-09-01_09:10:51.27441 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:54:in run_initializers' 2021-09-01_09:10:51.27442 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/application.rb:352:in initialize!' 2021-09-01_09:10:51.27443 /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:6:in <top (required)>' 2021-09-01_09:10:51.27443 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/cli.rb:288:in require' 2021-09-01_09:10:51.27444 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/cli.rb:288:in boot_system' 2021-09-01_09:10:51.27445 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/cli.rb:46:in run' 2021-09-01_09:10:51.27445 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.5/bin/sidekiq:12:in <top (required)>' 2021-09-01_09:10:51.27449 /opt/gitlab/embedded/bin/sidekiq:23:in load' 2021-09-01_09:10:51.27449 /opt/gitlab/embedded/bin/sidekiq:23:in <top (required)>' 2021-09-01_09:10:51.27450 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in load' 2021-09-01_09:10:51.27451 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in kernel_load' 2021-09-01_09:10:51.27451 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:28:in run' 2021-09-01_09:10:51.27452 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/cli.rb:463:in exec' 2021-09-01_09:10:51.27453 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run' 2021-09-01_09:10:51.27453 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in invoke_command' 2021-09-01_09:10:51.27454 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor.rb:387:in dispatch' 2021-09-01_09:10:51.27455 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/cli.rb:27:in dispatch' 2021-09-01_09:10:51.27455 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/base.rb:466:in start' 2021-09-01_09:10:51.27458 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/cli.rb:18:in start' 2021-09-01_09:10:51.27459 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/exe/bundle:30:in block in <top (required)>' 2021-09-01_09:10:51.27460 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/friendly_errors.rb:124:in with_friendly_errors' 2021-09-01_09:10:51.27460 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/exe/bundle:22:in <top (required)>' 2021-09-01_09:10:51.27461 /opt/gitlab/embedded/bin/bundle:23:in load' 2021-09-01_09:10:51.27462 /opt/gitlab/embedded/bin/bundle:23:in '

==> /var/log/gitlab/sidekiq/current <== 2021-09-01_09:10:51.26283 2021-09-01T09:10:51.262Z 2870 TID-oxtqk6i46 INFO: Booting Sidekiq 5.2.5 with redis options {:path=>"/var/opt/gitlab/redis/redis.socket", :namespace=>"resque:gitlab", :id=>"Sidekiq-server-PID-2870", :url=>nil} 2021-09-01_09:10:51.27254 could not connect to server: No such file or directory 2021-09-01_09:10:51.27255 Is the server running locally and accepting 2021-09-01_09:10:51.27256 connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"? 2021-09-01_09:10:51.27393 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/pg-1.1.4/lib/pg.rb:56:in initialize' 2021-09-01_09:10:51.27394 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/pg-1.1.4/lib/pg.rb:56:in new' 2021-09-01_09:10:51.27396 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/pg-1.1.4/lib/pg.rb:56:in connect' 2021-09-01_09:10:51.27397 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:673:in connect' 2021-09-01_09:10:51.27397 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:217:in initialize' 2021-09-01_09:10:51.27398 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in new' 2021-09-01_09:10:51.27399 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in postgresql_connection' 2021-09-01_09:10:51.27400 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:729:in new_connection' 2021-09-01_09:10:51.27400 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:773:in checkout_new_connection' 2021-09-01_09:10:51.27403 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:752:in try_to_checkout_new_connection' 2021-09-01_09:10:51.27404 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:713:in acquire_connection' 2021-09-01_09:10:51.27405 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:490:in checkout' 2021-09-01_09:10:51.27406 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:364:in connection' 2021-09-01_09:10:51.27406 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:883:in retrieve_connection' 2021-09-01_09:10:51.27407 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_handling.rb:128:in retrieve_connection' 2021-09-01_09:10:51.27411 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/connection_handling.rb:91:in connection' 2021-09-01_09:10:51.27412 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/model_schema.rb:331:in table_exists?' 2021-09-01_09:10:51.27412 /opt/gitlab/embedded/service/gitlab-rails/config/initializers/sidekiq.rb:48:in block in <top (required)>' 2021-09-01_09:10:51.27413 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq.rb:75:in configure_server' 2021-09-01_09:10:51.27414 /opt/gitlab/embedded/service/gitlab-rails/config/initializers/sidekiq.rb:20:in <top (required)>' 2021-09-01_09:10:51.27414 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:287:in load' 2021-09-01_09:10:51.27415 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:287:in block in load' 2021-09-01_09:10:51.27416 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:259:in load_dependency' 2021-09-01_09:10:51.27416 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:287:in load' 2021-09-01_09:10:51.27420 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/engine.rb:648:in block in load_config_initializer' 2021-09-01_09:10:51.27421 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7.2/lib/active_support/notifications.rb:166:in instrument' 2021-09-01_09:10:51.27421 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/engine.rb:647:in load_config_initializer' 2021-09-01_09:10:51.27422 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/engine.rb:612:in block (2 levels) in class:Engine' 2021-09-01_09:10:51.27423 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/engine.rb:611:in each' 2021-09-01_09:10:51.27423 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/engine.rb:611:in block in class:Engine' 2021-09-01_09:10:51.27424 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:30:in instance_exec' 2021-09-01_09:10:51.27425 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:30:in run' 2021-09-01_09:10:51.27425 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:55:in block in run_initializers' 2021-09-01_09:10:51.27428 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:228:in block in tsort_each' 2021-09-01_09:10:51.27429 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' 2021-09-01_09:10:51.27430 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:422:in block (2 levels) in each_strongly_connected_component_from' 2021-09-01_09:10:51.27430 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:431:in each_strongly_connected_component_from' 2021-09-01_09:10:51.27431 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:421:in block in each_strongly_connected_component_from' 2021-09-01_09:10:51.27432 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:44:in each' 2021-09-01_09:10:51.27432 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:44:in tsort_each_child' 2021-09-01_09:10:51.27433 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:415:in call' 2021-09-01_09:10:51.27434 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:415:in each_strongly_connected_component_from' 2021-09-01_09:10:51.27434 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:349:in block in each_strongly_connected_component' 2021-09-01_09:10:51.27438 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:347:in each' 2021-09-01_09:10:51.27438 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:347:in call' 2021-09-01_09:10:51.27439 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:347:in each_strongly_connected_component' 2021-09-01_09:10:51.27440 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:226:in tsort_each' 2021-09-01_09:10:51.27441 /opt/gitlab/embedded/lib/ruby/2.5.0/tsort.rb:205:in tsort_each' 2021-09-01_09:10:51.27441 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/initializable.rb:54:in run_initializers' 2021-09-01_09:10:51.27442 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/railties-5.0.7.2/lib/rails/application.rb:352:in initialize!' 2021-09-01_09:10:51.27443 /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:6:in <top (required)>' 2021-09-01_09:10:51.27443 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/cli.rb:288:in require' 2021-09-01_09:10:51.27444 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/cli.rb:288:in boot_system' 2021-09-01_09:10:51.27445 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/cli.rb:46:in run' 2021-09-01_09:10:51.27445 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.5/bin/sidekiq:12:in <top (required)>' 2021-09-01_09:10:51.27449 /opt/gitlab/embedded/bin/sidekiq:23:in load' 2021-09-01_09:10:51.27449 /opt/gitlab/embedded/bin/sidekiq:23:in <top (required)>' 2021-09-01_09:10:51.27450 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in load' 2021-09-01_09:10:51.27451 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in kernel_load' 2021-09-01_09:10:51.27451 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:28:in run' 2021-09-01_09:10:51.27452 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/cli.rb:463:in exec' 2021-09-01_09:10:51.27453 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run' 2021-09-01_09:10:51.27453 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in invoke_command' 2021-09-01_09:10:51.27454 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor.rb:387:in dispatch' 2021-09-01_09:10:51.27455 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/cli.rb:27:in dispatch' 2021-09-01_09:10:51.27455 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/base.rb:466:in start' 2021-09-01_09:10:51.27458 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/cli.rb:18:in start' 2021-09-01_09:10:51.27459 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/exe/bundle:30:in block in <top (required)>' 2021-09-01_09:10:51.27460 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/friendly_errors.rb:124:in with_friendly_errors' 2021-09-01_09:10:51.27460 /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/bundler-1.17.3/exe/bundle:22:in <top (required)>' 2021-09-01_09:10:51.27461 /opt/gitlab/embedded/bin/bundle:23:in load' 2021-09-01_09:10:51.27462 /opt/gitlab/embedded/bin/bundle:23:in '

Details of package version

Provide the package version installation details
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                          Version                     Architecture                Description
+++-=============================================-===========================-===========================-===============================================================================================
un  gitlab-ce                                                                                 (no description available)
ii  gitlab-ee                                     11.10.0-ee.0                amd64                       GitLab Enterprise Edition (including NGINX, Postgres, Redis)

Environment details

  • Operating System: UBUNTU
  • Installation Target, remove incorrect values:
    • Bare Metal Machine
    • VM: E2E
  • Installation Type, remove incorrect values:
    • Downgrade from version 12
  • Is this a single or multiple node installation?
    • Single
  • Resources
    • CPU: 4-core
    • Memory total: 4GB

Configuration details

Provide the relevant sections of `/etc/gitlab/gitlab.rb`
external_url 'http://gitlab.mywebsite.com'
gitlab_rails['omniauth_enabled'] = true
gitlab_rails['omniauth_providers'] = [
   {
     "name" => "bitbucket",
     "app_id" => "MY_APP_ID",
     "app_secret" => "MY_APP_SECRET",
     "url" => "https://bitbucket.org/"
   }
 ]
nginx['custom_nginx_config'] = "include /etc/nginx/conf.d/mywebsite.conf;"
Edited by Jason Plum