cPanel & WHM update failure in upcp script

pixobit

Registered
Nov 16, 2022
4
1
1
Romania
cPanel Access Level
Root Administrator
I tried to update cpanel by running /script/upcp --force but got the following error:
The cPanel & WHM update process failed for the following reason:

Maintenance ended; however, it did not exit cleanly (256). The following events were logged: “bin/checkallsslcerts”. Review the update logs to determine why the update failed.

Update log preview:

...
...
[2022-11-16 15:31:37 +0100] E [/usr/local/cpanel/bin/checkallsslcerts] Can't call method "expired" on an undefined value at bin/checkallsslcerts.pl line 181.
[2022-11-16 15:31:37 +0100] E [/usr/local/cpanel/bin/checkallsslcerts] The “/usr/local/cpanel/bin/checkallsslcerts --allow-retry --verbose” command (process 20289) reported error number 255 when it ended.
...
[2022-11-16 15:31:40 +0100] - Processing command `/usr/local/cpanel/bin/cloudlinux_update`
[2022-11-16 15:31:40 +0100] - Finished command `/usr/local/cpanel/bin/cloudlinux_update` in 0.050 seconds
[2022-11-16 15:31:40 +0100] Processing: Updating plugins data cache
[2022-11-16 15:31:40 +0100] - Processing command `/usr/local/cpanel/bin/refresh_plugin_cache`
[2022-11-16 15:31:40 +0100] - Finished command `/usr/local/cpanel/bin/refresh_plugin_cache` in 0.013 seconds
[2022-11-16 15:31:40 +0100] Processing: Ensuring SSL certificate information for CCS is up to date.
[2022-11-16 15:31:40 +0100] - Processing command `/usr/local/cpanel/scripts/ccs-check --run --ssl`
[2022-11-16 15:31:40 +0100] - Finished command `/usr/local/cpanel/scripts/ccs-check --run --ssl` in 0.004 seconds
[2022-11-16 15:31:40 +0100] Processing: Ensure cpanel-plugins yum repo exists
[2022-11-16 15:31:41 +0100] - Finished in 0.764 seconds
[2022-11-16 15:31:41 +0100] Processing: Checking Addon Licenses
[2022-11-16 15:31:41 +0100] - Finished in 0.010 seconds
[2022-11-16 15:31:41 +0100] Processing: Updating Public Suffix List
[2022-11-16 15:31:41 +0100] Processing: Checking End Of Life for current version.
[2022-11-16 15:31:41 +0100] - Finished in 0.052 seconds
[2022-11-16 15:31:41 +0100] Processing:
[2022-11-16 15:31:41 +0100] Maintenance complete. [state=post]
=> Log closed Wed Nov 16 15:31:41 2022
----------------------------------------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (14976) at Wed Nov 16 15:31:41 2022
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,601
2,621
363
cPanel Access Level
Root Administrator

pixobit

Registered
Nov 16, 2022
4
1
1
Romania
cPanel Access Level
Root Administrator
Thanks for the additional details. We have some more information on this case here:


Can you try the workaround presented there, which is to create a blank line in that file with this command?

Code:
echo > /var/cpanel/ssl/cpanel/cpanel.pem
and then run the command again?

Code:
/usr/local/cpanel/bin/checkallsslcerts
and let me know if that helps?
Unfortunatelly it doesn't seem to solve the issue. Still gives me the same error message
 

cPanelPeter

Senior Technical Analyst
Staff member
Sep 23, 2013
586
25
153
cPanel Access Level
Root Administrator
Hello,

Can you try running:
Code:
whmapi1 reset_service_ssl_certificate service='cpanel'
Then try
Code:
/usr/local/cpanel/bin/checkallsslcerts --verbose
again.

Thank you
 
  • Like
Reactions: pixobit