Error in PREIN scriptlet in rpm package gitlab-ce-12.1.1-ce.0.el6.x86_64

Mann89

Member
Jul 25, 2019
5
0
1
England
cPanel Access Level
Root Administrator
Hi everyone,

I'm new around here but not new to cPanel, having been a user for many years.

My websites are hosted on a VPS and have been running smoothly for a long period - and continue to do so - but I receive an email each night as cPanel attempts to update behind the scenes.

I've shrugged this off for a number of months but it's starting to annoy me a little and a browse of the web and these boards haven't given me a solution.

The email I receive begins with the following message:
Maintenance ended; however, it did not exit cleanly (256). The following events were logged: “scripts/rpmup”. Review the update logs to determine why the update failed.
The log preview then identifies the following line as the problem:
[2019-07-25 00:26:20 +0100] E [/usr/local/cpanel/scripts/rpmup] The “/usr/local/cpanel/scripts/rpmup” command (process 1323) reported error number 1 when it ended.
After attempting to run the script manually, here is the output generated:
[2019-07-25 00:26:20 +0100] [/usr/local/cpanel/scripts/rpmup] (XID d34zkk) The system failed to execute yum with the arguments “--assumeyes --config /etc/yum.conf update --disablerepo=epel” because of an error: The “/usr/bin/yum --assumeyes --config /etc/yum.conf update --disablerepo=epel” command (process 1358) reported error number 1 when it ended. : Error in PREIN scriptlet in rpm package gitlab-ce-12.1.1-ce.0.el6.x86_64
[2019-07-25 00:26:20 +0100] [/usr/local/cpanel/scripts/rpmup]
[2019-07-25 00:26:20 +0100] [/usr/local/cpanel/scripts/rpmup] gitlab-ce-7.14.1-ce.0.el6.x86_64 was supposed to be removed but is not!
[2019-07-25 00:26:20 +0100] [/usr/local/cpanel/scripts/rpmup] checkyum version 22.3 (excludes: bind-chroot perl ruby)
[2019-07-25 00:26:20 +0100] E [/usr/local/cpanel/scripts/rpmup] The “/usr/local/cpanel/scripts/rpmup” command (process 1323) reported error number 1 when it ended.
[2019-07-25 00:26:20 +0100] The Administrator will be notified to review this output when this script completes
[2019-07-25 00:26:20 +0100] - Finished command `/usr/local/cpanel/scripts/rpmup` in 189.484 seconds
 

Mann89

Member
Jul 25, 2019
5
0
1
England
cPanel Access Level
Root Administrator
I've tried various ways of trying to locate the package but just don't seem able to find it.

cyberciti.biz/faq/linux-how-can-i-find-a-file-on-my-system/

Maybe the script is attempting to delete a file that doesn't actually exist? You wouldn't happen to have any idea where the package would be located on a standard server?
 
Last edited by a moderator:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,263
313
Houston
Hi @Mann89

You would want to run something like:

Code:
rpm -qa |grep gitlab-ce
If you have the old version and the newer version you'd want to remove the older version.

To remove it:

Code:
rpm -e --nodeps gitlab-ce-7.14.1-ce.0.el6.x86_64
 

Mann89

Member
Jul 25, 2019
5
0
1
England
cPanel Access Level
Root Administrator
Running the first command above gives the following output:
gitlab-ce-7.14.1-ce.0.el6.x86_64
Would you recommend I go ahead and delete using the second command, or would removing this cause further issues as no updated version appears to have been installed on the server?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,263
313
Houston
That at least confirms that you don't have duplicates installed.

If you manually run the following do you get an error?

Code:
yum update gitlab-ce
If it updates appropriately that's great, but really I'm assuming it won't and you'll get a more descriptive error message.
 

Mann89

Member
Jul 25, 2019
5
0
1
England
cPanel Access Level
Root Administrator
Unsuccessful, I'm afraid.

It appears upgrading from version 7.x to 12.x is giving us the problem.

