美文网首页
gitlab update

gitlab update

作者: HaoDongZ | 来源:发表于2023-02-02 14:38 被阅读0次

gitlab 升级文档整理

参考官方文档:https://docs.gitlab.com/14.10/ee/update/
cat /opt/gitlab/embedded/service/gitlab-rails/VERSION 
gitlab-rake gitlab:env:info
备份10版本数据
gitlab-rake gitlab:backup:create RAILS_ENV=production
备份后的文件一般是位于/var/opt/gitlab/backups下, 自动生成文件名文件名如1541739348_2018_11_09_10.3.3_gitlab_backup.tar
https://packages.gitlab.com/app/gitlab/gitlab-ce/search?q=12.0.12 #搜索需要升级的软件包
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash 
现有版本升级到最后一个版本我的是10版本升级到10.8.7 -> 11.11.8 -> 12.0.12 ->12.2.5 ->12.9.5-> 12.10.14 -> 13.0.14 -> 13.1.11 -> 13.8.8 -> 13.12.15


sudo gitlab-ctl pg-upgrade  #gitlab如果要升级到13,pg数据库版本 需要11版本以上升级pg

yum install gitlab-ce-10.8.7 #根据版本安装
升级后初始化并且重启

gitlab-ctl reconfigure

gitlab-ctl restart
#gitlab常见问题Mixlib::ShellOut::ShellCommandFailed
chmod 0755 /var/opt/gitlab/postgresql
systemctl restart gitlab-runsvdir
#升级错误参考
https://zhuanlan.zhihu.com/p/166624536
http://www.04007.cn/article/1039.html
https://zhuanlan.zhihu.com/p/86304061

相关文章

网友评论

      本文标题:gitlab update

      本文链接:https://www.haomeiwen.com/subject/wzowhdtx.html