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
posted @ 2024-07-08 13:41  Theseus‘Ship  阅读(1)  评论(0编辑  收藏  举报
Live2D