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

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

相关推荐
数据库小学妹34 分钟前
数据库容量规划:四个数与扩容触发线
运维·数据库·后端
dingdingfish1 小时前
TLPI 第52章 读书笔记:POSIX Message Queues
linux·mq·ipc·posix·message·tlpi
wacsii2 小时前
【Linux进程(五)】进程控制全解析:从创建、终止、等待到程序替换
linux·服务器
七夜zippoe2 小时前
Nexent Linux 部署:用 deploy.sh
linux·服务器·docker·部署·ai智能体·nexent
去码头整点薯条982 小时前
NFS服务器
linux·运维·服务器
蜗牛一步步往上爬3 小时前
第一章 初识Linux shell
linux·运维·服务器
拂拉氏3 小时前
【知识讲解】 Linux线程中锁的认识
linux·互斥锁
无足鸟ICT4 小时前
【RHCA+】系统调优配置文件
linux·服务器
饿了吃洗衣凝珠4 小时前
DNS域名解析服务器
运维·服务器
新*5 小时前
Elasticsearch 索引别名入门:创建、路由、原子切换与几个常见误解
运维·后端·elasticsearch·索引别名