Symptoms
-
Migration of a subscription fails with the following error:
Failed to copy web files for subscription 'example.com'
Migration tools tried to perform operation in 3 attempts: Rsync failed to copy files from the source server 'source' (203.0.113.2) to target Plesk server: Command execution failed on the local server with non-zero exit code.
command: /usr/bin/rsync -e 'ssh -i /usr/local/psa/var/modules/panel-migrator/sessions/20190131171501/target-server/ssh-keys/id_rsa.203.0.113.2 -p 22 -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no' --timeout=30 --recursive --links --times --devices --specials --owner --group --perms --exclude=/logs --exclude=/conf --exclude=/statistics --exclude=/bin --exclude=/dev --exclude=/lib --exclude=/lib64 --exclude=/usr --exclude=/libexec --exclude=/etc --exclude=/tmp --exclude=/var [email protected]:/var/www/vhosts/example.com/ /var/www/vhosts/example.com/
exit code: 23
stdout: cannot delete non-empty directory: httpdocs/current
stderr: could not make way for new symlink: httpdocs/current
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1650) [generator=3.1.2]Â -
The document root of subscription is set on a symlink.
Cause
The issue is caused by a bug in Plesk Migrator with IDÂ #PMT-3404. It will be fixed in futures updates.
Resolution
As a workaround:
-
Log into Plesk on the destination server;
-
Go to Subscriptions > example.com > File manager;
-
Remove
httpdocs/current
folder, it can be taken from the error message; -
Go to Tools & Settings > Migration & Transfer Manager > source_server_IP > for affected subscription click [Re-sync] ;
- Select Â