cPanel & WHM update process failed every time.

Operating System & Version
Centos 7
cPanel & WHM Version
version: 11.100.0.8

iyakka

Registered
Feb 3, 2022
1
0
0
Srilanka
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/check_valid_server_hostname”. Review the update logs to determine why the update failed.

Update log preview:

...
...
[2022-02-03 15:44:53 +0530] E [/usr/local/cpanel/scripts/check_valid_server_hostname] ERROR: WHM has detected a manual hostname change.
[2022-02-03 15:44:53 +0530] E [/usr/local/cpanel/scripts/check_valid_server_hostname]
[2022-02-03 15:44:53 +0530] E [/usr/local/cpanel/scripts/check_valid_server_hostname] The system will attempt to synchronize the current hostname “webmate.iyakka.lk” to the system configuration. In the future, update your hostname in WHM’s (http://webmate.iyakka.lk:2087/scripts2/changehostname) interface (Home » Networking Setup » Change Hostname).
[2022-02-03 15:44:53 +0530] E [/usr/local/cpanel/scripts/check_valid_server_hostname] Cpanel::Exception::InvalidParameters/(XID 7br8tf) The following parameters don't belong as an argument to notification_class(); you may have meant to pass these in constructor_args instead: priority
...
[2022-02-03 15:45:14 +0530] Processing: Updating plugins data cache
[2022-02-03 15:45:14 +0530] - Processing command `/usr/local/cpanel/bin/refresh_plugin_cache`
[2022-02-03 15:45:14 +0530] - Finished command `/usr/local/cpanel/bin/refresh_plugin_cache` in 0.099 seconds
[2022-02-03 15:45:14 +0530] Processing: Ensuring SSL certificate information for CCS is up to date.
[2022-02-03 15:45:14 +0530] - Processing command `/usr/local/cpanel/scripts/ccs-check --run --ssl`
[2022-02-03 15:45:14 +0530] - Finished command `/usr/local/cpanel/scripts/ccs-check --run --ssl` in 0.036 seconds
[2022-02-03 15:45:14 +0530] Processing: Ensure cpanel-plugins yum repo exists
[2022-02-03 15:45:16 +0530] - Finished in 2.253 seconds
[2022-02-03 15:45:16 +0530] Processing: Checking Addon Licenses
[2022-02-03 15:45:16 +0530] - Finished in 0.005 seconds
[2022-02-03 15:45:16 +0530] Processing: Updating Public Suffix List
[2022-02-03 15:45:16 +0530] Processing: Checking End Of Life for current version.
[2022-02-03 15:45:17 +0530] - Finished in 0.298 seconds
[2022-02-03 15:45:17 +0530] Processing:
[2022-02-03 15:45:17 +0530] Maintenance complete. [state=post]
=> Log closed Thu Feb 3 15:45:17 2022
----------------------------------------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (14675) at Thu Feb 3 15:45:17 2022

The system generated this notice on Thursday, February 3, 2022 at 10:15:17 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://webmate.iyakka.lk:2087/scripts2/editcontact?event=upcp

Do not reply to this automated message.

cP

Copyright© 2022 cPanel, L.L.C.


asking me to change the hostname but even if do change it comes the same error again and again ..... failed mails about 50 up a day ...
 

andrew.n

Well-Known Member
Jun 9, 2020
951
352
63
EU
cPanel Access Level
Root Administrator
What is the new hostname you set? It should be a valid one with valid TDL.
 
  • Like
Reactions: cPRex

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,364
2,249
363
cPanel Access Level
Root Administrator
I'd recommend going to WHM >> Change Hostname and just try resetting the hostname to see if that takes care of the issue. You can then run the command from the error:

Code:
/usr/local/cpanel/scripts/check_valid_server_hostname
and it will say "OK" if things are working well.