`review-deploy` fails with bundler: failed to load command: unicorn (/srv/gitlab/vendor/bundle/ruby/2.6.0/bin/unicorn)` and `NameError: uninitialized constant Gitlab::Settings`
Job #587684863 failed for f0d53c94:
│ Starting Puma │
│ I, [2020-06-09T15:53:11.543160 #10] INFO -- : Refreshing Gem list │
│ bundler: failed to load command: unicorn (/srv/gitlab/vendor/bundle/ruby/2.6.0/bin/unicorn) │
│ NameError: uninitialized constant Gitlab::Settings │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/active_support.rb:80:in `block in load_missing_constant' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/active_support.rb:9:in `without_bootsnap_cache' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/active_support.rb:80:in `rescue in load_missing_constant' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/active_support.rb:59:in `load_missing_constant' │
│ /srv/gitlab/lib/gitlab.rb:19:in `config' │
│ /srv/gitlab/lib/gitlab/runtime.rb:77:in `action_cable?' │
│ /srv/gitlab/lib/gitlab/runtime.rb:81:in `multi_threaded?' │
│ /srv/gitlab/config/environments/production.rb:81:in `block in <main>' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/railtie.rb:216:in `instance_eval' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/railtie.rb:216:in `configure' │
│ /srv/gitlab/config/environments/production.rb:1:in `<main>' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/engine.rb:613:in `block (2 levels) in <class:Engine>' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/engine.rb:612:in `each' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/engine.rb:612:in `block in <class:Engine>' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:32:in `instance_exec' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:32:in `run' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:61:in `block in run_initializers' │
│ /usr/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each' │
│ /usr/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component' │
│ /usr/lib/ruby/2.6.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from' │
│ /usr/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from' │
│ /usr/lib/ruby/2.6.0/tsort.rb:421:in `block in each_strongly_connected_component_from' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:50:in `each' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:50:in `tsort_each_child' │
│ /usr/lib/ruby/2.6.0/tsort.rb:415:in `call' │
│ /usr/lib/ruby/2.6.0/tsort.rb:415:in `each_strongly_connected_component_from' │
│ /usr/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component' │
│ /usr/lib/ruby/2.6.0/tsort.rb:347:in `each' │
│ /usr/lib/ruby/2.6.0/tsort.rb:347:in `call' │
│ /usr/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component' │
│ /usr/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each' │
│ /usr/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/initializable.rb:60:in `run_initializers' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.1/lib/rails/application.rb:363:in `initialize!' │
│ /srv/gitlab/config/environment.rb:5:in `<top (required)>' │
│ /srv/gitlab/config.ru:19:in `require' │
│ /srv/gitlab/config.ru:19:in `block in <main>' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/rack-2.0.9/lib/rack/builder.rb:55:in `instance_eval' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/rack-2.0.9/lib/rack/builder.rb:55:in `initialize' │
│ /srv/gitlab/config.ru:1:in `new' │
│ /srv/gitlab/config.ru:1:in `<main>' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/unicorn-5.5.5/lib/unicorn.rb:54:in `eval' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/unicorn-5.5.5/lib/unicorn.rb:54:in `block in builder' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/unicorn-5.5.5/lib/unicorn/http_server.rb:795:in `build_app!' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/unicorn-5.5.5/lib/unicorn/http_server.rb:141:in `start' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/unicorn-5.5.5/bin/unicorn:128:in `<top (required)>' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/bin/unicorn:23:in `load' │
│ /srv/gitlab/vendor/bundle/ruby/2.6.0/bin/unicorn:23:in `<top (required)>' │