• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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