• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

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