gitlab在runner栏点击就报500 Whoops, something went wrong on our end. Try refreshing the page。原因是迁移gitlab迁移时备份恢复后报aes256_gcm_decrypt是因为敏感数据的加密密钥发生变化或密钥丢失了,重置密钥修复数据即可。
解决办法
首先
进入这个gitlab的容器
进入: kubectl exec -it gitlab的pod的名字 -n 名称空间 bash
进入后输入:gitlab-ctl tail | grep aes256_gcm_decrypt
查询是否有这个字段,有,就用一下方法
在gitlab容器里输入:gitlab-rails dbconsole
好像会提示你输入密码,我是是把密码粘贴上去的,密码我用的下面这个
gitlab_rails['db_password'] = "xxxxxx"
验证成功后再进行以下操作
1、删除变量
DELETE FROM ci_group_variables;
DELETE FROM ci_variables;
2、清除token文章来源:https://www.toymoban.com/news/detail-457830.html
-- 清除project tokens
UPDATE projects SET runners_token = null, runners_token_encrypted = null;
-- 清除group tokens
UPDATE namespaces SET runners_token = null, runners_token_encrypted = null;
-- 清除instance tokens
UPDATE application_settings SET runners_registration_token_encrypted = null;
-- 清除 key used for JWT authentication
UPDATE application_settings SET encrypted_ci_jwt_signing_key = null;
-- 清除 runner tokens
UPDATE ci_runners SET token = null, token_encrypted = null;
弄完后,不需要重新启动gitlab就可以正常使用了文章来源地址https://www.toymoban.com/news/detail-457830.html
到了这里,关于500 Whoops, something went wrong on our end. Try refreshing the page的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!