Broken gitlab after upgrade


On Ubuntu 16.04, I was running gitlab-ee(without license) 11.6.3, today i wanted to upgrade it, i simply did “apt-get upgrade” but it said the current version is 12… and before that i need to install 11.11.

I got .dpkg file to install 11.11 then tried to do it with apt-get and both times it failed with same error:

root@gitlab-srv:~# sudo apt-get install gitlab-ee=11.11.5-ee.0

Reading package lists... Done
Building dependency tree
Reading state information... Done

The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-131 linux-headers-4.4.0-131-generic linux-headers-4.4.0-141 linux-headers-4.4.0-141-generic
  linux-image-4.4.0-131-generic linux-image-4.4.0-141-generic linux-image-extra-4.4.0-131-generic
Use 'sudo apt autoremove' to remove them.

The following packages will be upgraded:

1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
40 not fully installed or removed.
Need to get 729 MB of archives.
After this operation, 25.5 MB disk space will be freed.

Get:1 xenial/main amd64 gitlab-ee amd64 11.11.5-ee.0 [729 MB]
Fetched 729 MB in 5min 22s (2,263 kB/s)
(Reading database ... 244163 files and directories currently installed.)

Preparing to unpack .../gitlab-ee_11.11.5-ee.0_amd64.deb ...
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/ version `GLIBC_2.25' not found (required by /opt/gitlab/embedded/lib/

dpkg: error processing archive /var/cache/apt/archives/gitlab-ee_11.11.5-ee.0_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1

Errors were encountered while processing:

E: Sub-process /usr/bin/dpkg returned an error code (1)

Since this I cannot even run gitlab-ctl or even backup my gitlab, every gitlab related command fail with same error:

/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/ version `GLIBC_2.25' not found (required by /opt/gitlab/embedded/lib/

It seems that I currently got a failed 11.11.4 version!

  • gitlab-ee 11.11.4
  • gitlab-config-template 11.11.4
  • gitlab-cookbooks 11.11.4

I wanted to upgrade my ubuntu to 18.04 but since i have an unfinished package to install I wasnt able to proceed with that too!

I even tried to downgrade it to the last working version but for that it need ruby and it seems all problems are coming from /opt/gitlab/embedded/lib/

I appreciate any help,

@djn3m0 make sure you’ve downloaded the right package(for ubuntu 16.04, not 18.04)

where is 16.04 version download (18.04). It is different URL?

You should probably say something more about what you try and what happens.

Are you using the omnibus packages or installing from source? (Or some third option)

As the newest version of GitLab is 12.2.5, and 16.04 and 18.04 is two well known (and supported) versions of Ubuntu I’m guessing those version numbers means you’re running ubuntu. If you’re also using the omnibus packages the answer is “yes, but…”, if you follow the guide (but does the sane thing of downloading and execute the downloaded - and read - version) the difference will be handled automatically (and just amounts to whether the generated file (which will be called gitlab_gitlab-ee.list) in /etc/apt/sources.list.d says “xenial” or “bionic”, something you should be able to understand and change, if you know what you’re doing.

I am using omnibus 15.2.2 on Ubuntu 20.04. (Ubuntu 20.04 is not good choice?)

One of our GitLab servers run on Ubuntu 20.04, so there is no problems in that.

After three years, I don’t remember the case, but as you now mention a new (15.2.2) version compared to what was talked about in the case, I’m thinking that might not matter not. But then the question is: What is the problem?