Gitlab docker升级到14个哈希存储问题
将 Gitlab docker CE 社区版更新到版本 14 时,我遇到一些问题
我的实际版本是 gitlab-13.12.15-1 CE 社区版
我的问题是项目不在哈希存储
Legacy storage is no longer supported. Please migrate your data to hashed storage.,
Check https://docs.gitlab.com/ee/administration/raketasks/storage.html#migrate-to-hashed-storage for details.,
Upgrade failed. Retry the upgrade after migrating your data to hashed storage.,
Thank you for using GitLab Docker Image!
上 在我的实际安装中,所有项目都不在哈希存储上
gitlab-rake gitlab:storage:list_hashed_projects
* Found 0 projects using Hashed Storage
我关注了 gitlab 支持上的票证 https://forum.gitlab.com/t/upgrade-to-gitlab-13-4-0-b0481767fe4-killed-all-repositories/43038/24
sudo gitlab-rails dbconsole
-- 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 key used for JWT authentication
-- This may break the $CI_JWT_TOKEN job variable:
-- https://gitlab.com/gitlab-org/gitlab/-/issues/325965
UPDATE application_settings SET encrypted_ci_jwt_signing_key = null;
-- Clear runner tokens
UPDATE ci_runners SET token = null, token_encrypted = null;
然后
-- Clear build tokens
UPDATE ci_builds SET token = null, token_encrypted = null;
我用了
sudo gitlab-rake gitlab:storage:migrate_to_hashed
Enqueuing migration of 91 projects in batches of 200. Done!
我去了 选择菜单> 管理员。
监控> 后台作业。
有什么建议吗?
I am facing some issues when updating Gitlab docker CE community edition to version 14
My actual version is gitlab-13.12.15-1 CE Community edition
my problem is that projects are not on hashed storage
Legacy storage is no longer supported. Please migrate your data to hashed storage.,
Check https://docs.gitlab.com/ee/administration/raketasks/storage.html#migrate-to-hashed-storage for details.,
Upgrade failed. Retry the upgrade after migrating your data to hashed storage.,
Thank you for using GitLab Docker Image!
On my actual installation all projects are not on hashed storage
gitlab-rake gitlab:storage:list_hashed_projects
* Found 0 projects using Hashed Storage
I followed ticket on gitlab support
https://forum.gitlab.com/t/upgrade-to-gitlab-13-4-0-b0481767fe4-killed-all-repositories/43038/24
sudo gitlab-rails dbconsole
-- 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 key used for JWT authentication
-- This may break the $CI_JWT_TOKEN job variable:
-- https://gitlab.com/gitlab-org/gitlab/-/issues/325965
UPDATE application_settings SET encrypted_ci_jwt_signing_key = null;
-- Clear runner tokens
UPDATE ci_runners SET token = null, token_encrypted = null;
and also I did
-- Clear build tokens
UPDATE ci_builds SET token = null, token_encrypted = null;
Then I used
sudo gitlab-rake gitlab:storage:migrate_to_hashed
Enqueuing migration of 91 projects in batches of 200. Done!
I went to
select Menu > Admin.
Monitoring > Background Jobs.
But there isn't any running job..
any advice?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论