gitlab 保存设定报500错误返回正常
进db数据库
gitlab-rails dbconsole
当Gitlab is version 14.x gitlab-rails dbconsole无法进去
然后
清除项目、组和整个实例的所有令牌:
最后的UPDATE操作使跑步者无法找到新的工作。您必须注册新的跑步者。
输这五个清空
#Clear project tokens
gitlabhq_production=>UPDATE projects SET runners_token = null, runners_token_encrypted = null;
#Clear group tokens
gitlabhq_production=>UPDATE namespaces SET runners_token = null, runners_token_encrypted = null;
#Clear instance tokens
gitlabhq_production=>UPDATE application_settings SET runners_registration_token_encrypted = null;
#Clear key used for JWT authentication
#This may break the $CI_JWT_TOKEN job variable:
#https://gitlab.com/gitlab-org/gitlab/-/issues/325965
gitlabhq_production=>UPDATE application_settings SET encrypted_ci_jwt_signing_key = null;
#Clear runner tokens
gitlabhq_production=>UPDATE ci_runners SET token = null, token_encrypted = null;
随后再尝试gitlab setting的保存,保存正常