cPanel & WHM update failure in upcp script: The “/usr/local/cpanel/scripts/rpmup” command reported error number 1

elsonf

Registered
Aug 6, 2020
2
0
1
Brasil
cPanel Access Level
Root Administrator
Hello,

Hi, this error came to me for the first time for me:

--------------------------------------------------------------------------

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:

...
...
[2020-08-06 23:00:49 -0300] E [/usr/local/cpanel/scripts/rpmup] The “/usr/local/cpanel/scripts/rpmup” command (process 8318) reported error number 1 when it ended.
...
[2020-08-06 23:01:32 -0300] - Finished command `/usr/local/cpanel/scripts/check_mysql` in 0.082 seconds
[2020-08-06 23:01:32 -0300] Processing: Checking CloudLinux installation
[2020-08-06 23:01:32 -0300] - Processing command `/usr/local/cpanel/bin/cloudlinux_update`
[2020-08-06 23:01:32 -0300] - Finished command `/usr/local/cpanel/bin/cloudlinux_update` in 0.036 seconds
[2020-08-06 23:01:32 -0300] Processing: Updating plugins data cache
[2020-08-06 23:01:32 -0300] - Processing command `/usr/local/cpanel/bin/refresh_plugin_cache`
[2020-08-06 23:01:32 -0300] - Finished command `/usr/local/cpanel/bin/refresh_plugin_cache` in 0.016 seconds
[2020-08-06 23:01:32 -0300] Processing: Ensuring SSL certificate information for CCS is up to date.
[2020-08-06 23:01:32 -0300] - Processing command `/usr/local/cpanel/scripts/ccs-check --run --ssl`
[2020-08-06 23:01:32 -0300] - Finished command `/usr/local/cpanel/scripts/ccs-check --run --ssl` in 0.005 seconds
[2020-08-06 23:01:32 -0300] Processing: Ensure cpanel-plugins yum repo exists
[2020-08-06 23:01:33 -0300] - Finished in 0.275 seconds
[2020-08-06 23:01:33 -0300] Processing: Checking Addon Licenses
[2020-08-06 23:01:33 -0300] - Finished in 0.004 seconds
[2020-08-06 23:01:33 -0300] Processing: Checking End Of Life for current version.
[2020-08-06 23:01:33 -0300] - Finished in 0.062 seconds
[2020-08-06 23:01:33 -0300] Processing:
[2020-08-06 23:01:33 -0300] Maintenance complete.
=> Log closed Thu Aug 6 23:01:33 2020
----------------------------------------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (8148) at Thu Aug 6 23:01:33 2020

I manually ran the command "/usr/local/cpanel/scripts/rpmup" and in the end I get these two errors (bold):


checkyum version 22.3 (excludes: bind-chroot kernel ruby)
info [rpmup] Starting yum execution “--assumeyes --color=never --config /etc/yum.conf update”.
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
* EA4: 104.254.183.20
* cpanel-addons-production-feed: 104.254.183.20
* cpanel-plugins: 104.254.183.20
Resolving Dependencies
--> Running transaction check
---> Package ai-bolit.x86_64 1:20.0619-1.el7 will be updated
---> Package ai-bolit.x86_64 1:20.0717-1.el7 will be an update
--> Finished Dependency Resolution


Total download size: 5.7 M
Downloading packages:
No Presto metadata available for imunify360
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : 1:ai-bolit-20.0717-1.el7.x86_64 1/2
Error unpacking rpm package 1:ai-bolit-20.0717-1.el7.x86_64

1:ai-bolit-20.0619-1.el7.x86_64 was supposed to be removed but is not!

Verifying : 1:ai-bolit-20.0619-1.el7.x86_64 1/2
Verifying : 1:ai-bolit-20.0717-1.el7.x86_64 2/2

Complete!
info [rpmup] Completed yum execution “--assumeyes --color=never --config /etc/yum.conf update”: in 8.550 second(s).
(XID ykhqkw) “/usr/bin/yum” reported error code “1” when it ended:
checkyum version 22.3 (excludes: bind-chroot ruby)
Would anyone know how to help me solve this problem?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,261
313
Houston
Can you run the following:

Code:
yum clean all
Code:
package-cleanup --problems
And if there is no error output try running the following once more:
Code:
/scripts/rpmup
If there is an error output please provide it here.
 

elsonf

Registered
Aug 6, 2020
2
0
1
Brasil
cPanel Access Level
Root Administrator
Here is the output from the commands provided:

yum clean all:

# yum clean all
Loaded plugins: fastestmirror, universal-hooks
Cleaning up the repositories: EA4 cpanel-addons-production-feed cpanel-plugins
: MariaDB103 OVH-metrics OVH-rtm base extras imunify360
: imunify360-ea-php-hardened kernelcare
: mysql-connectors-community mysql-tools-community
: mysql57-community updates
Cleaning up list of fastest mirrors
Other repos take up 1.6 M of disk space (use --verbose for details)
package-cleanup --problems:

# package-cleanup --problems
Loaded plugins: fastestmirror
Package imunify360-firewall-4.9.6-8.x86_64 has missing requires of ai-bolit >= ('1', '20.0717', '1')
/scripts/rpmup:

