• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

migration plesk11 Unable to create dump

Ilja_K

New Pleskian
hi there,
i have a problem with migration manager Plesk11. I need to migrate whole server from Plesk9 to current Plesk11 (debian 5=> debian 6.0.6), but each retry to migrate even 1 account always ended with error which you can see bellow. I've already read this thread, but didn't found the solve.
What i've already done:
1. deleted migration manager on the sourse server.
2. flushed PMM cache on the destination and source servers
3. removed psa-migration package and reinstalled it again from repos like dpkg -i

Seem the issue is hidden in the source server. Coz abc.example account even didn't exists on the source server. No account, no database with such name, no domain. Also I've checked psa database - all clear.

I guess there is somewhere old cache or xml or smth else.
If you can, please provide me with paths/files where plesk holds information about accounts/databases.

Thanks in advance, even if you've read till here :)

<?xml version="1.0" encoding="UTF-8"?>
<execution-result status="error" log-location="/opt/psa/PMM/rsessions/20130221200935527/migration.result">
<object name="abc.example" type="client">
<object name="abc.example" type="domain">
<message id="445ba867-6e1b-4506-859b-7ebfd8b6fabd" severity="error" code="fatal">
<description>Unable to create dump</description>
</message>/usr/local/psa/PMM/rsessions/20130221200935527/psadump.log
</object>
</object>
</execution-result>



-------------------------
found something interesting in the
/usr/local/psa/PMM/rsessions/20130221200935527/psadump.log

[31784]: 17:09:35 INFO ------------------------------------------------------------
[31784]: 17:09:35 INFO Migration status reporting initialized.
[31784]: 17:09:35 INFO Status file: /opt/psa/PMM/rsessions/20130221200935527/dump-status.xml
[31784]: 17:09:35 INFO ------------------------------------------------------------
[31784]: 17:09:36 ERROR 445ba867-6e1b-4506-859b-7ebfd8b6fabd Unable to create dump:
at /opt/psa/PMM/agents/shared/Logging.pm line 84
Logging::error('Unable to create dump', 'fatal') called at /opt/psa/admin/bin/plesk_agent_manager line 650
main::__ANON__('Error::Simple=HASH(0x29f0eb0)', 'SCALAR(0x2331670)') called at /opt/psa/PMM/agents/shared/Error.pm line 329
eval {...} called at /opt/psa/PMM/agents/shared/Error.pm line 320
Error::subs::run_clauses('HASH(0x29c1178)', '\'undef\' value passed to XmlNode::setAttribute for \'unit\' ...', undef, 'ARRAY(0x29c13b8)') called at /opt/psa/PMM/agents/shared/Error.pm line 416
Error::subs::try('CODE(0x29d5af0)', 'HASH(0x29c1178)') called at /opt/psa/admin/bin/plesk_agent_manager line 652
main::perform('verbose', 0, 'split-size', undef, 'session-path', '/opt/psa/PMM/rsessions/20130221200935527', 'all', 1, 'migration-mode', ...) called at /opt/psa/admin/bin/plesk_agent_manager line 1279
main::__ANON__() called at /opt/psa/PMM/agents/shared/Error.pm line 398
eval {...} called at /opt/psa/PMM/agents/shared/Error.pm line 397
Error::subs::try('CODE(0x274f098)', 'HASH(0x274f170)') called at /opt/psa/admin/bin/plesk_agent_manager line 1288
main::main() called at /opt/psa/admin/bin/plesk_agent_manager line 1290
 
Last edited:
hi IgorG,
i knew that you ask me about free migration ;) No, I haven't and my client doesn't want to do that way.

What about error log, can you say some words?
Thanks.
 
Sorry but I see nothing useful in this log. Need more details for investigation.
 
fine, here is the results. Should be interesting for you

/usr/local/psa/PMM/msessions/20130222132741301 # cat status_mixed
<?xml version="1.0" encoding="UTF-8"?>
<mixed status="error" log-location="/opt/psa/PMM/msessions/20130222132741301/mixed-result.xml">
<backup>
<finished status="success" log-location="/opt/psa/PMM/var/20130222132741301/migration.result">

</finished>
</backup>
<transfer>
<finished status="success" log-location="/opt/psa/PMM/msessions/20130222132741301/transfer.result">

