当前位置: 首页 > article >正文

Gitlab-ce upgrade 16.0.1 to 17.3.1【Gitlab-ce 16.0.1 升级 17.3.1】

在这里插入图片描述

文章目录

  • 背景
  • gitlab-ce 16.0.1 升级 17.3.1 失败
  • gitlab-ce 16.0.1 升级 16.11.8 失败
  • gitlab-ce 16.0.1 升级 16.7.9 失败
  • gitlab-ce 16.0.1 升级 16.3.8 成功
  • gitlab-ce 16.3.8 升级 16.11.8 失败
  • gitlab-ce 16.3.8 升级 16.7.9 成功
  • gitlab-ce 16.7.9 升级 16.11.8 成功
  • gitlab-ce 16.11.8 升级 17.3.1 成功

背景

当前版本 gitab-ce 16.0.1, 准备升级最新版本(17.3.1)。

在这里插入图片描述

  • 先迁移gitlab数据至测试节点。

文章目录

  • 背景
  • gitlab-ce 16.0.1 升级 17.3.1 失败
  • gitlab-ce 16.0.1 升级 16.11.8 失败
  • gitlab-ce 16.0.1 升级 16.7.9 失败
  • gitlab-ce 16.0.1 升级 16.3.8 成功
  • gitlab-ce 16.3.8 升级 16.11.8 失败
  • gitlab-ce 16.3.8 升级 16.7.9 成功
  • gitlab-ce 16.7.9 升级 16.11.8 成功
  • gitlab-ce 16.11.8 升级 17.3.1 成功

gitlab-ce 16.0.1 升级 17.3.1 失败


#!/bin/bash
GITLAB_HOME='/data/gitlab'
docker run -tid --hostname gitlab.bsgchina.com -p 443:443 -p 80:80 -p 30022:22 --name gitlab-17.3.1-ce --restart always -v $GITLAB_HOME/config:/etc/gitlab:Z -v $GITLAB_HOME/logs:/var/log/gitlab:Z -v $GITLAB_HOME/data:/var/opt/gitlab:Z --shm-size 256m gitlab/gitlab-ce:17.3.1-ce.0

#!/bin/bash
GITLAB_HOME='/data/gitlab'
docker run -tid --hostname gitlab.bsgchina.com -p 443:443 -p 80:80 -p 30022:22 --name gitlab-17.3.1-ce --restart always -v $GITLAB_HOME/config:/etc/gitlab:Z -v $GITLAB_HOME/logs:/var/log/gitlab:Z -v $GITLAB_HOME/data:/var/opt/gitlab:Z --shm-size 256m gitlab/gitlab-ce:17.3.1-ce.0
[root@gitlab-backup2 gitlab]# docker logs -f 55de
Thank you for using GitLab Docker Image!
Current version: gitlab-ce=17.3.1-ce.0

Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
And restart this container to reload settings.
To do it use docker exec:

  docker exec -it gitlab editor /etc/gitlab/gitlab.rb
  docker restart gitlab

For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md

If this container fails to start due to permission problems try to fix it by executing:

  docker exec -it gitlab update-permissions
  docker restart gitlab

Cleaning stale PIDs & sockets
It seems you are upgrading from 16.0.1 to 17.3.1.
It is required to upgrade to the latest 16.11.x version first before proceeding.
Please follow the upgrade documentation at https://docs.gitlab.com/ee/update/index.html#upgrading-to-a-new-major-version
Thank you for using GitLab Docker Image!
Current version: gitlab-ce=17.3.1-ce.0

Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
And restart this container to reload settings.
To do it use docker exec:

  docker exec -it gitlab editor /etc/gitlab/gitlab.rb
  docker restart gitlab

For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md

If this container fails to start due to permission problems try to fix it by executing:

  docker exec -it gitlab update-permissions
  docker restart gitlab

Cleaning stale PIDs & sockets
It seems you are upgrading from 16.0.1 to 17.3.1.
It is required to upgrade to the latest 16.11.x version first before proceeding.
Please follow the upgrade documentation at https://docs.gitlab.com/ee/update/index.html#upgrading-to-a-new-major-version
Thank you for using GitLab Docker Image!
Current version: gitlab-ce=17.3.1-ce.0

Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
And restart this container to reload settings.
To do it use docker exec:

  docker exec -it gitlab editor /etc/gitlab/gitlab.rb
  docker restart gitlab

For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md

If this container fails to start due to permission problems try to fix it by executing:

  docker exec -it gitlab update-permissions
  docker restart gitlab

Cleaning stale PIDs & sockets
It seems you are upgrading from 16.0.1 to 17.3.1.
It is required to upgrade to the latest 16.11.x version first before proceeding.
Please follow the upgrade documentation at https://docs.gitlab.com/ee/update/index.html#upgrading-to-a-new-major-version
[root@gitlab-backup2 gitlab]# docker logs -f 55de 

