gitlab:如何更新到最新的次要版本
gitlab: how to update to latest minor version
我试图将我的 gitlab-CE 从 10.3.2 更新到最新版本(目前是 11.4)。它给了我这个诚实安全的错误。
[...]
gitlab preinstall: It seems you are upgrading from 10.x version series
gitlab preinstall: to 11.x series. It is recommended to upgrade
gitlab preinstall: to the last minor version in a major version series first before
gitlab preinstall: jumping to the next major version.
gitlab preinstall: Please follow the upgrade documentation at https://docs.gitlab.com/ee/policy/maintenance.html#upgrade-recommendations
gitlab preinstall: and upgrade to 10.8 first.
dpkg: error processing archive /var/cache/apt/archives/gitlab-ce_11.2.3-ce.0_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/gitlab-ce_11.2.3-ce.0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@this-vm# apt-cache policy gitlab-ce | grep Installed
Installed: 10.3.2-ce.0
但是如何安装到最新的次要版本呢?他们所指的文档没有说明如何操作。
你们遇到过这样的问题吗?
尝试按照建议更新到最新的次要版本here:
apt-get update
apt-get install gitlab-ce=<YOUR-LATEST-MINOR-VERSION>-ce.0
gitlab-ctl reconfigure
gitlab-ctl restart
在您的情况下,最新的次要版本是:10.8.6 [截至今天]。
您可以查看the release list。
请记住在初始版本和目标版本之间 check the changes。
供CentOS/RHEL参考:
要在 (CentOS/RHEL) 上安装次要版本。按照以下步骤操作。
要将 11.xx 上的次要版本更新到 11.11.5 的最新版本:
sudo yum install gitlab-ce-11.11.5-ce.0.el6.x86_64
与所有其他版本类似,您可以在 https://packages.gitlab.com/gitlab/gitlab-ce 找到您需要使用的特定 version/install 命令。搜索版本字符串,例如 gitlab-ce-11。单击 OS 版本的 RPM 或 Deb 包,然后您将看到所有版本的 gitlab,您可以在其中找到最新版本名称并按上述方式安装它,但只需将其替换为您的次要版本名称即可,即。 gitlab-ce-11.11.5-ce.0.el6.x86_64
从一个版本升级到另一个版本应遵循以下建议或官方页面 here。
12.7.5 -> 12.10.5
11.3.4 -> 11.11.1
10.6.6 -> 10.8.3
11.3.4 -> 11.11.8
10.6.6 -> 10.8.7
9.2.3 -> 9.5.5
8.9.4 -> 8.12.3
始终建议先升级到主版本中最新可用的次要版本,然后再升级到下一个稳定版本。
我正在尝试将我们现有的 gitlab-ce 版本 11.2.1 更新到最新的 gitlab-ce 12.2.0。在我尝试 gitlab-ctl reconfigure
时使用 yum update
安装 12.2.0 之后。我收到错误消息说您需要先安装 gitlab 11.0.0
。
所以,我删除了 gitlab 12.2.0 并使用
安装了 11.0.0 版本
yum remove gitlab-ce-12.2.0-ce.0.el7.x86_64.rpm
wget https://ftp.sjtu.edu.cn/sites/gitlab-ce/yum/el7/gitlab-ce-11.11.0-ce.0.el7.x86_64.rpm
rpm -Uvh gitlab-ce-11.11.0-ce.0.el7.x86_64.rpm
gitlab-ctl reconfigure
sudo gitlab-ctl restart
过程成功,我的旧数据在那里,我可以使用我的旧凭据登录。前端的版本显示为 11.0.0。现在要获得我所做的最新版本
gitlab-ctl stop
yum remove gitlab-ce-11.11.0-ce.0.el7.x86_64.rpm
wget https://ftp.sjtu.edu.cn/sites/gitlab-ce/yum/el7/gitlab-ce-12.2.0-ce.0.el7.x86_64.rpm
rpm -Uvh gitlab-ce-12.2.0-ce.0.el7.x86_64.rpm
gitlab-ctl reconfigure
gitlab-ctl restart
我使用的是第 12 版,但随后出现另一个错误,alermanager 服务未启动,因此我将以下块添加到 /etc/gitlab/gitlab.rb
alertmanager['flags'] = {
'cluster.advertise-address' => "127.0.0.1:9093",
}
我重新启动了gitlab,一切都运行。
gitlab-ctl restart
`enter code here`Check the latest version
1.sudo gitlab-rake gitlab:env:info:If it is above 13.12.0 then proceed with step 3.If its below please follow serially.
2."sudo apt upgrade gitlab-ee=13.12.5-ee.0": Update to any version of 13.12.x.
3.sudo apt-get update
4.sudo apt-get install gitlab-ee
我试图将我的 gitlab-CE 从 10.3.2 更新到最新版本(目前是 11.4)。它给了我这个诚实安全的错误。
[...]
gitlab preinstall: It seems you are upgrading from 10.x version series
gitlab preinstall: to 11.x series. It is recommended to upgrade
gitlab preinstall: to the last minor version in a major version series first before
gitlab preinstall: jumping to the next major version.
gitlab preinstall: Please follow the upgrade documentation at https://docs.gitlab.com/ee/policy/maintenance.html#upgrade-recommendations
gitlab preinstall: and upgrade to 10.8 first.
dpkg: error processing archive /var/cache/apt/archives/gitlab-ce_11.2.3-ce.0_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/gitlab-ce_11.2.3-ce.0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@this-vm# apt-cache policy gitlab-ce | grep Installed
Installed: 10.3.2-ce.0
但是如何安装到最新的次要版本呢?他们所指的文档没有说明如何操作。 你们遇到过这样的问题吗?
尝试按照建议更新到最新的次要版本here:
apt-get update
apt-get install gitlab-ce=<YOUR-LATEST-MINOR-VERSION>-ce.0
gitlab-ctl reconfigure
gitlab-ctl restart
在您的情况下,最新的次要版本是:10.8.6 [截至今天]。
您可以查看the release list。 请记住在初始版本和目标版本之间 check the changes。
供CentOS/RHEL参考:
要在 (CentOS/RHEL) 上安装次要版本。按照以下步骤操作。
要将 11.xx 上的次要版本更新到 11.11.5 的最新版本:
sudo yum install gitlab-ce-11.11.5-ce.0.el6.x86_64
与所有其他版本类似,您可以在 https://packages.gitlab.com/gitlab/gitlab-ce 找到您需要使用的特定 version/install 命令。搜索版本字符串,例如 gitlab-ce-11。单击 OS 版本的 RPM 或 Deb 包,然后您将看到所有版本的 gitlab,您可以在其中找到最新版本名称并按上述方式安装它,但只需将其替换为您的次要版本名称即可,即。 gitlab-ce-11.11.5-ce.0.el6.x86_64
从一个版本升级到另一个版本应遵循以下建议或官方页面 here。
12.7.5 -> 12.10.5
11.3.4 -> 11.11.1
10.6.6 -> 10.8.3
11.3.4 -> 11.11.8
10.6.6 -> 10.8.7
9.2.3 -> 9.5.5
8.9.4 -> 8.12.3
始终建议先升级到主版本中最新可用的次要版本,然后再升级到下一个稳定版本。
我正在尝试将我们现有的 gitlab-ce 版本 11.2.1 更新到最新的 gitlab-ce 12.2.0。在我尝试 gitlab-ctl reconfigure
时使用 yum update
安装 12.2.0 之后。我收到错误消息说您需要先安装 gitlab 11.0.0
。
所以,我删除了 gitlab 12.2.0 并使用
安装了 11.0.0 版本yum remove gitlab-ce-12.2.0-ce.0.el7.x86_64.rpm
wget https://ftp.sjtu.edu.cn/sites/gitlab-ce/yum/el7/gitlab-ce-11.11.0-ce.0.el7.x86_64.rpm
rpm -Uvh gitlab-ce-11.11.0-ce.0.el7.x86_64.rpm
gitlab-ctl reconfigure
sudo gitlab-ctl restart
过程成功,我的旧数据在那里,我可以使用我的旧凭据登录。前端的版本显示为 11.0.0。现在要获得我所做的最新版本
gitlab-ctl stop
yum remove gitlab-ce-11.11.0-ce.0.el7.x86_64.rpm
wget https://ftp.sjtu.edu.cn/sites/gitlab-ce/yum/el7/gitlab-ce-12.2.0-ce.0.el7.x86_64.rpm
rpm -Uvh gitlab-ce-12.2.0-ce.0.el7.x86_64.rpm
gitlab-ctl reconfigure
gitlab-ctl restart
我使用的是第 12 版,但随后出现另一个错误,alermanager 服务未启动,因此我将以下块添加到 /etc/gitlab/gitlab.rb
alertmanager['flags'] = {
'cluster.advertise-address' => "127.0.0.1:9093",
}
我重新启动了gitlab,一切都运行。
gitlab-ctl restart
`enter code here`Check the latest version
1.sudo gitlab-rake gitlab:env:info:If it is above 13.12.0 then proceed with step 3.If its below please follow serially.
2."sudo apt upgrade gitlab-ee=13.12.5-ee.0": Update to any version of 13.12.x.
3.sudo apt-get update
4.sudo apt-get install gitlab-ee