Symptoms
-
The following error is shown while moving a domain
example.com
between two subscriptions either via GUI or CLI:PLESK_ERROR: site-copy failed: tar: ./logs/example.com/access_log.webstat: Cannot open: Permission denied
tar: ./logs/example.com/access_ssl_log.webstat: Cannot open: Permission denied -
The
/var/www/vhosts/example.com/logs/access_ssl_log.webstat
file has the following permissions:# ls -la /var/www/vhosts/example.com/logs/access_ssl_log.webstat
-rw——- 1 root root 0 May 25 07:01 /var/www/vhosts/example.com/logs/access_ssl_log.webstat
Cause
Misconfigured permissions on the /var/www/vhosts/example.com/logs/access_ssl_log.webstat
file.
This is caused by the PPPM-11765 bug, which was fixed in Obsidian 18.0.28 Update 3.
Note: The files that were already affected before the update will not be fixed, so their permissions need to be set manually.
Resolution
-
Connect to the server via SSH
-
Fix permission on all affected files with the next command:
# find /var/www/vhosts/example.com/logs/ -type f -a -not -perm 644 -exec chmod 644 {} ;