Failed upgrading from 15.11.13 to 16.1.6

Problem to solve

Upgrading fails due to error below.

  • What are you seeing, and how does that differ from what you expect to see?

gitlab keep showing 502 error

STDOUT: rake aborted!
NameError: uninitialized constant Gitlab::ExceptionsApp
/opt/gitlab/embedded/service/gitlab-rails/config/application.rb:76:in `<class:Application>'
/opt/gitlab/embedded/service/gitlab-rails/config/application.rb:18:in `<module:Gitlab>'
/opt/gitlab/embedded/service/gitlab-rails/config/application.rb:17: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/service/gitlab-rails/Rakefile:9:in `<top (required)>'
/opt/gitlab/embedded/bin/bundle:25:in `load'
/opt/gitlab/embedded/bin/bundle:25:in `<main>'
(See full trace by running task with --trace)
STDERR:

  • Consider including screenshots, error messages, and/or other helpful visuals

Steps to reproduce

dnf install -y gitlab-ee-16.1.6

then it fails.

I think the rake service fails is the cause?

got the same error output with all command using rake.

can’t find solutions for

NameError: uninitialized constant Gitlab::ExceptionsApp

Configuration

Provide screenshots from the GitLab UI showing relevant configuration, if applicable.
On self-managed instances, add the relevant configuration settings or changes.

Versions

Please select whether options apply, and add the version information.

Versions

  • GitLab 15.11.13