表现
在保存管理员设置时,或访问
OpenSSL::Cipher::CipherError ():
lib/gitlab/crypto_helper.rb:27:in `aes256_gcm_decrypt'
<...后略...>
原因
-- Check tokens
SELECT runners_token, runners_token_encrypted FROM projects;
SELECT runners_token, runners_token_encrypted FROM namespaces;
SELECT runners_registration_token_encrypted FROM application_settings;
SELECT token, token_encrypted FROM ci_runners;
SELECT token, token_encrypted FROM ci_builds;
-- Clear project tokens
UPDATE projects SET runners_token = null, runners_token_encrypted = null;
-- Clear group tokens
UPDATE namespaces SET runners_token = null, runners_token_encrypted = null;
-- Clear instance tokens
UPDATE application_settings SET runners_registration_token_encrypted = null;
-- Clear runner tokens
UPDATE ci_runners SET token = null, token_encrypted = null;
-- Clear build tokens
UPDATE ci_builds SET token = null, token_encrypted = null;
参考
https://docs.gitlab.com/ee/raketasks/backup_restore.html#when-the-secrets-file-is-lost https://gitlab.com/gitlab-org/gitlab-foss/-/issues/59623 https://gitlab.com/gitlab-org/gitlab-foss/-/issues/56403 https://gitlab.com/gitlab-org/gitlab-foss/-/issues/55596