Skip to main content

“cPanel & WHM update failure in upcp script” persists after forced update

Comments

13 comments

  • cPanelMichael
    Hello, First, it looks like you need to update your hostname to a fully-qualified domain name (e.g. server.domain.tld) using "WHM >> Change Hostname". As far as the cPanel update error, could you run the command below and let us know the output? awk '$4=="E"' /var/cpanel/updatelogs/update.xxxxxxxxxx.log
    Thank you.
    0
  • Jim Ratliff
    Thanks! I entered: awk '$4=="E"' /var/cpanel/updatelogs/update.xxxxxxxxxx.log
    and got this response: ~ jim$ awk '$4=="E"' /var/cpanel/updatelogs/update.xxxxxxxxxx.log awk: can't open file /var/cpanel/updatelogs/update.xxxxxxxxxx.log source line number 1
    0
  • cPanelMichael
    Hi Jim, I apologize, I should have mentioned that you need to replace "update.xxxxxxxxxx.log" with the name of the most recent update log in the /var/cpanel/updatelogs/ directory. Thank you.
    0
  • Jim Ratliff
    Thanks, Michael. This looks promisingly informative: E [/usr/local/cpanel/scripts/fixetchosts] The "/usr/local/cpanel/scripts/fixetchosts" command (process 10320) reported error number 255 when it ended. E Post Maintenance ended, however it did not exit cleanly (256). Please check the logs for an indication of what happened
    0
  • cPanelMichael
    Hello, That shows the cPanel update is failing when it attempts to run the following command: /usr/local/cpanel/scripts/fixetchosts
    Could you run that command manually after updating the server's hostname using "WHM >> Change Hostname" and let us know if it still fails? Thank you.
    0
  • Jim Ratliff
    Thanks, Michael! I changed the hostname to a FQDN. Then I entered: /usr/local/cpanel/scripts/fixetchosts
    It immediately returned with no errors or anything else. I assume that means that the command worked. Thanks, again. I appreciate your quick and on-target help!
    0
  • Jim Ratliff
    I'm surprised that WHM accepted my defective hostname in the first place, however.
    0
  • cPanelMichael
    Hello, You can also run the "/scripts/upcp" command to confirm the cPanel update process completes successfully. If this is a VPS on the OpenVZ/Virtuozzo platform, you may also want to review the following thread: Thank you.
    0
  • Jim Ratliff
    Michael, the "/scripts/upcp" command is still failing with an error for fixetchosts: E [/usr/local/cpanel/scripts/fixetchosts] The "/usr/local/cpanel/scripts/fixetchosts" command (process 6810) reported error number 255 when it ended. E Post Maintenance ended, however it did not exit cleanly (256). Please check the logs for an indication of what happened
    0
  • Jim Ratliff
    Updating my last post" For some reason, it's still complaining about my hostname. About 10 hours ago, I changed the hostname to a FQDN (sierra.mydomain.org) and I received a "Hostname change status" email confirming it: [QUOTE]The server recently changed hostname from "sierra" to "sierra.example.com". As part of this change, a background task was launched to update the hostname in individual users' Horde databases. The outcome of this task was: Success.
    Now however the log produced by "/scripts/upcp" still shows: Processing: Validating server hostname - Processing command `/usr/local/cpanel/scripts/check_valid_server_hostname --notify` [/usr/local/cpanel/scripts/check_valid_server_hostname] Changing hostname to sierra...Failed! [/usr/local/cpanel/scripts/check_valid_server_hostname] [/usr/local/cpanel/scripts/check_valid_server_hostname] sierra is not a valid hostname [/usr/local/cpanel/scripts/check_valid_server_hostname] Warnings were seen during rename: [/usr/local/cpanel/scripts/check_valid_server_hostname] [/usr/local/cpanel/scripts/check_valid_server_hostname] Please refer to RFCs 952 and 1123 to determine valid hostname. - Finished command `/usr/local/cpanel/scripts/check_valid_server_hostname --notify` in 0.128 seconds
    0
  • Jim Ratliff
    I re-changed the hostname and ran "/scripts/upcp" and this time it went through to 100% completion without complaining about the hostname. In WHM " Change Hostname, I've verified that the new/correct hostname has stuck. (Somehow it reverted previously.) So" I think I'm fine now.
    0
  • cPanelMichael
    Hello, You may also want to review the following thread if your hostname continues to change automatically: Thank you.
    0
  • Jim Ratliff
    Thanks, Michael! Your earlier link to the "Hostname resets on reboot" was enlightening. Because it requires a VPS-level change, I outsourced that to my host. My reboot will be the test!
    0

Please sign in to leave a comment.