Upgrade from GitLab CE 12.8.2 to CE Latest (13.x)?

I cannot understand how to upgrade from GitLab CE 12.8.2 to CE Latest (13.x). Mine is an omnibus installation and therefore I started from here: Update GitLab | GitLab

However when I follow the given instructions (for Ubuntu) I only get up to 12.8.7:

sudo apt-get update && sudo apt-get install gitlab-ce

I have found the following site:
https://docs.gitlab.com/ce/update/#upgrade-paths

However, the version I have (12.8.2) is not listed in the table. The version to which I upgrade to if I follow the instruction in previous link (12.8.7) is also not listed. Also not sure if these steps are required for an omnibus installation.

Would anyone know how to proceed to upgrade from my current version to latest CE version?

Hi, what is your version of Ubuntu installed? Then we can check how far you can actually upgrade to (especially if older version of Ubuntu).

Otherwise, first off, your upgrade path looks like this:

12.10.14 → 13.0.14 → 13.1.11 - > 13.x (latest)

First do this:

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

then, when you want to upgrade now do this (do not do standard apt-get upgrade otherwise you will immediately go to latest version and break your installation). So make sure you follow the steps below exactly as written:

sudo apt-get install gitlab-ce=12.10.14-ce.0
gitlab-rails runner -e production 'puts Gitlab::BackgroundMigration.remaining'

make sure background migrations are at zero before continuing. Then when you have done that, repeat the apt command but now for 13.0.14 and re-check the background migrations and wait until zero, and then do apt command for 13.1.11 and then re-check the background migrations.

Once you are at 13.1.11, you can then do your standard apt-get upgrade to get the latest 13.x version.

I am on Ubuntu version 18.04.4 LTS
Does that change anything?

Edit: Looks like it is working :slight_smile:

To check if background migrations are running I am using this:
https://docs.gitlab.com/ce/update/#checking-for-background-migrations-before-upgrading

Yep, similar command to mine, just with sudo for Ubuntu, the main thing as long as it works, and returns zero before continuing the next upgrade.