GitLab on rhel7 Upgrade fails with gitlab 500 whoops, something went wrong on our end


I have tried the following upgrades none of them work.

14.0.3 → 14.0.5 → 14.0.12 all worked.

14.0.12 → 14.3.6 does not work
14.0.12 → 14.1.8 does not work
14.0.12 → 14.1.7 does not work
14.0.12 → 14.1.0 does not work

Best Regards,


I have managed to fine the error in the /var/log/gitlab/gitlab-rails/production.log

Started GET “/users/sign_in” for at 2022-09-22 17:13:43 +0100
Processing by SessionsController#new as HTML
Rendered layout layouts/devise.html.haml (Duration: 18.2ms | Allocations: 8564)
Completed 500 Internal Server Error in 46ms (ActiveRecord: 1.6ms | Elasticsearch: 0.0ms | Allocations: 13459)

ActionView::Template::Error (No such file or directory @ rb_sysopen - /opt/gitlab/embedded/service/gitlab-rails/public/assets/themes/theme_indigo-356df9446472d3f379aa66e5b212f2a89799ba6b0fd209831ee4b01089b94f7e.css):
2: - startup_filename = local_assigns.fetch(:startup_filename, nil) || startup_filename_default
4: %style
5: = Rails.application.assets_manifest.find_sources(“themes/#{user_application_theme_css_filename}.css”).first.to_s.html_safe if user_application_theme_css_filename
6: = Rails.application.assets_manifest.find_sources(“startup/startup-#{startup_filename}.css”).first.to_s.html_safe app/views/layouts/_startup_css.haml:5:in `each’

When I look in the directory /opt/gitlab/embedded/service/gitlab-rails/public/assets/themes

the file is theme_indigo-356df9446472d3f379aa66e5b212f2a89799ba6b0fd209831ee4b01089b94f7e.css is not there.

I wonder why?

Best Regards,


Hi iwalker,

I have got to the bottom of this. I am sharing the solution here just in case this happens to anyone else.

At the bottom of the upgrade to 14.1.8 I see the following message.

GitLab discovered stale file(s) from a previous install that need to be cleaned up.
The following files need to be removed:


If I remove that file and restart gitlab then the upgrade from 14.0.12 to 14.1.8 works. I can then upgrade to latest following the correct steps got from here → Upgrading GitLab | GitLab

Best Regards,


1 Like