Symptoms
The cPanel update fails, and a message similar to the following can be seen in the update log.
CONFIG_TEXT: [2024-09-21 05:15:09 +0300] Retrying download of /cpanelsync/11.x.0.x/cpanel/scripts/updatenow.static.bz2 (attempt 10/10): Can't open file: No such file or directory at /usr/local/cpanel/Cpanel/HttpRequest.pm line 419.
Cause
This issue occurs because files in the staging directory have become corrupt. Moving aside the staging files will allow the update to succeed.
Resolution
- Log in to the server via SSH or WHM's Terminal as the
rootuser Locate the staging directory by running the following command:
# grep STAGING_DIR /etc/cpupdate.conf
Move aside the staging files:
# mv -v /path/to/staging/.cpanel__$host_domain_tld__upcp_staging{,.$(date +%s)}
Note: "/path/to/staging" and "$host_domain_tld" in the above provided command must be replaced with the path of the staging directory and the server's hostname with each . replaced with _.
Comments
0 comments
Article is closed for comments.