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版本。

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

相关推荐
不会就选b1 小时前
Linux之文件--fd,重定向
linux
三十岁老牛再出发1 小时前
07.26每日总结
linux·c语言·mysql
fengyehongWorld2 小时前
Linux update-alternatives命令
linux
雨的旋律20992 小时前
ubuntu2604
linux·运维·服务器
三言老师2 小时前
mkdir创建多级目录,目录创建基础实操
linux·运维·服务器
独孤--蝴蝶3 小时前
Docker容器进阶(一)
运维·docker·容器
he39123773 小时前
ogg命令
运维·网络
其实防守也摸鱼3 小时前
Kimi K3深度测评:长文本之外的真实力
运维·开发语言·网络·人工智能·python·学习·安全
imc.113 小时前
linux EXT文件系统
linux·运维·服务器
三言老师5 小时前
mv移动文件、重命名文件实战案例
linux·服务器·网络·centos