Cannot restore backup: Cannot open: Permission denied

Created:

2016-11-16 13:23:55 UTC

Modified:

2017-08-17 20:13:28 UTC

5

Was this article helpful?


Have more questions?

Submit a request

Cannot restore backup: Cannot open: Permission denied

Applicable to:

  • Plesk for Linux

Symptoms

During the restoration of a domain the following error is thrown:

Error:  
Archive error: from /var/lib/psa/dumps/clients/client_name/domains/example.com/client_name_example.com_mn_1310160418.tgz to /var/qmail/mailnames/example.com:
tar (child): /var/lib/psa/dumps/clients/client_name/domains/example.com/client_name_example.com_mn_1310160418.tgz: Cannot open: Permission denied
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

Cause

Incorrect permissions on directories, sub-directories or files in /var/lib/psa/dumps directory.

Resolution

Set the correct permissions:

# chown psaadm:psaadm /var/lib/psa/dumps
# chmod 755 /var/lib/psa/dumps
# chown root.root -R /var/lib/psa/dumps/*
# find /var/lib/psa/dumps/ -type f | xargs chmod -R 640
# find /var/lib/psa/dumps/ -type f -name status_OK | xargs chmod -R 644
# find /var/lib/psa/dumps/ -type d | xargs chmod 755

Additional information

113989 How to restore permissions and ownerships for system files and folders to default ones.

Have more questions? Submit a request
Please sign in to leave a comment.