Applicable to:
- Plesk for Linux
Symptoms
- Plesk Migrator migration from cPanel to Plesk server fails with an error that is similar to the following:
PLESK_ERROR: Failed to perform action: Fetch data from source cPanel
Cause: Error creating migration dump: Command execution failed on the source server 'cpanel' (203.0.113.2) with non-zero exit code.
command: cd /root/plesk_migrator/plesk_migrator-hqjcddtzrl9uc8rne9j8baq4tsk4tl39/pmm_agent; /usr/bin/perl createDump.pl --dump-domains=example.com --dump-clients=user --configuration-only --server -v 5 > dump.log 2>&1
exit code: 2
stdout:
stderr: stdin: is not a tty
That is a critical error, migration was stopped.PLESK_ERROR: Failed to perform action: Fetch data from source cPanel
Cause: Error creating migration dump: Command execution failed on the source server 'cpanel' (203.0.113.3) with non-zero exit code.
command: cd /root/plesk_migrator/plesk_migrator-xmigy6fud6m2zy4rtqxvg2ftety51kkk/pmm_agent; /usr/bin/perl createDump.pl --dump-domains=example.com --configuration-only --server -v 5 > dump.log 2>&1
exit code: 2
stdout:
stderr:
That is a critical error, migration was stopped. - An error that is similar to the following can be found in a log file such as
/usr/local/psa/var/modules/panel-migrator/sessions/20250602123245/pmm-agent.2025.XX.XX.X.X.X/configuration-dump.log
:CONFIG_TEXT: [31655]: 2025-06-02 13:25:10 DEBUG FileFinder: mariadb resolved to
'undef' value passed to XmlNode::setAttribute for 'version' at XmlNode.pm line 110.
at XmlNode.pm line 110.
XmlNode::setAttribute('XmlNode=HASH(0x359d560)', 'version', undef) called at Dumper.pm line 1190
Dumper::addMySQLDatabases('XmlNode=HASH(0x23975e0)', 'example.com') called at Dumper.pm line 1124
Dumper::addDatabases('XmlNode=HASH(0x23975e0)', 'example.') called at Dumper.pm line 997
Dumper::makeDomainNode('example.com', 'example', undef) called at Dumper.pm line 743
Dumper::makeAccountNode('example', undef, undef, undef) called at Transformer.pm line 488
Transformer::getClientNode4Domain('example.com') called at Agent.pm line 117
Agent::getDomain('example.com', 'recursive', undef, undef, 'HASH(0x3081f80)') called at DumpComposer.pm line 395
DumpComposer::makeDomainNode('example.com', 1, undef, undef, undef) called at Dumper.pm line 2453
Dumper::getDomainsNode('example', 'ARRAY(0x3124ec0)', 1, undef, undef, undef) called at Dumper.pm line 2402
Dumper::getClientsNode('server', 'ARRAY(0x3124f08)', 'ARRAY(0x3124ec0)', 1, undef, undef, undef) called at Dumper.pm line 2335
Dumper::getResellersNode('ARRAY(0x3124f20)', 'ARRAY(0x3124f08)', 'ARRAY(0x3124ec0)', 1, undef, undef, undef) called at Dumper.pm line 2276
Dumper::makeDump('/root/plesk_migrator/plesk_migrator-we9f5sk08txwjs1masvraanti...', 'ARRAY(0x3124f20)', 'ARRAY(0x3124f08)', 'ARRAY(0x3124ec0)', 1, undef, undef, undef) called at createDump.pl line 132
main::main() called at createDump.pl line 172CONFIG_TEXT: DEBUG Cannot connect to postgresql
[2436743]: 2025-06-02 10:34:52 DEBUG Connection to postgresql is not valid
Can't use string ("0") as a HASH ref while "strict refs" in use at Dumper.pm line 1229.
at Dumper.pm line 1229.
Dumper::getMysqlDataDir(0) called at Dumper.pm line 1180
Dumper::addMySQLDatabases('XmlNode=HASH(0x273e2d0)', 'user') called at Dumper.pm line 1124
Dumper::addDatabases('XmlNode=HASH(0x273e2d0)', 'user') called at Dumper.pm line 997
Dumper::makeDomainNode('example.com', 'user', undef) called at Dumper.pm line 743
Dumper::makeAccountNode('user', undef, undef, undef) called at Transformer.pm line 488
Transformer::getClientNode4Domain('example.com') called at Agent.pm line 117
Agent::getDomain('example.com', 'recursive', undef, undef, 'HASH(0x1d72ea0)') called at DumpComposer.pm line 395
DumpComposer::makeDomainNode('example.com', 1, undef, undef, undef) called at Dumper.pm line 2453
Dumper::getDomainsNode('user', 'ARRAY(0x1e14780)', 1, undef, undef, undef) called at Dumper.pm line 2402
Dumper::getClientsNode(undef, 'ARRAY(0x1e147c8)', 'ARRAY(0x1e14780)', 1, undef, undef, undef) called at Dumper.pm line 2280
Dumper::makeDump('/root/plesk_migrator/plesk_migrator-wht6d5617hx3pkdkg9yoy0ejl...', 'ARRAY(0x1e145b8)', 'ARRAY(0x1e147c8)', 'ARRAY(0x1e14780)', 1, undef, undef, undef) called at createDump.pl line 132
main::main() called at createDump.pl line 172
Cause
The issue is caused by a known Plesk Migrator bug with ID #PMT-5599, which will be resolved in future versions of Plesk and Plesk Migrator extension.
Another connected bug with ID #PMT-5603 was found in the attempt to fix the first one that was reported.
Progress related to the bug can be tracked in the Change Log for Plesk Obsidian
Note: please click the Follow button near the article headline to stay informed - you will receive an update via email when the bug is fixed
Resolution
Until the bug is resolved permanently, you may execute the following workaround:
1. Log into your destination Plesk server
2. Create backups of the following files that are currently located on the server:
/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/legacy/extras/plesk_17_0_pmm_shared/CommonConfig.pm
/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/legacy/extras/plesk_12_5_pmm_shared/CommonConfig.pm
/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/legacy/extras/plesk_11_5_pmm_shared/CommonConfig.pm
/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/connections/source_server.py
3. Download this zip file to your destination Plesk server
4. Extract its contents on your destination Plesk server and replace the files on the paths above with the corresponding files that are present in the zip archive
5. Finish the currently ongoing migration via the Plesk Migrator by pressing on Finish migration
6. Start the migration from the same cPanel server again
/opt/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/legacy/extras/plesk_17_0_pmm_shared/CommonConfig.pm
/opt/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/legacy/extras/plesk_12_5_pmm_shared/CommonConfig.pm
/opt/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/legacy/extras/plesk_11_5_pmm_shared/CommonConfig.pm
/opt/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/connections/source_server.py
3. Download this zip file to your destination Plesk server
4. Extract its contents on your destination Plesk server and replace the files on the paths above with the corresponding files that are present in the zip archive
5. Finish the currently ongoing migration via the Plesk Migrator by pressing on Finish migration
6. Start the migration from the same cPanel server again
Comments
0 comments
Please sign in to leave a comment.