Error 500 when try to delete a repository

I recently did a migration of my gitlab (install from source) to a new server. I have upgraded from a Red Hat 7 server to a Red Hat 8 server. My current version of Gitlab is 13.0.14. Everything works fine after performing a restore from the old server to the new one.
Now I’m having several problems, including the following. When I try to delete a project from the web console, I get a 500 error. In the production.log file, I get the following:

Completed 500 Internal Server Error in 107ms (ActiveRecord: 33.7ms | Elasticsearch: 0.0ms | Allocations: 21541)

OpenSSL::Cipher::CipherError ():

lib/gitlab/crypto_helper.rb:27:in `aes256_gcm_decrypt'
app/models/concerns/token_authenticatable_strategies/encrypted.rb:45:in `get_token'
app/models/concerns/token_authenticatable_strategies/base.rb:27:in `ensure_token'
app/models/concerns/token_authenticatable_strategies/encrypted.rb:32:in `ensure_token'
app/models/concerns/token_authenticatable.rb:38:in `block in add_authentication_token_field'
app/services/projects/update_service.rb:27:in `execute'
app/controllers/projects_controller.rb:73:in `update'
app/controllers/application_controller.rb:496:in `set_current_admin'
lib/gitlab/session.rb:11:in `with_session'
app/controllers/application_controller.rb:487:in `set_session_storage'
lib/gitlab/i18n.rb:55:in `with_locale'
lib/gitlab/i18n.rb:61:in `with_user_locale'
app/controllers/application_controller.rb:481:in `set_locale'
lib/gitlab/error_tracking.rb:48:in `with_context'
app/controllers/application_controller.rb:546:in `sentry_context'
app/controllers/application_controller.rb:474:in `block in set_current_context'
lib/gitlab/application_context.rb:52:in `block in use'
lib/gitlab/application_context.rb:52:in `use'
lib/gitlab/application_context.rb:20:in `with_context'
app/controllers/application_controller.rb:467:in `set_current_context'

I am looking for documentation about it, and the solutions you have proposed do not fix this error. Any suggestions?

Thank you very much in advance!

OpenSSL version issue? If you migrated from RH7 to RH8, i suspect they both have different openssl version? maybe try and match it?

Thank you very much for the reply,

Indeed, checking the openssl versions on the two servers, I have the following:

RH8 - OpenSSL 1.1.1k FIPS March 25, 2021
RH7 - OpenSSL 1.0.2k-fips Jan 26, 2017

What would I have to do? Would I have to compile version 1.0.2 of openssl on RH8?

Thanks in advanced!

You’re welcome :slight_smile: :facepunch:
I think you’ll have a lot of issues compiling / installing older version of openssl on newer RH, I suspect there will be dependency / compatibility issues, but worth a try. Another couple of options i can think of are
1 - upgrade gitlab so it accepts newer openssl
2 - maybe find a config file / area that’s responsible for this openssl part, log output suggest error is originating from the aes256_gcm_decrypt function in the lib/gitlab/crypto_helper.rb file.