When I try to upgrade from CE v11.10.4 (62c464651d2) to v12 using:
sudo yum install gitlab-ce
I receive this message:
It seems you are upgrading from 11.x version series
to 12.x series. It is recommended to upgrade
to the last minor version in a major version series first before
jumping to the next major version.
Please follow the upgrade documentation at https://docs.gitlab.com/ee/policy/maintenance.html#upgrade-recommendations
and upgrade to 11.11 first.
Problem is, I can’t find any info regarding how to specify the required version.
This error indicates there is a problem preventing communication with the GitLab software repositories.
I suggest you backup remove the existing /etc/yum.repos.d/gitlab_gitlab-ce.repo file and then re-add the GitLab package repository with the following command:
Once that is done, yum list gitlab-ce --showduplicates should list all available versions.
In your situation, the upgrade path will be:
Upgrade to 11.11.5 yum install gitlab-ce-11.11.5-ee.0.el7
then upgrade to latest version (currently 12.0.3) yum install gitlab-ce-12.0.3-ee.0.el7
I deleted the gitlab_gitlab-ce.repo file and re-added it as suggested but doing so did not resolve the issue. I did notice that this file’s permissions did not match the other files in the /etc/yum.repos.d directory.
After changing the gitlab_gitlab-ce.repo file’s permissions to match the yum list gitlab-ce --showduplicates command worked as expected.
The only other change to the recommended steps was to change ee to ce in the versions specified.
The two upgrades appear to have executed successfully. Now I am stuck at a Deploy in progress screen, but that is another issue not related to my initial post. Let’s see how I do on my own.