</finished>
</transfer>
<restore status="error" log-location="">
<deploy task-id="">
<finished status="error" log-location="/opt/psa/PMM/rsessions/20130222133456497/migration.result">

</finished>
</deploy>
</restore>
</mixed>


==========================================


/usr/local/psa/PMM/msessions/20130222132741301 # cat restore_response
<?xml version="1.0" encoding="UTF-8"?>
<response>
<errcode>1000</errcode>
<errmsg>PHP Warning: XMLReader::eek:pen(): Unable to open source data; File: /opt/psa/admin/plib/backup/Conflicts/Detector/SpecificationReader.php, Line: 211

PHP Warning: XMLReader::read(): Load Data before trying to read; File: /opt/psa/admin/plib/backup/Conflicts/Detector/SpecificationReader.php, Line: 213

PHP Fatal error: Call to a member function getGuid() on a non-object in /opt/psa/admin/plib/backup/Conflicts/Detector/ConflictDetector.php on line 96
</errmsg>
<data>
<task-id>1269</task-id>
</data>
</response>

==========================================

/usr/local/psa/PMM/msessions/20130222132741301 # cat migration.log
[13:46:54|INFO: 3115:p.log] Launchpad started : /opt/psa/admin/bin/launchpad --get-dumping-status --host=98.98.98.98 --port=22 --login=root --session-path=/opt/psa/PMM/msessions/20130222132741301 --agent-name=PleskX --agent-dir=/var/cache/20130222132741301
[13:46:54|INFO: 3115:p.log] OptParsingError[9cf7096e-657a-4a6e-87be-d1b3baa4fb4f^@]: Unable to parse command line: password is required unless --help or -h requested
[./launchpad.cpp:145]
void plesk::req_action_argument_missed(const char*)
[13:46:54|INFO: 3115:p.log] Launchpad finished. Exit code: 1
 
ok, I have another one debian 6.0.6 Plesk 11 server3.
I've migrated 1 account from source server on it successfully.

Surprised, i've made mysql psa dump and rsync /opt/psa directory from the plesk server3 to the original destination server (from first post). I've tried to migrate one more time and it again FAILED!!!!!!!!

So, dear Paralles, the issue is not in the /opt/psa, please assist.
 
Last edited:
To get more verbose errors, run plesk_agent_manager on destination server (not on source, because error occurs when PMM runs backup of Plesk on destination server to use resulting data in further conflict resolution step) with verbose flags:

perl /usr/local/psa/admin/bin/plesk_agent_manager server -c --migration-mode --session-path=/opt/psa/PMM/rsessions/20130221200935527 -vvvv

The command will output error messages, if any. However, verbose output that you're after is in psadump.log in directory specified in session-path (sidenote: this directory should exist before you run the command).
 
Hello ib1984,

thank you very much for reply,

