那些比你走得远的人,并不比你聪慧,只是每天多走了一点。坚持,是最强大的力量。

gitlab-ci报500问题修复

gitlab-ci报500问题修复

Enter the DB console:
For Omnibus GitLab packages:

1
sudo gitlab-rails dbconsole

Reset CI/CD variables

Drop the table:

1
2
DELETE FROM ci_group_variables;
DELETE FROM ci_variables;

Reset Runner registration tokens

1
2
3
4
5
6
7
8
-- Clear project tokens
UPDATE projects SET runners_token = null, runners_token_encrypted = null;
-- Clear group tokens
UPDATE namespaces SET runners_token = null, runners_token_encrypted = null;
-- Clear instance tokens
UPDATE application_settings SET runners_registration_token_encrypted = null;
-- Clear runner tokens
UPDATE ci_runners SET token = null, token_encrypted = null;

Reset pending pipeline jobs

1
2
-- Clear build tokens
UPDATE ci_builds SET token = null, token_encrypted = null;

Update configuration

1
gitlab-ctl reconfigure