Unable to start migration from CPanel: Failed to perform action: Fetch data from source cPanel Error creating migration dump

Created:

2016-12-18 06:40:22 UTC

Modified:

2017-08-08 13:21:56 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to start migration from CPanel: Failed to perform action: Fetch data from source cPanel Error creating migration dump

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Unable to migrate from cPanel to Plesk:

[ERROR] Failed to perform action: Fetch data from source cPanel
Cause: Error creating migration dump: Command execution failed on the source server 'cpanel' (10.10.10.10) with non-zero exit code.
command: cd /tmp/panel_migrator/pmm_agent; /usr/bin/perl cPanel9.pl --dump-all --configuration-only --server -v 5 > dump.log 2>&1
exit code: 2

The following error appears in /usr/local/psa/var/modules/panel-migrator/sessions/migration-session/pmm-agent.*/configuration-dump.log :

Can't use string ("0") as a HASH ref while "strict refs" in use at Dumper.pm line 1142.
at Dumper.pm line 1142
Dumper::getMysqlDataDir(0) called at Dumper.pm line 1093
Dumper::addMySQLDatabases('XmlNode=HASH(0x330a1b8)', '*') called at Dumper.pm line 1037
Dumper::addDatabases('XmlNode=HASH(0x330a1b8)', '*') called at Dumper.pm line 968
Dumper::makeDomainNode('example.com', '*', undef) called at Dumper.pm line 711
Dumper::makeAccountNode('*', undef, undef) called at Transformer.pm line 261
Transformer::getClientNode4Domain('example.com') called at Agent.pm line 109
Agent::getDomain('example.com', 'recursive', undef, undef, 'HASH(0x22886e0)') called at DumpComposer.pm line 395
DumpComposer::makeDomainNode('example.com', 1, undef, undef, 1) called at DumpComposer.pm line 227
DumpComposer::makeDump('/tmp/panel_migrator/pmm_agent', undef, undef, undef, 1, undef, undef, 1) called at cPanel9.pl line 235
main::main() called at cPanel9.pl line 258

The password in /root/.my.cnf file on the source server is in quotes:

# less /root/.my.cnf
[client]
user=root
password='1234567890'

Cause

This is Plesk Migrator internal issue with ID PMT-3290 , which is planned to be fixed in future product updates.

Workaround

Modify the password in /root/.my.cnf file on CPanel side so that the password is stored without quotes:

# less /root/.my.cnf
[client]
user=root
password=1234567890

Additional information

If the password does not contain quotes in .my.cnf, check the following article:

#213919065 Unable to migrate from cPanel to Plesk 12.5: Failed to perform action: Fetch data from source cPanel

Have more questions? Submit a request
Please sign in to leave a comment.