1高端网站建设,wordpress样式错乱,天津做网站好的公司,大型网站开发心得1.这里是从自己公司的源下载的rpm包#xff0c;需要换成自己的
2.从12的最后一个版本升级到14的最后一个版本
# 停服务
[rootdocker test]# gitlab-ctl stop puma gitlab-ctl stop sidekiq gitlab-ctl stop nginx gitlab-ctl status# 进入…1.这里是从自己公司的源下载的rpm包需要换成自己的
2.从12的最后一个版本升级到14的最后一个版本
# 停服务
[rootdocker test]# gitlab-ctl stop puma gitlab-ctl stop sidekiq gitlab-ctl stop nginx gitlab-ctl status# 进入 Rails 控制台
gitlab-rails console# 查询项目 read-only 打开的
projects Project.where(repository_read_only: true)# 关闭项目的 read-only
projects.each do |p|p.update!(repository_read_only:nil)
end# 退出
exit# 存储库迁移
[rootgitlab_ae ~]# gitlab-rake gitlab:storage:migrate_to_hashed# 重启gitlab
[rootgitlab_ae ~]# gitlab-ctl restart# 存储库迁移
[rootgitlab_ae ~]# gitlab-rake gitlab:storage:migrate_to_hashed# 查看传统存储项目
[rootgitlab_ae ~]# gitlab-rake gitlab:storage:list_legacy_projects# 可以导出或者删除有问题的存储库方便以后恢复# 重新检查传统存储项目
[rootgitlab_ae ~]# gitlab-rake gitlab:storage:list_legacy_projects升级到14.0.12版本
[rootdocker test]# gitlab-ctl stop puma gitlab-ctl stop sidekiq gitlab-ctl stop nginx gitlab-ctl status
[rootdocker test]# wget https://mirrors.xurikeji.com/package/gitlab-ce/gitlab-ce-14.0.12-ce.0.el7.x86_64.rpm
[rootdocker test]# rpm -Uvh gitlab-ce-14.0.12-ce.0.el7.x86_64.rpm
Warnings:
The version of the running postgresql service is different than what is installed.
Please restart postgresql to start the new version.sudo gitlab-ctl restart postgresql
[rootgitlab_ae ~]# gitlab-ctl restart postgresql
[rootgitlab_ae ~]# gitlab-ctl reconfigure
[rootgitlab_ae ~]# gitlab-ctl restart升级到14.3.6版本
[rootdocker test]# gitlab-ctl stop puma gitlab-ctl stop sidekiq gitlab-ctl stop nginx gitlab-ctl status
[rootdocker test]# wget https://mirrors.xurikeji.com/package/gitlab-ce/gitlab-ce-14.3.6-ce.0.el7.x86_64.rpm
[rootdocker test]# rpm -Uvh gitlab-ce-14.3.6-ce.0.el7.x86_64.rpmWarnings:
The version of the running redis service is different than what is installed.
Please restart redis to start the new version.sudo gitlab-ctl restart redisRunning handlers complete
Chef Infra Client failed. 31 resources updated in 58 secondsWarnings:
The version of the running redis service is different than what is installed.
Please restart redis to start the new version.sudo gitlab-ctl restart redis
There was an error running gitlab-ctl reconfigure. Please check the output above for more
details.
warning: %posttrans(gitlab-ce-14.3.6-ce.0.el7.x86_64) scriptlet failed, exit status 1[rootdocker test]# sudo gitlab-ctl restart redis
[rootdocker test]# gitlab-ctl restart
#这里reconfigure会报错需要登到gitlab看后台迁移的任务全部成功才能配置成功带上链接
#https://docs.gitlab.com/ee/user/admin_area/monitoring/background_migrations.html#database-migrations-failing-because-of-batched-background-migration-not-finished
[rootdocker test]# sudo gitlab-ctl reconfigure
[rootdocker test]# gitlab-ctl restart升级到14.3.6版本
[rootdocker test]# gitlab-ctl stop puma gitlab-ctl stop sidekiq gitlab-ctl stop nginx gitlab-ctl status
[rootdocker test]# wget https://mirrors.xurikeji.com/package/gitlab-ce/gitlab-ce-14.9.5-ce.0.el7.x86_64.rpm
[rootdocker test]# rpm -Uvh gitlab-ce-14.9.5-ce.0.el7.x86_64.rpm
# 需要等待很长时间卡在 ...AddStatusColumnToSecurityScansTable...
[rootdocker test]# gitlab-ctl reconfigure
#这里后台虽然也有迁移的任务但是没事儿不用管不会影响下个版本升级
[rootdocker test]# gitlab-ctl restart升级到14.10.5版本
[rootdocker test]# gitlab-ctl stop puma gitlab-ctl stop sidekiq gitlab-ctl stop nginx gitlab-ctl status
[rootdocker test]# wget https://mirrors.xurikeji.com/package/gitlab-ce/gitlab-ce-14.10.5-ce.0.el7.x86_64.rpm
[rootdocker test]# rpm -Uvh gitlab-ce-14.10.5-ce.0.el7.x86_64.rpm
[rootdocker test]# gitlab-ctl reconfigure
[rootdocker test]# gitlab-ctl restart