gitlab-ce 16.0.1 升级 16.11.8 失败

#!/bin/bash
GITLAB_HOME='/data/gitlab'
docker run -tid --hostname gitlab.bsgchina.com -p 443:443 -p 80:80 -p 30022:22 --name gitlab-16.11.8-ce --restart always -v $GITLAB_HOME/config:/etc/gitlab:Z -v $GITLAB_HOME/logs:/var/log/gitlab:Z -v $GITLAB_HOME/data:/var/opt/gitlab:Z --shm-size 256m gitlab/gitlab-ce:16.11.8-ce.0
Thank you for using GitLab Docker Image!
Current version: gitlab-ce=16.11.8-ce.0

Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
And restart this container to reload settings.
To do it use docker exec:

  docker exec -it gitlab editor /etc/gitlab/gitlab.rb
  docker restart gitlab

For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md

If this container fails to start due to permission problems try to fix it by executing:

  docker exec -it gitlab update-permissions
  docker restart gitlab

Cleaning stale PIDs & sockets
It seems you are upgrading from 16.0.1 to 16.11.8.
It is required to upgrade to the latest 16.7.x version first before proceeding.
Please follow the upgrade documentation at https://docs.gitlab.com/ee/update/#upgrade-paths
Thank you for using GitLab Docker Image!
Current version: gitlab-ce=16.11.8-ce.0

Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
And restart this container to reload settings.
To do it use docker exec:

  docker exec -it gitlab editor /etc/gitlab/gitlab.rb
  docker restart gitlab

For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md

If this container fails to start due to permission problems try to fix it by executing:

  docker exec -it gitlab update-permissions
  docker restart gitlab

Cleaning stale PIDs & sockets
It seems you are upgrading from 16.0.1 to 16.11.8.
It is required to upgrade to the latest 16.7.x version first before proceeding.
Please follow the upgrade documentation at https://docs.gitlab.com/ee/update/#upgrade-paths

gitlab-ce 16.0.1 升级 16.7.9 失败

cat start-16.7.9-ce.0.sh 
#!/bin/bash
GITLAB_HOME='/data/gitlab'
docker run -tid --hostname gitlab.bsgchina.com -p 443:443 -p 80:80 -p 30022:22 --name gitlab-16.7.9-ce.0 --restart always -v $GITLAB_HOME/config:/etc/gitlab:Z -v $GITLAB_HOME/logs:/var/log/gitlab:Z -v $GITLAB_HOME/data:/var/opt/gitlab:Z --shm-size 256m gitlab/gitlab-ce:16.7.9-ce.0
Thank you for using GitLab Docker Image!
Current version: gitlab-ce=16.7.9-ce.0

Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
And restart this container to reload settings.
To do it use docker exec:

  docker exec -it gitlab editor /etc/gitlab/gitlab.rb
  docker restart gitlab

For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md

If this container fails to start due to permission problems try to fix it by executing:

  docker exec -it gitlab update-permissions
  docker restart gitlab

Cleaning stale PIDs & sockets
It seems you are upgrading from 16.0.1 to 16.7.9.
It is required to upgrade to the latest 16.3.x version first before proceeding.
Please follow the upgrade documentation at https://docs.gitlab.com/ee/update/#upgrade-paths

gitlab-ce 16.0.1 升级 16.3.8 成功

数据保留

$ vim start-16.3.8-ce.0.sh
#!/bin/bash
GITLAB_HOME='/data/gitlab'
docker run -tid --hostname gitlab.bsgchina.com -p 443:443 -p 80:80 -p 30022:22 --name gitlab-16.3.8-ce.0 --restart always -v $GITLAB_HOME/config:/etc/gitlab:Z -v $GITLAB_HOME/logs:/var/log/gitlab:Z -v $GITLAB_HOME/data:/var/opt/gitlab:Z --shm-size 256m gitlab/gitlab-ce:16.3.8-ce.0

查看日志

$ docker logs -f gitlab-16.3.8-ce.0

等待10分钟。

在这里插入图片描述

gitlab-ce 16.3.8 升级 16.11.8 失败

$ cat start-16.11.8-ce.0_2.sh
#!/bin/bash
GITLAB_HOME='/data/gitlab'
docker run -tid --hostname gitlab.bsgchina.com -p 443:443 -p 80:80 -p 30022:22 --name gitlab-16.11.8-ce.0 -v /data/gitlab2/config:/etc/gitlab:Z -v $GITLAB_HOME/logs:/var/log/gitlab:Z -v $GITLAB_HOME/data:/var/opt/gitlab:Z --shm-size 256m gitlab/gitlab-ce:16.11.8-ce.0
Thank you for using GitLab Docker Image!
Current version: gitlab-ce=16.11.8-ce.0

Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
And restart this container to reload settings.
To do it use docker exec:

  docker exec -it gitlab editor /etc/gitlab/gitlab.rb
  docker restart gitlab