Code:
yum update gitlab-ce
Loaded plugins: fastestmirror, security, tsflags, universal-hooks
Setting up Update Process
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                                                                                                                                                          |  30 kB     00:00    
 * EA4: 91.197.228.252
 * cpanel-addons-production-feed: 91.197.228.252
 * cpanel-plugins: 91.197.228.252
 * base: mirrors.coreix.net
 * centos-sclo-rh: mirrors.coreix.net
 * epel: mirrors.coreix.net
 * extras: centos.serverspace.co.uk
 * updates: mirror.as29550.net
EA4                                                                                                                                                                                                                                                    | 2.9 kB     00:00 ...
cpanel-addons-production-feed                                                                                                                                                                                                                          | 2.9 kB     00:00 ...
cpanel-plugins                                                                                                                                                                                                                                         | 2.9 kB     00:00 ...
base                                                                                                                                                                                                                                                   | 3.7 kB     00:00    
centos-sclo-rh                                                                                                                                                                                                                                         | 2.9 kB     00:00    
epel                                                                                                                                                                                                                                                   | 5.3 kB     00:00    
epel/primary_db                                                                                                                                                                                                                                        | 6.1 MB     00:00    
extras                                                                                                                                                                                                                                                 | 3.4 kB     00:00    
gitlab_gitlab-ce/signature                                                                                                                                                                                                                             |  836 B     00:00    
gitlab_gitlab-ce/signature                                                                                                                                                                                                                             | 1.0 kB     00:00 ...
gitlab_gitlab-ce-source/signature                                                                                                                                                                                                                      |  836 B     00:00    
gitlab_gitlab-ce-source/signature                                                                                                                                                                                                                      |  951 B     00:00 ...
letsencrypt-cpanel                                                                                                                                                                                                                                     | 2.9 kB     00:00    
updates                                                                                                                                                                                                                                                | 3.4 kB     00:00    
Resolving Dependencies
--> Running transaction check
---> Package gitlab-ce.x86_64 0:7.14.1-ce.0.el6 will be updated
---> Package gitlab-ce.x86_64 0:12.1.1-ce.0.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================================================================================================
 Package                                                        Arch                                                        Version                                                               Repository                                                             Size
==============================================================================================================================================================================================================================================================================
Updating:
 gitlab-ce                                                      x86_64                                                      12.1.1-ce.0.el6                                                       gitlab_gitlab-ce                                                      630 M

Transaction Summary
==============================================================================================================================================================================================================================================================================
Upgrade       1 Package(s)

Total download size: 630 M
Is this ok [y/N]: y
Downloading Packages:
gitlab-ce-12.1.1-ce.0.el6.x86_64.rpm                                                                                                                                                                                                                   | 630 MB     00:59    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
gitlab preinstall: It seems you are upgrading from 7.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.1-ce.0.el6.x86_64) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package gitlab-ce-12.1.1-ce.0.el6.x86_64
error:   install: %pre scriptlet failed (2), skipping gitlab-ce-12.1.1-ce.0.el6
gitlab-ce-7.14.1-ce.0.el6.x86_64 was supposed to be removed but is not!
  Verifying  : gitlab-ce-7.14.1-ce.0.el6.x86_64                                                                                                                                                                                                                           1/2
  Verifying  : gitlab-ce-12.1.1-ce.0.el6.x86_64                                                                                                                                                                                                                           2/2

Failed:
  gitlab-ce.x86_64 0:7.14.1-ce.0.el6                                                                                                    gitlab-ce.x86_64 0:12.1.1-ce.0.el6                                                                                                  

Complete!
 

Mann89

Member
Jul 25, 2019
5
0
1
England
cPanel Access Level
Root Administrator
Rather frustrating and time consuming, but I appear to have solved the problem by upgrading through each major version one at a time.

Code:
sudo yum install --nogpgcheck gitlab-ce-X.X.X-ce.0.el6.x86_64
Replacing the X.X.X values above, I manually had to upgrade from version 7 to 8, 8 to 9 and so on until eventually reaching version 12.1.1 (latest version).

The HUGE problem I am left with now, however, is that none of the websites on the server display.

I've tried the command below, but still no luck.

Code:
sudo gitlab-ctl reconfigure
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,263
313
Houston
I'm glad to hear you were able to get it updated, please keep in mind this isn't a package that's specific to cPanel/WHM and our ability to provide assistance with it is limited.

If you enable the PHP error logs or check the apache error logs when attempting to load the site that is not displaying what if any errors are present?