Gitlab docker升级到14个哈希存储问题

发布于 2025-01-15 17:04:59 字数 2013 浏览 4 评论 0原文

将 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..
enter image description here

any advice?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文