Error upgrading gitlab-ce from 11.9.9 to 12.1.3

Summary

yum install -y gitlab-ce-12.1.3

Steps to reproduce

yum install -y gitlab-ce-12.1.3 when gitlab-ce version is gitlab-ce.x86_64 0:11.9.9-ce.0.el7

What is the current bug behavior?

Upgrading from Gitlab-ce 11.9.9 to 12.1.3 faild.

What is the expected correct behavior?

Chef Client finished

Relevant logs

Relevant logs

[root@master ~]# cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
11.9.9
[root@master ~]# yum install -y gitlab-ce:12.1.3
Loaded plugins: fastestmirror
base                                                                                                           | 3.6 kB  00:00:00
extras                                                                                                         | 3.4 kB  00:00:00
gitlab-ce                                                                                                      | 2.9 kB  00:00:00
gitlab_gitlab-ce/x86_64/signature                                                                              |  836 B  00:00:00
gitlab_gitlab-ce/x86_64/signature                                                                              | 1.0 kB  00:00:00 !!!
gitlab_gitlab-ce-source/signature                                                                              |  836 B  00:00:00
gitlab_gitlab-ce-source/signature                                                                              |  951 B  00:00:00 !!!
gitlab_gitlab-ee/x86_64/signature                                                                              |  836 B  00:00:00
gitlab_gitlab-ee/x86_64/signature                                                                              | 1.0 kB  00:00:00 !!!
gitlab_gitlab-ee-source/signature                                                                              |  836 B  00:00:00
gitlab_gitlab-ee-source/signature                                                                              |  951 B  00:00:00 !!!
updates                                                                                                        | 3.4 kB  00:00:00
gitlab-ce/primary_db                                                                                           | 3.0 MB  00:00:00
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * extras: mirrors.163.com
 * updates: mirrors.tuna.tsinghua.edu.cn
No package gitlab-ce:12.1.3 available.
Error: Nothing to do
[root@master ~]# yum install -y gitlab-ce-12.1.3
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * extras: mirrors.163.com
 * updates: mirrors.tuna.tsinghua.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package gitlab-ce.x86_64 0:11.9.9-ce.0.el7 will be updated
---> Package gitlab-ce.x86_64 0:12.1.3-ce.0.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================== Package Arch Version Repository Size

Updating: gitlab-ce x86_64 12.1.3-ce.0.el7 gitlab-ce 641 M

Transaction Summary

Upgrade 1 Package

Total download size: 641 M Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. gitlab-ce-12.1.3-ce.0.el7.x86_64.rpm | 641 MB 00:03:44 Running transaction check Running transaction test Transaction test succeeded Running transaction gitlab preinstall: It seems you are upgrading from 11.x version series gitlab preinstall: to 12.x series. It is recommended to upgrade gitlab preinstall: to the last minor version in a major version series first before gitlab preinstall: jumping to the next major version. gitlab preinstall: Please follow the upgrade documentation at https://docs.gitlab.com/ee/policy/maintenance.html#upgrade-recommendations gitlab preinstall: and upgrade to 11.11 first. error: %pre(gitlab-ce-12.1.3-ce.0.el7.x86_64) scriptlet failed, exit status 1 Error in PREIN scriptlet in rpm package gitlab-ce-12.1.3-ce.0.el7.x86_64 Verifying : gitlab-ce-12.1.3-ce.0.el7.x86_64 1/2 gitlab-ce-11.9.9-ce.0.el7.x86_64 was supposed to be removed but is not! Verifying : gitlab-ce-11.9.9-ce.0.el7.x86_64 2/2

Failed: gitlab-ce.x86_64 0:11.9.9-ce.0.el7 gitlab-ce.x86_64 0:12.1.3-ce.0.el7

Complete!

Details of package version

11.9.9

Environment details

  • Operating System: Centos7
  • Installation Target, remove incorrect values:VM:Other
    • Other: Hype-v
  • Installation Type, remove incorrect values:
    • Upgrade from version 11.9.9
Edited by dobixu