0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

GitLab13.3から13.4への更新時にトラブった話と解決策

Posted at

GitLab 13.4更新後にいくつかのリポジトリでエラー発生

image.png
発生する環境と発生しない環境があるみたいですが、原因はわかっていません。
2環境中、1つでは発生しましたが、もう1つでは問題なくアップデートができていました。

解決策

GitLab Runnerのトークンリセット
https://docs.gitlab.com/ce/raketasks/backup_restore.html#reset-runner-registration-tokens

# gitlab-rails dbconsole

gitlabhq_production=> UPDATE projects SET runners_token = null, runners_token_encrypted = null;
gitlabhq_production=> UPDATE namespaces SET runners_token = null, runners_token_encrypted = null;
gitlabhq_production=> UPDATE application_settings SET runners_registration_token_encrypted = null;
gitlabhq_production=> UPDATE ci_runners SET token = null, token_encrypted = null;
gitlabhq_production=> exit

Migrationの実行

# gitlab-rake gitlab:storage:migrate_to_hashed

フォーラムでも同様の議論がされていた。
https://forum.gitlab.com/t/upgrade-to-gitlab-13-4-0-b0481767fe4-killed-all-repositories/43038

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?