gitlab升级

1.下载需要的版本

复制代码
 wget -c https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-15.7.6-ce.0.el7.x86_64.rpm  --no-check-certificate

gitlab-ce-15.4.6-ce.0.el7.x86_64.rpm

gitlab-ce-15.7.6-ce.0.el7.x86_64.rpm

gitlab-ce-15.9.7-ce.0.el7.x86_64.rpm

gitlab-ce-15.11.3-ce.0.el7.x86_64.rpm

gitlab-ce-16.2.1-ce.0.el7.x86_64.rpm

gitlab-ce-16.2.3-ce.0.el7.x86_64.rpm

gitlab-ce-16.3.0-ce.0.el7.x86_64.rpm

2、升级

复制代码
rpm -Uvh gitlab-ce-16.2.1-ce.0.el7.x86_64.rpm

or

复制代码
rpm -Uvh gitlab-ce-16.2.1-ce.0.el7.x86_64.rpm   --nodeps --force

3、查看版本号

复制代码
cat /opt/gitlab/embedded/service/gitlab-rails/VERSION

4、错误提示

rpm -Uvh gitlab-ce-16.2.3-ce.0.el7.x86_64.rpm --nodeps --force

警告:gitlab-ce-16.2.3-ce.0.el7.x86_64.rpm: 头V4 RSA/SHA1 Signature, 密钥 ID f27eab47: NOKEY

准备中... ################################# [100%]

gitlab preinstall: It seems you are upgrading from major version 15 to major version 16.

gitlab preinstall: It is required to upgrade to the latest 15.11.x version first before proceeding.

gitlab preinstall: Please follow the upgrade documentation at Upgrading GitLab | GitLab

错误:%pre(gitlab-ce-16.2.3-ce.0.el7.x86_64) 脚本执行失败,退出状态码为 1

错误:gitlab-ce-16.2.3-ce.0.el7.x86_64: 安裝 已失败

错误:gitlab-ce-15.9.7-ce.0.el7.x86_64: 删除 已跳过

错误原因:

根据提示,您正在尝试从GitLab的15版本直接升级到16版本。然而,在进行此升级之前,需要先升级到最新的15.11.x版本。

找一个低版本的继续升级就好了。

相关推荐
睡觉z3 小时前
Jenkins持续集成系统
运维·ci/cd·jenkins
Johny_Zhao6 小时前
基于 Docker 的 LLaMA-Factory 全流程部署指南
linux·网络·网络安全·信息安全·kubernetes·云计算·containerd·yum源·系统运维·llama-factory
Wy_编程6 小时前
Linux文件相关命令
linux·运维
Viking_bird7 小时前
centos 7.5 + Hadoop 3.2.4 集群搭建
linux·运维·服务器·hadoop·centos
wdxylb8 小时前
云原生俱乐部-RH134知识点总结(1)
linux·云原生
黑客影儿8 小时前
Kali Linux 环境中的系统配置文件与用户配置文件大全
linux·运维·程序人生·安全·网络安全·系统安全·学习方法
岚天start8 小时前
Linux系统网络排查工具总结
linux·运维·网络·监控·扫描·连通性·流量
风静雪冷9 小时前
grep命令要点、详解和示例
linux
我是哈哈hh9 小时前
【MySQL】在UBuntu环境安装以及免密码登录入门
linux·数据库·mysql·ubuntu
Lovyk10 小时前
基于 Ansible 与 Jinja2 模板的 LNMP 环境及 WordPress 自动化部署实践
linux·运维·服务器·自动化·ansible