Cannot upgrade on Centos 7.9

I have a gitlab instance on an old centos 7.9 which cannot be upgraded at this time as it would cause too much down time.

When trying to update, I get the following error which I cannot find a solution to by searching the net.
Wondering if someone might have a solution other than using any skip options.

Running transaction
gitlab preinstall: It seems you are upgrading from major version 11 to major version 14.
gitlab preinstall: It is required to upgrade to the latest 14.0.x version first before proceeding.
gitlab preinstall: Please follow the upgrade documentation at                                              -paths
error: %pre(gitlab-ce-14.4.1-ce.0.el7.x86_64) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package gitlab-ce-14.4.1-ce.0.el7.x86_64
  Verifying  : gitlab-ce-14.4.1-ce.0.el7.x86_64                                                               1/2
gitlab-ce-11.7.0-ce.0.el7.x86_64 was supposed to be removed but is not!
  Verifying  : gitlab-ce-11.7.0-ce.0.el7.x86_64                                                               2/2

  gitlab-ce.x86_64 0:11.7.0-ce.0.el7                      gitlab-ce.x86_64 0:14.4.1-ce.0.el7

Yes, you can’t do that. You need to follow the upgrade path here: Upgrading GitLab | GitLab

Since you are on 11.7.0, then your path is:

11.11.8 12.0.12 12.1.17 12.10.1413.0.14 13.1.11 13.8.8 latest 13.12.Z latest 14.0.Z latest 14.Y.Z

So you need to start with 11.11.8 doing this:

yum install gitlab-ce-11.11.8-ce.0.el7.x86_64

you can use this link for finding the next version after you have upgraded to 11.11.8 and when you click that particular version it will give you in the top right hand corner, the yum install command similar to like I provided above: gitlab/gitlab-ce - Results for 'gitlab-ce' and el/7 in gitlab/gitlab-ce

also make sure background migrations have finished before attempting to upgrade to the next version on the list. This is important if you don’t want to break your install. This link direct to background migrations tells you how to check this from the console for example: Upgrading GitLab | GitLab

yum install gitlab-ce-11.11.8-ce.0.el7.x86_64

I started with the above which seemed to upgrade, no obvious errors but gitlab won’t come up now.
I’ve tried restarting the service and the server, nada.

Have to start digging I guess.

You can try running reconfigure

gitlab-ctl reconfigure
gitlab-ctl restart

Check also status so we can see if all processes started and also check the logs

gitlab-ctl status

I didn’t see any errors in any of the logs so I rebooted and that seemed to fix what ever the hickup was.
On to the next version… with another backup first :).

13.12.Z and 14.0.Z don’t seem to exist. Is it a typo?

No package gitlab-ce-13.12.Z-ce.0.el7.x86_64 available

That because you need to choose the last 13.12 release. Go to the package link I gave in my first post and search for 13.12. Then find the last release number and use that in place of Z.

I just didn’t get your example but all good now, running 14.1.6.
Thank you for the input on this, I appreciate it.

1 Like