Unable to upgrade GitLab-ce version from 15.8.0 to 17.1.1

We are attempting to upgrade GitLab from version 15.8.0 to 17.1.1, but we need to upgrade partially, one version at a time. We are encountering an issue where the partial versions, specifically 15.11.12 to 16.3.0, are unavailable during the upgrade process. Can you please assist us with the reason for this problem, and how can it be resolved?

What version of Linux are you running Gitlab on? There could be many reasons why a version is not available.

I am using Ubuntu 20.04.6 LTS with GitLab running on it.

And using Gitlab-CE or EE? If using EE, then use the command below to refresh your repository data:

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash

if using Gitlab-CE:

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash

you can check which one by:

dpkg -l | grep -i gitlab

and see if it returns gitlab-ce or gitlab-ee and then use one of the above commands.

2 Likes

okay, Thanks for this. If it is not working fine, Is there any other alternative process for this?

Yes, you can download the deb packages here:

That link is for gitlab-ce, you can change the URL to gitlab-ee if needed. You can manually download the version on the upgrade path from that link and install it to upgrade to that version. You can filter those results even more to Gitlab 15, 16, etc I just filtered it to all packages for Ubuntu 20.04 focal.

Remember also for background migrations to finish before you start the next upgrade, else you can break your Gitlab install. See Gitlab upgrade docs for info on checking background migrations.

Before using packages from the above link, make sure you have gitlab-ce installed, since attempting to install ce over an ee version can cause problems if you are not intending to downgrade EE to CE.

1 Like

I’ve attempted to install various versions from this website, but I still can’t seem to get it to work despite trying numerous methods.

Please show us what you try and what the complete output of that is.

1 Like

I’ve tried to use this command to download gitlab-ce version 16.7.7

wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/bionic/gitlab-ce_16.7.7-ce.0_amd64.deb/download.deb

It is successfully downloaded the package version but using installation command, getting an error.

dpkg -i gitlab-ce_16.7.7-ce.0_amd64.deb

Is there any other command to get the successful installation of GitLab version 16.7.7

Please don’t post images of text! Pictures may not be legible, cannot be searched and are not view-able to some, such as those who use screen readers.

What happens if you try to run the command that is suggested in that output?

1 Like

Also, I believe you are following the upgrade path wrong. The next upgrade to do after 15.8.0 is 15.11.13, then 16.3.7, then 16.7.8, then 16.11.5 and then 17.1.1

See: Upgrade Path

But you should first run the reconfigure command as @grove pointed out - you should read the error messages properly, and seek what advice it says since it was clear what to do.

Missing upgrades on the upgrade path means you are going to break your installation.

2 Likes

I’ve already upgraded from 15.8.0 to 15.11.12 & then to 16.3.7. Now I’m trying to install 16.7.8 but it is throwing me errors. I’ve already used the reconfigure command after downloading this 16.7.7 version.

I would suggest restarting the server if the reconfigure command has been used, as obviously something is wrong, either services need completely restarting, or something is wrong in your gitlab.rb config file.

2 Likes

I have completed all the necessary steps for the installation process. However, can you please provide any additional instructions to ensure that everything is done correctly?

This post will have all the links you need: GitLab Upgrade Path Resources

Things like upgrade path tool, upgrade docs. Also, ensure background migrations have finished before starting next upgrade: Background migrations and upgrades | GitLab

2 Likes