SOLVED /usr/local/cpanel/scripts/rpmup fails during upcp

Glendon Turner

Registered
Jan 16, 2019
4
1
1
Australia
cPanel Access Level
Root Administrator
I recently (last few weeks) have been receiving a email as follows about litespeed licence. This somehow has started automatically and I never requested litespeed and don't know what to do about fixing whatever is wrong.
Can someone help, I have been searching here and on google without success so far.

I have the update_log.txt file is needed.

The cPanel & WHM update process failed for the following reason:
Code:
...
...
[2019-06-02 05:26:21 +1000] E [/usr/local/cpanel/scripts/rpmup] The “/usr/local/cpanel/scripts/rpmup” command (process 27120) reported error number 1 when it ended.
...
[2019-06-02 05:26:44 +1000] - Processing command `/usr/local/cpanel/bin/cloudlinux_update`
[2019-06-02 05:26:44 +1000] - Finished command `/usr/local/cpanel/bin/cloudlinux_update` in 0.065 seconds
[2019-06-02 05:26:44 +1000] Processing: Updating plugins data cache
[2019-06-02 05:26:44 +1000] - Processing command `/usr/local/cpanel/bin/refresh_plugin_cache`
[2019-06-02 05:26:45 +1000] - Finished command `/usr/local/cpanel/bin/refresh_plugin_cache` in 0.025 seconds
[2019-06-02 05:26:45 +1000] Processing: Ensuring SSL certificate information for CCS is up to date.
[2019-06-02 05:26:45 +1000] - Processing command `/usr/local/cpanel/scripts/ccs-check --run --ssl`
[2019-06-02 05:26:45 +1000] - Finished command `/usr/local/cpanel/scripts/ccs-check --run --ssl` in 0.008 seconds
[2019-06-02 05:26:45 +1000] Processing: Ensure cpanel-plugins yum repo exists
[2019-06-02 05:26:45 +1000] - Finished in 0.020 seconds
[2019-06-02 05:26:45 +1000] Processing: Checking and provisioning LiteSpeed if licensed
[2019-06-02 05:26:45 +1000] - Processing command `/usr/local/cpanel/scripts/litespeed-check --run`
[2019-06-02 05:26:46 +1000] [/usr/local/cpanel/scripts/litespeed-check] No license found for LiteSpeed Web Server in cPanel Store.
[2019-06-02 05:26:46 +1000] - Finished command `/usr/local/cpanel/scripts/litespeed-check --run` in 0.975 seconds
[2019-06-02 05:26:46 +1000] Processing: Checking End Of Life for current version.
[2019-06-02 05:26:46 +1000] - Finished in 0.081 seconds
[2019-06-02 05:26:46 +1000] Processing:
[2019-06-02 05:26:46 +1000] Maintenance complete.
=> Log closed Sun Jun 2 05:26:46 2019
----------------------------------------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (27093) at Sun Jun 2 05:26:46 2019
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
[2019-06-02 05:26:21 +1000] E [/usr/local/cpanel/scripts/rpmup] The “/usr/local/cpanel/scripts/rpmup” command (process 27120) reported error number 1 when it ended.
Hello @Glendon Turner,

The error message quoted above is what's preventing the cPanel update from succeeding. Can you execute this command manually to verify if there are any issues with the RPM update process on your system?

Code:
/usr/local/cpanel/scripts/rpmup
Thank you.
 

Glendon Turner

Registered
Jan 16, 2019
4
1
1
Australia
cPanel Access Level
Root Administrator
Hi,
Thank you for the reply. I ran the command and have pasted the section where it fails below. I have tried running it with the '--skip-broken' option and it still fails at the same place.
It seems that mosquitto is the culprit, it there a way to prevent it from trying to update this item?

Code:
---> Package yum-utils.noarch 0:1.1.30-42.el6_10 will be an update
---> Package zsh.x86_64 0:4.3.11-4.el6.centos.2 will be updated
---> Package zsh.x86_64 0:4.3.11-9.el6_10 will be an update
--> Finished Dependency Resolution
Error: Package: mosquitto-1.5.5-1.1.x86_64 (home_oojah_mqtt)
 You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
cpanel-analytics-1.3.3-1.1.noarch has missing requires of cpanel-version >= ('0', '73.0.0', None)
info [rpmup] Completed yum execution “--assumeyes --config /etc/yum.conf update”: in 13.533 second(s).
(XID 2c6rmr) The system failed to execute yum with the arguments “--assumeyes --config /etc/yum.conf update” because of an error: The “/usr/bin/yum --assumeyes --config /etc/yum.conf update” command (process 30537) reported error number 1 when it ended. : Error: Package: mosquitto-1.5.5-1.1.x86_64 (home_oojah_mqtt)
           Requires: libwebsockets
