The system encountered an error during the attempt to restore the file. For details, check this error log, or contact your hosting provider
I tried to restore a folder from WHM and when I clicked the restore button I got:
Error: The system encountered an error during the attempt to restore the file. For details, check this error log, or contact your hosting provider: /usr/local/cpanel/logs/error_log
Checking the log I see:
The system detected problems when it tried to restore the "/backup/weekly/2020-11-29/accounts/[PATHREMOVED].tar.gz" backup for the "/home/[PATHREMOVED]" file. "The backup writing process returned errors while working with "[PATHREMOVED]/homedir/symfony/var/cache".
The arguments for the writing process were ( --extract -z --no-same-owner --preserve-permissions --no-wildcards --no-unquote --file - --no-wildcards-match-slash --strip=2 --sparse --blocking-factor 200 --directory /home/[PATHREMOVED] -- [PATHREMOVED]/homedir/symfony/var/cache ).
The arguments for the reading prcoess were ( --create --file - --no-wildcards-match-slash --sparse --blocking-factor 200 --directory [PATHREMOVED]/homedir/symfony/var/ -- cache )
Errors:
--------------------------------------------------------------------------------
/usr/bin/gtar: symfony/var/cache/dev/ContainerLvRcQ4j: Cannot utime: Operation not permitted
/usr/bin/gtar: symfony/var/cache/dev/twig/24: Cannot utime: Operation not permitted
....
/usr/bin/gtar: symfony/var/cache/dev/pools/OxQOHjqlNu/X/N: Cannot utime: Operation not permitted-
Is it from an off-site or local backup? Did the backup made on this server? How are the permissions of that symfony folder? 0 -
Thanks for the reply. This is a local backup. Cache folder is 0777. The backup must have gone through though, as the issue (due to accidental deletion) was restored after that. 0 -
Interesting and even that symfony folder was restored successfully? 0 -
Hey there! When I have seen this issue in the past, it's always been a problem with permissions or ownership. Can you make sure everything has the correct permissions on the cPanel account? You may want to run a command similar to this: find /home/username/public_html/ ! -user username
to find files that aren't owned by the user.0 -
Yes, there were I ran chown -R username:username /home/username/symfony/0 -
Great - that may be enough to resolve the issue, but let me know if you still see problems with the restore. 0
Please sign in to leave a comment.
Comments
6 comments