Gitlab使用备份文件报500错误解决方案

1、问题定位:

1.1. gitlab 日志查看:

https://blog.csdn.net/douglas8287/article/details/84880261

1.2. gitlab-ctl tail gitlab-rails
1.3. 查看具体日志记录文件:production.log
1.4. 定位问题为:OpenSSL::Cipher::CipherError ():

2、解决问题:

gitlab-rails dbconsole,输入如下内容:
UPDATE projects SET runners_token = null, runners_token_encrypted = null;
UPDATE namespaces SET runners_token = null, runners_token_encrypted = null;
UPDATE application_settings SET runners_registration_token_encrypted = null;
UPDATE ci_runners SET token = null, token_encrypted = null;

gitlab-rails console,输入如下内容:
ApplicationSetting.current.reset_runners_registration_token!

参考链接:
https://docs.gitlab.com/ee/raketasks/backup_restore.html#when-the-secrets-file-is-lost
https://gitlab.com/gitlab-org/gitlab-foss/-/issues/59623


版权声明:本文为qq_33733970原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。