checkyum version 22.3  (excludes: bind-chroot perl ruby)
[[email protected] ~]#
 

Glendon Turner

Registered
Jan 16, 2019
4
1
1
Australia
cPanel Access Level
Root Administrator
I have added mosquitto* to the exclude line in /etc/yum.conf and ran it again. It has now passed where the error occurred and is downloading updates. I will post what outcome I get when it finishes.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
(XID 2c6rmr) The system failed to execute yum with the arguments “--assumeyes --config /etc/yum.conf update” because of an error: The “/usr/bin/yum --assumeyes --config /etc/yum.conf update” command (process 30537) reported error number 1 when it ended. : Error: Package: mosquitto-1.5.5-1.1.x86_64 (home_oojah_mqtt) Requires: libwebsockets
I have added mosquitto* to the exclude line in /etc/yum.conf and ran it again. It has now passed where the error occurred and is downloading updates. I will post what outcome I get when it finishes.
Hello @Glendon Turner,

I'm glad to see you were able to find the culprit.

If you'd like to resume YUM updates for the mosquitto RPM in the future, it looks you'll need to install the libwebsockets package dependency from the CentOS EPEL repo (e.g. yum install libwebsockets). Keep in mind assistance with this third-party package or the YUM repo it comes from falls outside our scope of support.

Thank you.
 

Glendon Turner

Registered
Jan 16, 2019
4
1
1
Australia
cPanel Access Level
Root Administrator
Thank you for your helpful advice.
Today I have not received any error messages and we don't use libwebsockets for mqtt.

I appreciate and understand that this falls outside your support scope but your advice helped me to locate where the problem was and it seems to be working now.
Thank you
 
  • Like
Reactions: cPanelMichael
Jul 11, 2012
12
1
3
cPanel Access Level
Root Administrator
Hello
Googleing for the same error message I found this thread.

This is the daily email I am getting:
The cPanel & WHM update process failed for the following reason:
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.
Update log preview:
...
...
[2019-09-30 00:56:21 -0700] E [/usr/local/cpanel/scripts/rpmup] The “/usr/local/cpanel/scripts/rpmup” command (process 10913) reported error number 1 when it ended.


This is what I get when running manually the command:

[[email protected] gabriel]# /usr/local/cpanel/scripts/rpmup
checkyum version 22.3 (excludes: bind-chroot kernel ruby)
info [rpmup] Starting yum execution “--assumeyes --config /etc/yum.conf update --disablerepo=epelâ€.
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
* EA4: 208.43.129.162
* cpanel-addons-production-feed: 208.43.129.162
* cpanel-plugins: 208.43.129.162
* base: mirror.layeronline.com
* extras: mirror.layeronline.com
* remi-safe: repo1.sea.innoscale.net
* updates: mirror.layeronline.com
Resolving Dependencies
--> Running transaction check
---> Package iputils.x86_64 0:20160308-8.el7 will be updated
---> Package iputils.x86_64 0:20160308-10.el7 will be an update
---> Package shadow-utils.x86_64 2:4.1.5.1-25.el7_6.1 will be updated
---> Package shadow-utils.x86_64 2:4.6-5.el7 will be an update
--> Finished Dependency Resolution


Total download size: 1.3 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
--------------------------------------------------------------------------------
Total 1.7 MB/s | 1.3 MB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : 2:shadow-utils-4.6-5.el7.x86_64 1/4
Error unpacking rpm package 2:shadow-utils-4.6-5.el7.x86_64

Updating : iputils-20160308-10.el7.x86_64 2/4
Error unpacking rpm package iputils-20160308-10.el7.x86_64

Verifying : iputils-20160308-10.el7.x86_64 1/4
Verifying : 2:shadow-utils-4.6-5.el7.x86_64 2/4
iputils-20160308-8.el7.x86_64 was supposed to be removed but is not!
Verifying : iputils-20160308-8.el7.x86_64 3/4
2:shadow-utils-4.1.5.1-25.el7_6.1.x86_64 was supposed to be removed but is not!
Verifying : 2:shadow-utils-4.1.5.1-25.el7_6.1.x86_64 4/4

Complete!
info [rpmup] Completed yum execution “--assumeyes --config /etc/yum.conf update --disablerepo=epelâ€: in 4.662 second(s).
(XID exzpxt) 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 22973) reported error number 1 when it ended. : Error unpacking rpm package 2:shadow-utils-4.6-5.el7.x86_64
Error unpacking rpm package iputils-20160308-10.el7.x86_64
iputils-20160308-8.el7.x86_64 was supposed to be removed but is not!
2:shadow-utils-4.1.5.1-25.el7_6.1.x86_64 was supposed to be removed but is not!
checkyum version 22.3 (excludes: bind-chroot ruby)
[[email protected] gabriel]#


Any help or tip will be really appreciated. I have this issue in several cpanel installations.
Thanks