- Plesk for Linux
Since Plesk was upgraded to version 17.5, daily backup task completes with the following error:
PLESK_WARN: Not all the data was backed up into /backup/resellers/res1/clients/client1/domains/example.com successfully.
Total space: 1968874332160; Available space: 742091337728; Mounted on: /backup. /bin/tar: /backup/tmp/chnb0gMY0Mt:
Cannot stat: Permission denied /bin/tar: Error is not recoverable: exiting now
Warning: hosting "example.com"
The backup restoration fail with the following error:
Archive error: Unable to extract files from /var/lib/psa/dumps/resellers/rockh/domains/example.com/backup_domainmail_xxxxxx.tgz to /var/qmail/mailnames/example.com: /bin/tar: /var/lib/psa/dumps/tmp/pmm-ru-ea-includes-2XG6r5: Cannot stat: Permission denied /bin/tar: Error is not recoverable: exiting now
PLESK_WARN: Archive error: Unable to extract files from /var/lib/psa/dumps/resellers/Level-Admin/domains/example.com/backup_user-data_xxxxxx.tgz to /var/www/vhosts/example.com: /bin/tar: /root/websitesbackup/pmm-ru-ea-excludes-UrzbwM: Permission denied /bin/tar: Error is not recoverable: exiting now
Migration fails with error:
PLESK_ERROR: Failed to import backup dumps to target panel's repository
Cause: Failed to import backup XML: errcode must be '0' (no errors) or '116' (backup sign error).
Output of pmmcli utility:
<?xml version="1.0" encoding="UTF-8"?>
<errmsg>Unable to import file as dump: pmm-ras failed (Error code = 1):
boost::filesystem::status: Input/output error: "/backup_dir/tmp/pmm-dudc-incApacheFiles-KH7Bjv"
$DUMP_TMP directory is inside
$DUMP causing permission conflict.
Connect to the server via SSH and re-define
$DUMPdirectory paths to point to separate directories in
# grep DUMP /etc/psa/psa.conf
Set correct directory permissions and ownership:
# chown psaadm:psaadm /backup/dump
# chmod 777 /backup/dumptemp/
# chmod 755 /backup
# chmod 755 /backup/dump
Move existing backups to the new location if
# mv /backup/backup_* /backup/dump
# mv /backup/.discovered /backup/dump
# mv /backup/clients /backup/dump
# mv /backup/domains /backup/dump
# mv /backup/resellers /backup/dump