- Plesk for Linux
Unable to start migration with one of the following error messages:
PLESK_INFO: Unable to login to the source server 'source' (10.39.81.94) by SSH service: administrator login and/or password are not correct.
Set valid SSH credentials for the server and click "Prepare migration".
PLESK_INFO: SSH connection to the source server can not be used: there is unexpected output when executing commands. Clean output is required by migrator to execute commands and consume their output, and to run "rsync" tool (for file transfer) which uses SSH connection as transport and does not work if there is any unexpected output.
Migration fails with one of the following error messages:
PLESK_INFO: Error message or request description : Error: launchpad error (Error code = 2): == STDERR ==================== Cannot request remote agent status using command line /var/cache/2013100110274185/PleskX.pl: Died at AgentConfig.pm line 23. at AgentConfig.pm line 23 AgentConfig::AUTOLOAD() called at /var/cache/2013100110274185/PleskX.pl line 298 main::writeMigrationResult() called at /var/cache/2013100110274185/PleskX.pl line 304
PLESK_INFO: Cannot request remote agent status using command line /var/cache/20150318093912860/PleskX.pl: which: no ruby in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin)
Can't open perl script "/var/cache/20150318093912860/PleskX.pl": No such file or directory
PLESK_INFO: Failed to fetch basic information about resellers, clients and domains data from source servers
Cause: Failed to execute SQL query on Plesk database: failed to parse JSON returned by SQL script.
PLESK_INFO: Failed to fetch basic information about resellers, clients and domains data from source servers Cause: Command execution failed on the local server with non-zero exit code. command: rsync -l -e 'ssh -i /usr/local/psa/var/modules/panel-migrator/sessions/XXX/ssh-keys/id_rsa -p 22 -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no' /usr/local/psa/var/modules/panel-migrator/sessions/XXX/ssh_upload.1 email@example.com:/tmp/panel_migrator/version exit code: 255 stderr: Permission denied (password). rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.0]
PLESK_INFO: Attempt failed with the following error:
Command execution failed on the local server with non-zero exit code.
command: su john --shell /bin/sh -c '/usr/bin/rsync -e '"'"'ssh -i /var/www/vhosts/example.com/plesk-migrator-key -p 22 -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no'"'"' --timeout=30 --recursive --links --times --devices --specials --chmod=Fu=rw,Fgo=r,Du=rwx,Dgo=rx --exclude=/mail --exclude='"'"'/.*'"'"' --exclude=/public_html firstname.lastname@example.org:/home/example/ /var/www/vhosts/example.com/'
exit code: 255
stderr: Warning: Permanently added '[203.0.113.2]:22' (RSA) to the list of known hosts.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: unexplained error (code 255) at io.c(600) [receiver=3.0.6]
Plesk Migrator cannot log in to the source server using SSH key.
Connect to the source server via SSH.
Note: if direct SSH access to the server is not possible, contact server administrator for further assistance.
/etc/ssh/sshd_configfile in a text editor. In this example, we are using the vi editor:
# vi /etc/ssh/sshd_config
PasswordAuthenticationsettings to 'yes' and remove '#' at the beginning of each line as shown below:
CONFIG_TEXT: PermitRootLogin yes
Save the changes and close the file.
Restart the SSH service:
# service sshd restart
Note: If you doubt that the root password is correct, reset it with the command 'passwd'.
If steps above did not help, check SSH log file to troubleshoot the issue:
RPM-based systems: /var/log/secure
DEB-based systems: /var/log/secure
To migrate with a non-root user, visit:
To learn more about Plesk migration, visit: