gitlab 升级到13.8.8之后,管理员设置不可注册的操作报错
Processing by Admin::ApplicationSettingsController#general as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "application_setting"=>{"signup_enabled"=>"0", "require_admin_approval_after_user_signup"=>"0", "send_user_confirmation_email"=>"0", "minimum_password_length"=>"[FILTERED]", "domain_allowlist_raw"=>"", "domain_denylist_enabled"=>"0", "domain_denylist_raw"=>"", "email_restrictions_enabled"=>"0", "email_restrictions"=>"", "after_sign_up_text"=>""}, "denylist_type"=>"raw"}
Started GET "/-/metrics" for 127.0.0.1 at 2022-05-11 03:58:32 +0000
Processing by MetricsController#index as HTML
Completed 200 OK in 48ms (Views: 0.5ms | Elasticsearch: 0.0ms | Allocations: 3647)
Completed 500 Internal Server Error in 362ms (ActiveRecord: 134.2ms | Elasticsearch: 0.0ms | Allocations: 99107)
OpenSSL::Cipher::CipherError ():
app/services/application_settings/update_service.rb:

在更新 GitLab 至 13.8.8 版本后,管理员尝试禁用用户注册时遇到 OpenSSL::Cipher::CipherError。通过运行一系列 GitLab Rails 命令,如更新 runners_registration_token_encrypted 和 encrypted_ci_jwt_signing_key 为 nil,然后保存设置,成功解决了报错问题。
最低0.47元/天 解锁文章
5743





