Plesk

Migration from cPanel to Plesk fails: rsync: opendir failed: Permission denied (13)

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 plesk-migrator-5g0zrmnft2yv0euf@203.0.113.2:/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

  1. Access the source server via SSH.

  2. 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.

Exit mobile version