Symptoms
Migration from cPanel failed:
Command execution failed on the local server with non-zero exit code.
command: su example --shell /bin/sh -c '/usr/bin/rsync -e '"'"'ssh -i /var/www/vhosts/example.com/plesk-migrator-key -p 42 -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no'"'"' --recursive --links --times --devices --specials --chmod=Fu=rw,Fgo=r,Du=rwx
,Dgo=rx --exclude=/mail --exclude='"'"'/.*'"'"' --exclude=/public_html [email protected]:/data/home/example/ /var/www/vhosts/example.com/'
exit code: 23
stdout:
stderr: Warning: Permanently added '[203.0.113.2]:22' (RSA) to the list of known hosts.
rsync: opendir " /data/home/example/test " failed: Permission denied (13)
rsync: opendir " /data/home/example/test2 " failed: Permission denied (13)
Cause
Incorrect permissions are set for migrating directories on the source server.
Resolution
-
Access the source server via SSH.
-
Set the correct permissions on directories mentioned in the error message:
# chmod 750 /data/home/example/test/
# chmod 750 /data/home/example/test2/Note: some other directories may require 755 permissions such as
/usr/local/apache
.