Symptoms
Migration project fails with the following error message in the UI:
Failed to copy web files for subscription '%subscription_name%': Failed to copy content from 'Odin Automation service node '%WSH node%' (#10, 10.10.0.10)' to 'Odin Automation service node '%WHP node%' (#11, 10.10.0.11)':
Where `%WSH node%` - source Windows Shared Hosting node, `%WHP node%` - target Windows WebHosting Plesk node.
Migrator log `/opt/oa-migrator/logs/debug.log` contains the same error message and some additional details as below:
[2020-04-25 20:34:07,132] 140648465364800 [DBG] Process following HCL on host #11: <?xml version="1.0" encoding="utf -8"?> <!DOCTYPE HCL PUBLIC 'HCL' 'HCL 1.0'> <HCL> <DECLARE> <VAR name="exit_code" transient="no" value=""/> <VAR name="stderr" transient="no" value=""/> <VAR name="stdout" transient="no" value=""/> </DECLARE> <PERFORM> <EXEC command="cmd /c "set RSYNC_PASSWORD=8N5y**kHAu&&"C:\oam-session\rsync\bin\panel-migrator-rsync.exe" --no-perms -t -r rsync://admin@"10.10.0.10":10156/"vhosts/CustomerData/webspaces/webspace_00108243/wwwroot/" "/cygdrive/d/Inetpub/vhosts/w111.whpleskdomain.tld/whp-d1013640-4408.domain.tld/"" --exclude .user.ini --exclude /" errvar="stderr" outvar="stdout" retvar="exit_code"/> </PERFORM> </HCL> [2020-04-25 20:34:07,133] 140648465364800 [DBG] Call local command: /bin/sh -c '/usr/local/pem/bin/pleskd_ctl -f /usr/local/pem/etc/pleskd.props processHCL /opt/oa-migrator/sessions/f79c185e-9a58-4d30-bcbd-8198d5d70e47/tmpiTgRy8 554' [2020-04-25 20:34:07,825] 140648465364800 [DBG] Command stdout: exit_code^@23^@stderr^@rsync: send_files failed to open "/CustomerData/webspaces/webspace_00108243/wwwroot/some_file.asp" (in vhosts): Permission denied (13) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1637) [generator=3.1.1] ^@stdout^@^@ ... [2020-04-25 20:34:11,344] 140648465364800 [DBG] Call local command: /bin/sh -c '/usr/local/pem/bin/pleskd_ctl -f /usr/local/pem/etc/pleskd.props processHCL /opt/oa-migrator/sessions/f79c185e-9a58-4d30-bcbd-8198d5d70e47/tmpsvoywO 554' [2020-04-25 20:34:12,352] 140648465364800 [DBG] Command stdout: exit_code^@23^@stderr^@rsync: send_files failed to open "/CustomerData/webspaces/webspace_00108243/wwwroot/some_file.asp" (in vhosts): Permission denied (13) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1637) [generator=3.1.1] ^@stdout^@^@ ... Exception: Failed to copy web files for subscription '%subscription_name%': Failed to copy content from 'Odin Automation service node '%WSH node%' (#10, 10.10.0.10)' to 'Odin Automation service node '%WHP node%' (#11, 10.10.0.11)': [2020-04-25 20:34:12,355] 140648465364800 [DBG] ...[5] run *** INTERRUPTED BY EXCEPTION *** [27.828] second(s)
Cause
Webspace content cannot be migrated with `rsync` tool due to permission issues on the source host.
Resolution
1. Connect to the source Windows Shared Hosting node. Find the file `some_file.asp`, located in the migrated webspace folder `/CustomerData/webspaces/webspace_00108243/wwwroot/`, based on the information from the logs;
2. Check file permissions: admin user specified in the `rsync` command parameters should have enough privileges to access this file. Try to copy this file between folders or backup and modify it. It could be corrupted;
3. Contact your System Administrator to restore the file or remove it (if it is allowed by the webspace owner).