OS Upgrade + Gitlab Version upgrade

I am running gitlab-ce=16.11.3-ce.0 on Ubuntu 18.04. I want to update the gitlab to latest version. The latest version 17.X is supported only on Ubuntu 20 and above. I am facing below challenges.

  1. Upgrade path 16.11.3-ce.0 >> 16.11.7-ce.0 >> 17.x-ce
    When upgrading to 16.11.7.ce.0 I am getting below error ::
Setting up gitlab-ce (16.11.7-ce.0) ...
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libcrypt.so.1: version `XCRYPT_2.0' not found (required by /opt/gitlab/embedded/lib/libruby.so.3.1)
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /opt/gitlab/embedded/lib/libruby.so.3.1)
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /opt/gitlab/embedded/lib/libruby.so.3.1)
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /opt/gitlab/embedded/lib/libjemalloc.so.2)
dpkg: error processing package gitlab-ce (--configure):
 installed gitlab-ce package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:

GLIBC above 2.27 is only available from Ubuntu 19.0 onwards

  1. If it do the OS upgrade directly, gitlab is getting updated to the latest 17.x by skipping 16.11.7

Will skipping 16.11.7 cause any problem? What are the other options available

Not sure it helps you, but I am running the Debian VM with gitlab preinstalled, which I d/l from gitlab.com, and I had no issues whatsoever with going from 16 to 17.

This is resolved.

Steps I have followed are as below:

  1. To prevent the gitlab version auto update during OS update, I added below in /etc/apt/preferences.d/gitlab-ce
Package: gitlab-ce
Pin: version 17.2.1-ce.0
Pin-Priority: -1

Package: gitlab-ce
Pin: version 17.2.0-ce.0
Pin-Priority: -1

Package: gitlab-ce
Pin: version 17.1.3-ce.0
Pin-Priority: -1

Package: gitlab-ce
Pin: version 17.1.2-ce.0
Pin-Priority: -1

Package: gitlab-ce
Pin: version 17.1.1-ce.0
Pin-Priority: -1

Package: gitlab-ce
Pin: version 17.1.0-ce.0
Pin-Priority: -1

Package: gitlab-ce
Pin: version 17.0.5-ce.0
Pin-Priority: -1

Package: gitlab-ce
Pin: version 17.0.4-ce.0
Pin-Priority: -1

Package: gitlab-ce
Pin: version 17.0.3-ce.0
Pin-Priority: -1

Package: gitlab-ce
Pin: version 17.0.2-ce.0
Pin-Priority: -1

Package: gitlab-ce
Pin: version 17.0.1-ce.0
Pin-Priority: -1

Package: gitlab-ce
Pin: version 17.0.0-ce.0
Pin-Priority: -1

Package: gitlab-ce
Pin: version 16.11.7-ce.0
Pin-Priority: -1

Package: gitlab-ce
Pin: version 16.11.6-ce.0
Pin-Priority: -1

Package: gitlab-ce
Pin: version 16.11.5-ce.0
Pin-Priority: -1

Package: gitlab-ce
Pin: version 16.11.4-ce.0
Pin-Priority: -1

This will prevent the gitlab package from getting updated.

  1. Then the OS was upgraded
  2. The file /etc/apt/preferences.d/gitlab-ce was removed
  3. Then the gitlab version updated to latest version (via migration path)
1 Like