cPanel & WHM update failure in upcp script

Operating System & Version
CentOS v7.9.2009
cPanel & WHM Version
102.0.12

Heyckel

Active Member
Nov 23, 2017
39
3
58
belgium
cPanel Access Level
Root Administrator
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/rdate”. Review the update logs to determine why the update failed.
Update log preview:
...
...
[2022-04-30 03:15:38 +0200] E [/usr/local/cpanel/scripts/rdate] Failed to run due to the 10 second timeout being exceeded.
[2022-04-30 03:15:38 +0200] E [/usr/local/cpanel/scripts/rdate] The “/usr/local/cpanel/scripts/rdate” command (process 1098) reported error number 4 when it ended.

...
[2022-04-30 03:19:43 +0200] - Finished command `/usr/local/cpanel/bin/cloudlinux_update` in 0.231 seconds
[2022-04-30 03:19:43 +0200] Processing: Updating plugins data cache
[2022-04-30 03:19:43 +0200] - Processing command `/usr/local/cpanel/bin/refresh_plugin_cache`
[2022-04-30 03:19:43 +0200] - Finished command `/usr/local/cpanel/bin/refresh_plugin_cache` in 0.065 seconds
[2022-04-30 03:19:43 +0200] Processing: Ensuring SSL certificate information for CCS is up to date.
[2022-04-30 03:19:43 +0200] - Processing command `/usr/local/cpanel/scripts/ccs-check --run --ssl`
[2022-04-30 03:19:44 +0200] [/usr/local/cpanel/scripts/ccs-check] SSL information updated.
[2022-04-30 03:19:44 +0200] - Finished command `/usr/local/cpanel/scripts/ccs-check --run --ssl` in 0.233 seconds
[2022-04-30 03:19:44 +0200] Processing: Ensure cpanel-plugins yum repo exists
[2022-04-30 03:19:44 +0200] - Finished in 0.619 seconds
[2022-04-30 03:19:44 +0200] Processing: Checking Addon Licenses
[2022-04-30 03:19:44 +0200] - Finished in 0.010 seconds
[2022-04-30 03:19:44 +0200] Processing: Updating Public Suffix List
[2022-04-30 03:19:44 +0200] Processing: Checking End Of Life for current version.
[2022-04-30 03:19:44 +0200] - Finished in 0.202 seconds
[2022-04-30 03:19:44 +0200] Processing:
[2022-04-30 03:19:44 +0200] Maintenance complete.
=> Log closed Sat Apr 30 03:19:44 2022
----------------------------------------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (905) at Sat Apr 30 03:19:44 2022
The system generated this notice on Saturday, April 30, 2022 at 1:19:45 AM UTC.
“cPanel Update Failures” notifications are currently configured to have an importance of “High”. You can change the importance or disable this type of notification in WHM’s Contact Manager at: https://mail2.haki-hosting.be:2087/scripts2/editcontact?event=upcp
Do not reply to this automated message.
 
Last edited by a moderator:

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
824
342
363
cPanel Access Level
DataCenter Provider
The rdate command is just use to sync your servers time. If you use ntp or chrony things should be fine. Even if you don't your servers time will sync on the next run of upcp.
 
  • Like
Reactions: Spirogg

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
549
255
138
IN
cPanel Access Level
Root Administrator
Correct, in the next upcp process it should be fine.
 
  • Like
Reactions: Spirogg

andrew.n

Well-Known Member
Jun 9, 2020
949
351
63
EU
cPanel Access Level
Root Administrator
This is usually occurs if rdate can't reach the NTP servers. What are your resolvers? (cat /etc/resolv.conf). In some cases this happens if you use Google's resolvers. I suggest you to change them to make sure this doesn't happen again.
 
  • Like
Reactions: Spirogg

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
549
255
138
IN
cPanel Access Level
Root Administrator
You can add a public resolver 1.1.1.1 run by Cloudflare in the tertiary field. So in case your primary and secondary fails Cloudflare public resolver will take care.
 

Heyckel

Active Member
Nov 23, 2017
39
3
58
belgium
cPanel Access Level
Root Administrator
SOme help please
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/find_outdated_services”. Review the update logs to determine why the update failed.
Update log preview:
...
...
[2022-06-07 03:17:49 +0200] E [/usr/local/cpanel/scripts/find_outdated_services] STDERR: Traceback (most recent call last):
[2022-06-07 03:17:49 +0200] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/local/cpanel/bin/needs-restarting-cpanel", line 314, in <module>
[2022-06-07 03:17:49 +0200] E [/usr/local/cpanel/scripts/find_outdated_services] sys.exit(main(sys.argv))
[2022-06-07 03:17:49 +0200] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/local/cpanel/bin/needs-restarting-cpanel", line 278, in main

...
[2022-06-07 03:18:10 +0200] - Processing command `/usr/local/cpanel/bin/refresh_plugin_cache`
[2022-06-07 03:18:10 +0200] - Finished command `/usr/local/cpanel/bin/refresh_plugin_cache` in 0.066 seconds
[2022-06-07 03:18:10 +0200] Processing: Ensuring SSL certificate information for CCS is up to date.
[2022-06-07 03:18:10 +0200] - Processing command `/usr/local/cpanel/scripts/ccs-check --run --ssl`
[2022-06-07 03:18:10 +0200] [/usr/local/cpanel/scripts/ccs-check] SSL information updated.
[2022-06-07 03:18:10 +0200] - Finished command `/usr/local/cpanel/scripts/ccs-check --run --ssl` in 0.101 seconds
[2022-06-07 03:18:10 +0200] Processing: Ensure cpanel-plugins yum repo exists
[2022-06-07 03:18:11 +0200] - Finished in 0.551 seconds
[2022-06-07 03:18:11 +0200] Processing: Checking Addon Licenses
[2022-06-07 03:18:11 +0200] - Finished in 0.008 seconds
[2022-06-07 03:18:11 +0200] Processing: Updating Public Suffix List
[2022-06-07 03:18:11 +0200] Processing: Checking End Of Life for current version.
[2022-06-07 03:18:11 +0200] - Finished in 0.133 seconds
[2022-06-07 03:18:11 +0200] Processing:
[2022-06-07 03:18:11 +0200] Maintenance complete.
=> Log closed Tue Jun 7 03:18:11 2022
----------------------------------------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (7619) at Tue Jun 7 03:18:11 2022
The system generated this notice on Tuesday, June 7, 2022 at 1:18:11 AM UTC.
“cPanel Update Failures” notifications are currently configured to have an importance of “High”. You can change the importance or disable this type of notification in WHM’s Contact Manager at: https://mail2.haki-hosting.be:2087/scripts2/editcontact?event=upcp
Do not reply to this automated message.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,276
2,229
363
cPanel Access Level
Root Administrator
  • Like
Reactions: Spirogg