I have 2 old gitlab servers running 12.7.2-ee. I am unable to find a upgrade path to the latest version. any help is appreciated. Once i get them upgraded we are going to combine them into a new server.
Server Info:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
Follow the upgrade path in Upgrade GitLab | GitLab and combine it with earlier versions from the docs archive. You can find earlier versions of the document in the Git history, or by selecting the upper right corner dropdown on docs.gitlab.com, i.e. by selecting 15.11.
Review breaking changes and deprecations before upgrades, so you can estimate potential missing features or configuration issues during the upgrade cycles.
Upgrades also include database migrations, and might take a while. Plan with maintenance offline time.
It is advised to create a backup before upgrading.
AFAIK Ubuntu 20 LTS is still supported, so there is no immediate dist upgrade necessary (although might become relevant when 20 LTS goes EOL, and 24 LTS becomes available).
Document shorter upgrade cycles to keep future installations secure and stable, and reduce upgrade maintenance.
@iwalker FYI, I see this topic come up very frequently, which feels redundant in answers. I have compiled a list from this topic and others into a pinned forum topic. GitLab Upgrade Path Resources
I think some of the issue is the planner has a blank screen when selecting version 12 as current. I tried that for 12 to 13 on different browsers then decided to ask for help.
thanks guys, the tool now works but i now get an error of not found trying to do the upgrade. any suggestions.
apt-get install gitlab-ee=12.10.14-ee.0
Reading package listsā¦ Done
Building dependency tree
Reading state informationā¦ Done
E: Version ā12.10.14-ee.0ā for āgitlab-eeā was not found
Problems might also come come the fact that 12.7 (I didnāt check for the different patch levels) is from january 2020, which is appoximately 4 months earlier than Ubuntu Focal, so I donāt think official packages were ever made. And thatās probably also why you have trouble installing 12.10 that was released the day before Focal.
I would look into how that was achieved, and probably try to use official packages for Ubuntu Bionic (a simple edit of the sources should do, but wait) until I can use versions officially packages for Focal (apt-cache policy gitlab-ce on a machine using the focal repositories should tell you).
And just for good measure: The command @iwalker quotes from the documentation is bad, curl ... | sudo bash means youāre executing commands you donāt know (and a web server can easily be configured to return different things on these requests) with root privileges, i.e. you might trash your machine. The safe route is to download the script, read it, and execute the downloaded version.
Youāll have to edit the /etc/apt/sources.list.d/gitlab-ee.list file (name might vary), and edit it to change from focal to bionic (which is Ubuntu 18) and try to upgrade to at least a 13.2 release before you can revert to focal.
Thanks for all the help, i have both servers up to date now. I forgot to do an āapt updateā , then i took my time and waited for all the migrations to finish before doing the next update, found out the hard way. now to combine 3 servers into one.