/usr/local/psa/PMM/rsessions/20130222161216101 # perl /usr/local/psa/admin/bin/plesk_agent_manager server -c --migration-mode --session-path=/usr/local/psa/PMM/rsessions/20130222161216101 -vvv
1+0 records in
1+0 records out
31457280 bytes (31 MB) copied, 0.0587715 s, 535 MB/s
Unable to create dump: 'undef' value passed to XmlNode::setAttribute for 'unit' at /opt/psa/PMM/agents/shared/XmlNode.pm line 103.
at /opt/psa/PMM/agents/shared/XmlNode.pm line 103
XmlNode::setAttribute('XmlNode=HASH(0x20abd78)', 'unit', undef) called at /opt/psa/PMM/agents/PleskX/Packer.pm line 4980
Packer::makeDnsZoneParam('Packer=HASH(0x1d67090)', 'ttl', 300, 300) called at /opt/psa/PMM/agents/PleskX/Packer.pm line 5010
Packer::makeDnsZone('Packer=HASH(0x1d67090)', 'XmlNode=HASH(0x20040e8)', 'HASH(0x1ffabe8)', 'ARRAY(0x1ffb068)') called at /opt/psa/PMM/agents/PleskX/Packer.pm line 2619
Packer::setDomainDnsZone('Packer=HASH(0x1d67090)', 237, 'HASH(0x1ffabe8)', 'ARRAY(0x1ffb068)') called at /opt/psa/PMM/agents/PleskX/PleskX.pm line 3558
PleskX::makeDnsZone('PleskX=HASH(0x1d66d78)', 315, 237, 'domain', 'ARRAY(0x16f8a90)') called at /opt/psa/PMM/agents/PleskX/PleskX.pm line 3458
PleskX::makeDomainDnsZone('PleskX=HASH(0x1d66d78)', 'HASH(0x16d7e40)', 'ARRAY(0x16f8a90)') called at /opt/psa/PMM/agents/PleskX/PleskX.pm line 3075
PleskX::makeDomainNode('PleskX=HASH(0x1d66d78)', 'a-one.by', 0) called at /opt/psa/PMM/agents/PleskX/PleskX.pm line 1858
PleskX::makeClientNode('PleskX=HASH(0x1d66d78)', 'a-one.by', 'ARRAY(0x1fd12e8)', 'ARRAY(0x1fd1c18)', 0) called at /opt/psa/PMM/agents/PleskX/PleskX.pm line 1321
PleskX::createFullDump('PleskX=HASH(0x1d66d78)') called at /opt/psa/PMM/agents/PleskX/PleskX.pm line 592
PleskX::dump('PleskX=HASH(0x1d66d78)') called at /usr/local/psa/admin/bin/plesk_agent_manager line 638
main::__ANON__() called at /opt/psa/PMM/agents/shared/Error.pm line 405
eval {...} called at /opt/psa/PMM/agents/shared/Error.pm line 397
Error::subs::try('CODE(0x1fe5e30)', 'HASH(0x1fe6130)') called at /usr/local/psa/admin/bin/plesk_agent_manager line 652
main::perform('verbose', 3, 'split-size', undef, 'session-path', '/usr/local/psa/PMM/rsessions/20130222161216101', 'all', 1, 'migration-mode', ...) called at /usr/local/psa/admin/bin/plesk_agent_manager line 1279
main::__ANON__() called at /opt/psa/PMM/agents/shared/Error.pm line 398
eval {...} called at /opt/psa/PMM/agents/shared/Error.pm line 397
Error::subs::try('CODE(0x1d58e08)', 'HASH(0x1d58ee0)') called at /usr/local/psa/admin/bin/plesk_agent_manager line 1288
main::main() called at /usr/local/psa/admin/bin/plesk_agent_manager line 1290.



/usr/local/psa/PMM/rsessions/20130222161216101 # cat psadump.log
[4446]: 20:09:20 DEBUG Unable to create dump: 'undef' value passed to XmlNode::setAttribute for 'unit' at /opt/psa/PMM/agents/shared/XmlNode.pm line 103.
at /opt/psa/PMM/agents/shared/XmlNode.pm line 103
XmlNode::setAttribute('XmlNode=HASH(0x20abd78)', 'unit', undef) called at /opt/psa/PMM/agents/PleskX/Packer.pm line 4980
Packer::makeDnsZoneParam('Packer=HASH(0x1d67090)', 'ttl', 300, 300) called at /opt/psa/PMM/agents/PleskX/Packer.pm line 5010
Packer::makeDnsZone('Packer=HASH(0x1d67090)', 'XmlNode=HASH(0x20040e8)', 'HASH(0x1ffabe8)', 'ARRAY(0x1ffb068)') called at /opt/psa/PMM/agents/PleskX/Packer.pm line 2619
Packer::setDomainDnsZone('Packer=HASH(0x1d67090)', 237, 'HASH(0x1ffabe8)', 'ARRAY(0x1ffb068)') called at /opt/psa/PMM/agents/PleskX/PleskX.pm line 3558
PleskX::makeDnsZone('PleskX=HASH(0x1d66d78)', 315, 237, 'domain', 'ARRAY(0x16f8a90)') called at /opt/psa/PMM/agents/PleskX/PleskX.pm line 3458
PleskX::makeDomainDnsZone('PleskX=HASH(0x1d66d78)', 'HASH(0x16d7e40)', 'ARRAY(0x16f8a90)') called at /opt/psa/PMM/agents/PleskX/PleskX.pm line 3075
PleskX::makeDomainNode('PleskX=HASH(0x1d66d78)', 'a-one.by', 0) called at /opt/psa/PMM/agents/PleskX/PleskX.pm line 1858
PleskX::makeClientNode('PleskX=HASH(0x1d66d78)', 'a-one.by', 'ARRAY(0x1fd12e8)', 'ARRAY(0x1fd1c18)', 0) called at /opt/psa/PMM/agents/PleskX/PleskX.pm line 1321
PleskX::createFullDump('PleskX=HASH(0x1d66d78)') called at /opt/psa/PMM/agents/PleskX/PleskX.pm line 592
PleskX::dump('PleskX=HASH(0x1d66d78)') called at /usr/local/psa/admin/bin/plesk_agent_manager line 638
main::__ANON__() called at /opt/psa/PMM/agents/shared/Error.pm line 405
eval {...} called at /opt/psa/PMM/agents/shared/Error.pm line 397
Error::subs::try('CODE(0x1fe5e30)', 'HASH(0x1fe6130)') called at /usr/local/psa/admin/bin/plesk_agent_manager line 652
main::perform('verbose', 3, 'split-size', undef, 'session-path', '/usr/local/psa/PMM/rsessions/20130222161216101', 'all', 1, 'migration-mode', ...) called at /usr/local/psa/admin/bin/plesk_agent_manager line 1279
main::__ANON__() called at /opt/psa/PMM/agents/shared/Error.pm line 398
eval {...} called at /opt/psa/PMM/agents/shared/Error.pm line 397
Error::subs::try('CODE(0x1d58e08)', 'HASH(0x1d58ee0)') called at /usr/local/psa/admin/bin/plesk_agent_manager line 1288
main::main() called at /usr/local/psa/admin/bin/plesk_agent_manager line 1290.

