• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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