Symptoms
The cPanel update fails, and a message similar to the following can be seen in the update log.
[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.
Description
This issue occurs because files in the staging directory have become corrupt. Moving aside the staging files will allow the update to succeed.
Workaround
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Locate the staging directory.
grep STAGING_DIR /etc/cpupdate.conf
- Move aside the staging files.
mv -v /path/to/staging/.cpanel__$host_domain_tld__upcp_staging{,.$(date +%s)}
Please note that "/path/to/staging" and "$host_domain_tld" 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.