For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md

If this container fails to start due to permission problems try to fix it by executing:

  docker exec -it gitlab update-permissions
  docker restart gitlab

Cleaning stale PIDs & sockets
It seems you are upgrading from 16.3.8 to 16.11.8.
It is required to upgrade to the latest 16.7.x version first before proceeding.
Please follow the upgrade documentation at https://docs.gitlab.com/ee/update/#upgrade-paths

gitlab-ce 16.3.8 升级 16.7.9 成功

项目与用户数据保留完成。gitlab-runner 需要是否重新注册待确认。

$ start-16.7.9-ce.0_2.sh
#!/bin/bash
GITLAB_HOME='/data/gitlab'
docker run -tid --hostname gitlab.bsgchina.com -p 443:443 -p 80:80 -p 30022:22 --name gitlab-16.7.9-ce.0 -v /data/gitlab2/config:/etc/gitlab:Z -v $GITLAB_HOME/logs:/var/log/gitlab:Z -v $GITLAB_HOME/data:/var/opt/gitlab:Z --shm-size 256m gitlab/gitlab-ce:16.7.9-ce.0

项目与用户数据保留完成。

在这里插入图片描述

gitlab-ce 16.7.9 升级 16.11.8 成功

项目与用户数据保留完成。gitlab-runner 需要是否重新注册待确认。

$ cat start-16.11.8-ce.0_2.sh 
#!/bin/bash
GITLAB_HOME='/data/gitlab'
docker run -tid --hostname gitlab.bsgchina.com -p 443:443 -p 80:80 -p 30022:22 --name gitlab-16.11.8-ce.0 -v /data/gitlab2/config:/etc/gitlab:Z -v $GITLAB_HOME/logs:/var/log/gitlab:Z -v $GITLAB_HOME/data:/var/opt/gitlab:Z --shm-size 256m gitlab/gitlab-ce:16.11.8-ce.0

在这里插入图片描述

gitlab-ce 16.11.8 升级 17.3.1 成功

项目与用户数据保留完成。gitlab-runner 需要是否重新注册待确认。

$ cat start-17.3.1-ce.0_2.sh 
#!/bin/bash
GITLAB_HOME='/data/gitlab'
docker run -tid --hostname gitlab.bsgchina.com -p 443:443 -p 80:80 -p 30022:22 --name gitlab-17.3.1-ce.0 -v /data/gitlab2/config:/etc/gitlab:Z -v $GITLAB_HOME/logs:/var/log/gitlab:Z -v $GITLAB_HOME/data:/var/opt/gitlab:Z --shm-size 256m gitlab/gitlab-ce:17.3.1-ce.0

在这里插入图片描述

参考:

  • https://docs.gitlab.com/
  • https://docs.gitlab.com/ee/update/

http://www.kler.cn/a/293749.html

相关文章:

  • gpu-V100显卡相关知识
  • C++初阶——list
  • 图论基本术语
  • 后端接口返回二进制文件,前端 window.opent预览展示
  • java操作ES(一)RestHighLevelClient(2)集成与demo
  • 985研一学习日记 - 2024.11.12
  • git 提交代码由原先账号密码调整为ssh
  • DevExpress WinForms v24.1新版亮点:功能区、数据编辑器全新升级
  • xxl-job分布式任务调度平台
  • 「深入理解」HTML Meta标签:网页元信息的配置
  • 在嵌入式板子上搭建和自定义live555服务器---编译问题和方法整理
  • 虚幻5|C++第三人称射击(1)添加摄像机
  • 球球大作战
  • ELK学习笔记(二)——使用K8S部署Kibana8.15.0
  • 辨别高防服务器
  • python tkinter 文本类组件
  • python 下载excel 添加水印
  • [240907] Python 标准库中鲜为人知的宝藏 | Node.js 22.8.0 发布:编译缓存 API、覆盖率阈值等新特性
  • mysql连接oceanbase数据库集群+租户
  • 企业微信群管理:构建高效沟通与协作的社群生态
  • Node.js 入门:中间件与安全性深度解析
  • LeetCode 算法:单词拆分 c++
  • 栈和队列的数据结构
  • ASP.NET Core 入门教学八 集成RocketMQ消息队列
  • json字符串CSS格式化
  • 【python因果推断库12】工具变量回归与使用 pymc 验证工具变量5