500 Whoops, something went wrong on our end. Try refreshing the page

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

-- 清除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就可以正常使用了

你可能感兴趣的:(gitlab,docker,容器,运维)