[GitLab] 版本升級

回覆文章
Lexaul
文章: 231
註冊時間: 2019-10-18, 14:28

[GitLab] 版本升級

文章 Lexaul » 2021-10-21, 10:14

GitLab-CE 版本升級

1.更新系統

代碼: 選擇全部

apt update -y
2.確認版本

代碼: 選擇全部

apt list --upgradeable -a
3.確認升級路徑並安裝對應版本(以13.11.4為例)
參考資料(官方):https://docs.gitlab.com/ee/update/index ... rade-paths
13.11.4 -> latest 13.12.Z -> latest 14.0.Z -> latest 14.Y.Z
參考資料:https://askubuntu.com/questions/428772/ ... me-package
How to install a specific package version?
sudo apt-get install <package name>=<version>

代碼: 選擇全部

apt install gitlab-ce=13.12.12-ce.0
安裝時出現錯誤
1.
Malformed configuration JSON file found at /opt/gitlab/embedded/nodes/<HostName>.json.
This usually happens when your last run of `gitlab-ctl reconfigure` didn't complete successfully.
This file is used to check if any of the unsupported configurations are enabled,
and hence require a working reconfigure before upgrading.
Please run `sudo gitlab-ctl reconfigure` to fix it and try again.

代碼: 選擇全部

gitlab-ctl reconfigure
2.ruby_block[wait for crond service socket]
參考資料:https://forum.gitlab.com/t/gitlab-ce-rh ... re/36422/2

代碼: 選擇全部

systemctl restart gitlab-runsvdir.service
[email protected]
github.com/Lexaul

回覆文章