• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Cannot restore backup (Permission denied)

JVG

Basic Pleskian
Hi,

I have an old test server with Ubuntu and Plesk Onyx 17 that when trying to recover a backup has the same error as this old thread:

Basically it seems like a permissions issue:
Code:
Can not deploy content of domain ****
Archive error: from /var/lib/psa/dumps/domains/****/backup_user-data_*.tgz  to /var/www/vhosts/***
tar (child): /var/lib/psa/dumps/domains/***/backup_user-data_*.tgz: Cannot open: Permission denied
tar (child): Error is not recoverable: exiting now

In the old thread Igor shared this link to fix permissions of /var/lib/psa/dumps/ but it's now dead: https://support.plesk.com/hc/en-us/articles/213958765

These are the current permissions:
Code:
-rw-r----- 1 root root  backup_domainmail_*.tgz
-rw-r----- 1 root root  backup_privatekey_*.tgz
-rw-r----- 1 root root  backup_user-data_*.tgz
-rw-r----- 1 root root  backup_apache-files_*.tgz
-rw-r----- 1 root root  backup_statistics_*.tgz
-rw-r----- 1 root root  backup_pd_*.tgz
-rw-r----- 1 root root  backup_logs_*.tgz
-rw-r----- 1 root root  backup_conf_*.tgz
-rw------- 1 root root  backup_info_*.xml

It's a server-wide backup and the error happens when trying to restore a subscription.
 
Probably some subdirectories of /var/lib/psa/dumps have wrong permissions. This can be fixed by running (as root) plesk repair fs -y.
 
  • Like
Reactions: JVG
Probably some subdirectories of /var/lib/psa/dumps have wrong permissions. This can be fixed by running (as root) plesk repair fs -y.
Sorry for replying so late, but since this problem was on an old server use mainly for debugging I didn't get around to this until now.

plesk repair fs showed no problems or errors. The problem was the permissions on the /var/lib/dumps directory itself, for Plesk Onyx 17 it seems it shoud be 755, on the affected machine it was 750 for some reason.

For more info, /var/lib/dumps is mounted on another disk, maybe the old repair fs utility didn't check that one.

Thanks for the response, as always!
 
Back
Top