# /scripts/rpmup
checkyum version 22.3 (excludes: bind-chroot kernel ruby)
info [rpmup] Starting yum execution “--assumeyes --color=never --config /etc/yum.conf update”.
Loaded plugins: fastestmirror, universal-hooks
Determining fastest mirrors
* EA4: 104.254.183.20
* cpanel-addons-production-feed: 104.254.183.20
* cpanel-plugins: 104.254.183.20
Resolving Dependencies
--> Running transaction check
---> Package MariaDB-client.x86_64 0:10.3.23-1.el7.centos will be updated
---> Package MariaDB-client.x86_64 0:10.3.24-1.el7.centos will be an update
---> Package MariaDB-common.x86_64 0:10.3.23-1.el7.centos will be updated
---> Package MariaDB-common.x86_64 0:10.3.24-1.el7.centos will be an update
---> Package MariaDB-compat.x86_64 0:10.3.23-1.el7.centos will be updated
---> Package MariaDB-compat.x86_64 0:10.3.24-1.el7.centos will be an update
---> Package MariaDB-devel.x86_64 0:10.3.23-1.el7.centos will be updated
---> Package MariaDB-devel.x86_64 0:10.3.24-1.el7.centos will be an update
---> Package MariaDB-server.x86_64 0:10.3.23-1.el7.centos will be updated
---> Package MariaDB-server.x86_64 0:10.3.24-1.el7.centos will be an update
---> Package MariaDB-shared.x86_64 0:10.3.23-1.el7.centos will be updated
---> Package MariaDB-shared.x86_64 0:10.3.24-1.el7.centos will be an update
---> Package ai-bolit.x86_64 1:20.0619-1.el7 will be updated
---> Package ai-bolit.x86_64 1:20.0717-1.el7 will be an update
--> Finished Dependency Resolution


Total download size: 51 M
Downloading packages:
No Presto metadata available for imunify360
No Presto metadata available for MariaDB103
--------------------------------------------------------------------------------
Total 5.8 MB/s | 51 MB 00:08
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : MariaDB-common-10.3.24-1.el7.centos.x86_64 1/14

Updating : MariaDB-compat-10.3.24-1.el7.centos.x86_64 2/14
Updating : MariaDB-client-10.3.24-1.el7.centos.x86_64 3/14

Updating : MariaDB-server-10.3.24-1.el7.centos.x86_64 4/14
Updating : MariaDB-shared-10.3.24-1.el7.centos.x86_64 5/14

Updating : MariaDB-devel-10.3.24-1.el7.centos.x86_64 6/14
Updating : 1:ai-bolit-20.0717-1.el7.x86_64 7/14
Error unpacking rpm package 1:ai-bolit-20.0717-1.el7.x86_64

error: ai-bolit-1:20.0717-1.el7.x86_64: install failed
Cleanup : MariaDB-server-10.3.23-1.el7.centos.x86_64 8/14
Cleanup : MariaDB-client-10.3.23-1.el7.centos.x86_64 9/14
Cleanup : MariaDB-devel-10.3.23-1.el7.centos.x86_64 10/14
Cleanup : MariaDB-shared-10.3.23-1.el7.centos.x86_64 11/14
Cleanup : MariaDB-compat-10.3.23-1.el7.centos.x86_64 12/14
Cleanup : MariaDB-common-10.3.23-1.el7.centos.x86_64 13/14

/etc/yum/universal-hooks/pkgs/MariaDB-server/posttrans/100-build_mysql_conf: running in the background.
Verifying : MariaDB-shared-10.3.24-1.el7.centos.x86_64 1/14
Verifying : MariaDB-compat-10.3.24-1.el7.centos.x86_64 2/14
Verifying : MariaDB-client-10.3.24-1.el7.centos.x86_64 3/14
Verifying : MariaDB-devel-10.3.24-1.el7.centos.x86_64 4/14
Verifying : MariaDB-common-10.3.24-1.el7.centos.x86_64 5/14
Verifying : MariaDB-server-10.3.24-1.el7.centos.x86_64 6/14
Verifying : MariaDB-common-10.3.23-1.el7.centos.x86_64 7/14
Verifying : MariaDB-shared-10.3.23-1.el7.centos.x86_64 8/14
Verifying : 1:ai-bolit-20.0717-1.el7.x86_64 9/14
Verifying : MariaDB-server-10.3.23-1.el7.centos.x86_64 10/14
Verifying : MariaDB-compat-10.3.23-1.el7.centos.x86_64 11/14
Verifying : MariaDB-devel-10.3.23-1.el7.centos.x86_64 12/14
Verifying : MariaDB-client-10.3.23-1.el7.centos.x86_64 13/14
1:ai-bolit-20.0619-1.el7.x86_64 was supposed to be removed but is not!
Verifying : 1:ai-bolit-20.0619-1.el7.x86_64 14/14

Complete!
info [rpmup] Completed yum execution “--assumeyes --color=never --config /etc/yum.conf update”: in 46.750 second(s).
(XID eb2g5r) “/usr/bin/yum” reported error code “1” when it ended:
checkyum version 22.3 (excludes: bind-chroot ruby)