Upgrading from 15.11.9 to 16.0.4 fails during db migration

Hi all,

I’m having a problem with an upgrade from 15.11.9 to 16.0.4. The error I get at the end of the upgrade is this:

    * bash_hide_env[migrate gitlab-rails database] action run
      [execute] rake aborted!
                migrations_paths setting for ci database must be `db/ci_migrate`
                /opt/gitlab/embedded/service/gitlab-rails/config/initializers/check_decomposition_database_config.rb:6:in `<top (required)>'
                /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:7:in `<top (required)>'
                <internal:/opt/gitlab/embedded/lib/ruby/site_ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
                <internal:/opt/gitlab/embedded/lib/ruby/site_ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
                /opt/gitlab/embedded/bin/bundle:25:in `load'
                /opt/gitlab/embedded/bin/bundle:25:in `<main>'
                Tasks: TOP => gitlab:db:configure => environment
                (See full trace by running task with --trace)

I understand what it’s telling me, but I’m not sure where to change the migrations_paths setting. Any help would be appreciated.

The end result right now is I have 16.0.4 installed, however I get a 502 error when attempting to access Gitlab. Running a gitlab-ctl reconfigure again results in the same db migration error.

EDIT: Here is gitlab-ctl status

# gitlab-ctl status
run: alertmanager: (pid 25764) 1145s; run: log: (pid 3041) 11166s
run: gitaly: (pid 25778) 1144s; run: log: (pid 11108) 2752s
run: gitlab-exporter: (pid 25792) 1144s; run: log: (pid 3046) 11166s
run: gitlab-kas: (pid 25802) 1133s; run: log: (pid 11205) 2748s
run: gitlab-workhorse: (pid 25813) 1133s; run: log: (pid 3022) 11166s
run: grafana: (pid 25823) 1133s; run: log: (pid 3045) 11166s
run: logrotate: (pid 25834) 1132s; run: log: (pid 3037) 11166s
run: nginx: (pid 25840) 1132s; run: log: (pid 3028) 11166s
run: node-exporter: (pid 25846) 1132s; run: log: (pid 3024) 11166s
run: postgres-exporter: (pid 25853) 1131s; run: log: (pid 3035) 11166s
run: postgresql: (pid 25863) 1131s; run: log: (pid 11116) 2750s
run: prometheus: (pid 25874) 1130s; run: log: (pid 3033) 11166s
run: puma: (pid 27263) 2s; run: log: (pid 3053) 11166s
run: redis: (pid 25890) 1129s; run: log: (pid 11097) 2753s
run: redis-exporter: (pid 25897) 1129s; run: log: (pid 3034) 11166s
run: registry: (pid 25905) 1129s; run: log: (pid 3043) 11166s
run: sidekiq: (pid 27129) 25s; run: log: (pid 3019) 11166s

Thanks!