Articles in this section

Migration from cPanel to Plesk using Plesk Migrator fails: That is a critical error, migration was stopped

kb: bug Plesk for Linux kb: technical ext: migrator

Applicable to:

  • Plesk for Linux

Symptoms

  • Migration from cPanel to Plesk using Plesk Migrator fails with an error 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 log file /usr/local/psa/var/modules/panel-migrator/sessions/<session_id>/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 172

    CONFIG_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

This is a Plesk Migrator bug with ID PMT-5599, which has already been fixed in Plesk Migrator version 2.29.0.

Another connected bug with ID PMT-5603 was found in the attempt to fix the first one that was reported.

Resolution

Update Plesk Migrator extension to the latest version at Plesk > Extensions > Updates.

 

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:

For a RHEL-based Linux 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

For a Debian-based Linux server
/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

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.