Tool-Gitlab-重置数据库,修复server迁移token异常
Tool-Gitlab-重置数据库,修复server迁移token异常
迁移gitlab的server数据之后,导致token异常
影响:修改工程配置信息,提交时页面报错502
sudo gitlab-rails dbconsole --database main
DELETE FROM ci_group_variables;
DELETE FROM ci_variables;
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 application_settings SET encrypted_ci_jwt_signing_key = null;
UPDATE ci_runners SET token = null,token_encrypted = null;
sudo gitlab-rails console -e production
Applicationsetting.first.delete
Applicationsetting.first
本文来自博客园,作者:Theseus‘Ship,转载请注明原文链接:https://www.cnblogs.com/yongchao/p/18289728