[4446]: 20:09:20 ERROR a0c83fd0-e71b-4b59-88a9-df9f363e1a7e Unable to create dump:
at /opt/psa/PMM/agents/shared/Logging.pm line 84
Logging::error('Unable to create dump', 'fatal') called at /usr/local/psa/admin/bin/plesk_agent_manager line 650
main::__ANON__('Error::Simple=HASH(0x1ff4918)', 'SCALAR(0x1941a90)') called at /opt/psa/PMM/agents/shared/Error.pm line 329
eval {...} called at /opt/psa/PMM/agents/shared/Error.pm line 320
Error::subs::run_clauses('HASH(0x1fe6130)', '\'undef\' value passed to XmlNode::setAttribute for \'unit\' ...', undef, 'ARRAY(0x1fe6370)') called at /opt/psa/PMM/agents/shared/Error.pm line 416
Error::subs::try('CODE(0x1fe5e30)', 'HASH(0x1fe6130)') called at /usr/local/psa/admin/bin/plesk_agent_manager line 652
main::perform('verbose', 3, 'split-size', undef, 'session-path', '/usr/local/psa/PMM/rsessions/20130222161216101', 'all', 1, 'migration-mode', ...) called at /usr/local/psa/admin/bin/plesk_agent_manager line 1279
main::__ANON__() called at /opt/psa/PMM/agents/shared/Error.pm line 398
eval {...} called at /opt/psa/PMM/agents/shared/Error.pm line 397
Error::subs::try('CODE(0x1d58e08)', 'HASH(0x1d58ee0)') called at /usr/local/psa/admin/bin/plesk_agent_manager line 1288
main::main() called at /usr/local/psa/admin/bin/plesk_agent_manager line 1290

[4446]: 20:09:20 ERROR a0c83fd0-e71b-4b59-88a9-df9f363e1a7e Unable to create dump
[4446]: 20:09:20 INFO The dump have been validated successfully
 
Seems like database inconsistency on destination server -- ttl_unit column in dns_zone table must be either NULL or empty. Easy to check with:

mysql -uadmin -p$(cat /etc/psa/.psa.shadow) -Dpsa -e"SELECT name, ttl, ttl_unit FROM dns_zone"

If empty, you can go to subscription in the panel > 'Websites & Domains' tab > 'DNS Settings' > 'SOA Record', choose 'seconds' unit for TTL and press 'OK'.

No idea why it would be empty though... If issue persists and other migrated domains are affected by it too, it may be better to submit support ticket.
 
Back
Top