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

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

相关推荐
拾贰_C几秒前
【Ubuntu | Nvidia | installition0】Ubuntu安装Nvidia驱动
linux·运维·ubuntu
回到原点的码农几秒前
Failed to restart nginx.service Unit nginx.service not found
运维·nginx
零K沁雪1 分钟前
内核定时器
linux·内核
上天_去_做颗惺星 EVE_BLUE2 分钟前
Linux Core Dump 测试操作手册
linux·c++·测试工具
国冶机电安装3 分钟前
监控与安防系统安装:从方案设计到落地运维的一站式技术指南
运维
拾贰_C9 分钟前
【Ubuntu | 自动联网 | 网络问题】Ubuntu无法自动联网问题
linux·网络·ubuntu
0110编程之路11 分钟前
Wine & Ubuntu 调用 Windows 应用
linux·windows·ubuntu
AI先驱体验官14 分钟前
数字人部署入门:轻量化方案与快速落地
大数据·运维·人工智能·深度学习·重构·aigc
晨枫阳16 分钟前
Jenkins 部署与问题解决
运维·jenkins
晨非辰18 分钟前
Git版本控制速成:提交三板斧/日志透视/远程同步15分钟精通,掌握历史回溯与多人协作安全模型
linux·运维·服务器·c++·人工智能·git·后端