0 votes
908 views
in Control panels by

We have received the below Cpanel alert, 

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/update-packages". Review the update logs to determine why the update failed.
 

Update log preview:

...
...
[2023-01-05 02:26:02 +0800] E [/usr/local/cpanel/scripts/update-packages] The "/usr/local/cpanel/scripts/update-packages" command (process 695575) reported error number 1 when it ended.
...
[2023-01-05 02:28:05 +0800] Processing: Checking CloudLinux installation
[2023-01-05 02:28:05 +0800] - Processing command `/usr/local/cpanel/bin/cloudlinux_update`
[2023-01-05 02:28:05 +0800] - Finished command `/usr/local/cpanel/bin/cloudlinux_update` in 0.112 seconds
[2023-01-05 02:28:05 +0800] Processing: Updating plugins data cache
[2023-01-05 02:28:05 +0800] - Processing command `/usr/local/cpanel/bin/refresh_plugin_cache`
[2023-01-05 02:28:06 +0800] - Finished command `/usr/local/cpanel/bin/refresh_plugin_cache` in 0.116 seconds
[2023-01-05 02:28:06 +0800] Processing: Ensuring SSL certificate information for CCS is up to date.
[2023-01-05 02:28:06 +0800] - Processing command `/usr/local/cpanel/scripts/ccs-check --run --ssl`
[2023-01-05 02:28:06 +0800] - Finished command `/usr/local/cpanel/scripts/ccs-check --run --ssl` in 0.013 seconds
[2023-01-05 02:28:06 +0800] Processing: Ensure cpanel-plugins yum repo exists
[2023-01-05 02:28:06 +0800] - Finished in 0.952 seconds
[2023-01-05 02:28:06 +0800] Processing: Checking Addon Licenses
[2023-01-05 02:28:06 +0800] - Finished in 0.010 seconds
[2023-01-05 02:28:06 +0800] Processing: Updating Public Suffix List
[2023-01-05 02:28:06 +0800] Processing: Checking End Of Life for current version.
[2023-01-05 02:28:07 +0800] - Finished in 0.408 seconds
[2023-01-05 02:28:07 +0800] Processing:
[2023-01-05 02:28:07 +0800] Maintenance complete.
=> Log closed Thu Jan 5 02:28:07 2023
----------------------------------------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (695121) at Thu Jan 5 02:28:07 2023

1 Answer

0 votes
by

The automatic cPanel updates are mostly failing due to the rpmup script not completing. If you run rpmup manually, you should be prompted to accept the license terms, which should then update the packages necessary. You can manually run rpmup by running the following command via SSH as root:

/usr/local/cpanel/scripts/rpmup

 
While the script is running, you should be prompted to accept the license terms. Once accepted, the package updates should be complete. If these updates are complete, then the cPanel update should no longer fail due to these packages. However, please keep in mind that if the package provider's license terms change again in the future, you will need to repeat this process.

...