Can't upgrade to 13.5, stuck at 13.3.9

Heya

I think I might have overlooked something in the documentation, but at the same time it does not really seem “easy” or “straightforward” to understand.

I’m running Debian 9.13, installed gitlab-ce via apt and now I am stuck at 13.3.9 and can’t seem to get anywhere :frowning:

#gitlab-ctl pg-upgrade
Checking for an omnibus managed postgresql: OK
Checking if postgresql['version'] is set: OK
Checking if we already upgraded: OK
The latest version 11.7 is already running, nothing to do
#sudo apt-cache policy gitlab-ce | grep Installed
  Installed: 13.3.9-ce.0
#cat /etc/apt/sources.list.d/gitlab_gitlab-ce.list 
# this file was generated by packages.gitlab.com for
# the repository at https://packages.gitlab.com/gitlab/gitlab-ce

deb https://packages.gitlab.com/gitlab/gitlab-ce/debian/ jessie main
deb-src https://packages.gitlab.com/gitlab/gitlab-ce/debian/ jessie main
#apt update
Hit:1 http://security.debian.org stretch/updates InRelease
Hit:2 http://httpredir.debian.org/debian stretch-updates InRelease                                                                         
Hit:3 https://packages.gitlab.com/gitlab/gitlab-ce/debian jessie InRelease                                                                 
Hit:4 http://ftp.debian.org/debian stretch-backports InRelease           
Ign:5 http://ftp.de.debian.org/debian stretch InRelease
Hit:6 http://ftp.de.debian.org/debian stretch Release
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.

What am I missing?
as far as I understand this link, a simple apt update apt upgrade should suffice


This worked for all versions for years (apart from the upgarde from 12.x to 13.0)

Can you please help me out?
Thanks!

Hi @gork, welcome to the GitLab Community Forum!

Thanks for providing all the helpful details, I think I spotted the problem.

Debian 9.x is stretch and Debian 8.x is jessie.

Debian Jessie reached its end of life on June 30, 2020, and GitLab stopped providing builds for Debian Jessie around the same time.

It appears that you’re running a Debian 9 Stretch server, but /etc/apt/sources.list.d/gitlab_gitlab-ce.list is pointing your package manager to the debian jessie repo source.

Fixing this will just take switching jessie to stretch in your apt sources.

sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list.d/gitlab_gitlab-ce.list &&
sudo apt update

After that, you should be able to apt upgrade your GitLab EE to the latest version 13.5.

Let us know how it goes!

3 Likes

Hi @gitlab-greg
Thanks for the quick response and for also spotting the mistake!

I must’ve upgraded Debian 8 -> 9 but the sources stayed the same.
Changed it to be stretch and now I’m running Gitlab 13.5.3!
Thank you again :slight_smile:

3 Likes