Error 500 when trying to disable signup


Here is the error I am encountering :

I log on as an administrator.
I untick the “Sign up enabled” in the page /admin/application_settings

When I click on “Save Changes”, i get the error message " 500 Whoops, something went wrong on our end."

In the production.log file I can find :

Started PATCH “/admin/application_settings” for XX.XX.XX.XX at 2019-05-28 14:22
2:25 +0000

Processing by Admin::ApplicationSettingsController#update as HTML
Parameters: {“utf8”=>“✓”, “authenticity_token”=>"[FILTERED]", “application_sett
ting”=>{“password_authentication_enabled_for_web”=>"[FILTERED]", “password_authee
ntication_enabled_for_git”=>"[FILTERED]", “require_two_factor_authentication”=>""
0", “two_factor_grace_period”=>“48”, “home_page_url”=>"", “after_sign_out_path”==

“”, “sign_in_text”=>""}}
Completed 500 Internal Server Error in 36ms (ActiveRecord: 9.6ms)

OpenSSL::Cipher::CipherError ():

lib/gitlab/crypto_helper.rb:27:in `aes256_gcm_decrypt’

app/models/concerns/token_authenticatable_strategies/encrypted.rb:45:in get_tokk en' app/models/concerns/token_authenticatable_strategies/base.rb:27:in ensure_tokenn

app/models/concerns/token_authenticatable_strategies/encrypted.rb:32:in ensure__ token' app/models/concerns/token_authenticatable.rb:40:in block in add_authentication__

I am using the latest docker image of gitlab-ce, i.e. GitLab Community Edition 11.11.0.

Thanks in advance for your help

I have solved the pb by following the solution proposed in

Basically, launch a console

gitlab-rails c

Then in that console

settings = ApplicationSetting.last
settings.update_column(:runners_registration_token_encrypted, nil)

After leaving the console, restart your gitlab

gitlab-ctl restart