Cannot restore a backup: "Invalid character Process output"

Refers to:

  • Plesk 11.5 for Linux

Created:

2016-11-16 12:54:52 UTC

Modified:

2016-12-21 19:31:22 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot restore a backup: "Invalid character Process output"

Symptoms

I'm trying to restore domain %domain_name.tld% from backup %backup% using the following command:

~# /usr/local/psa/bin/pleskrestore --restore /var/lib/psa/dumps/%backup%_info_1309021818.xml -verbose -level domains -filter list:%domain_name.tld%

Get the following error:

Failed to parse response. Reason: XML error at line 6 column 91. Error message: Invalid character Process output: <?xml version="1.0" encoding="UTF-8"?>
<response>
<errcode>1000</errcode>
<errmsg>PHP Warning: XMLReader::readString(): /usr/local/psa/PMM/rsessions/20130918021653232/dump.xml:1788: parser error : PCDATA invalid Char value 23; File: /usr/local/psa/admin/plib/backup/Conflicts/Detector/SpecificationReader.php, Line: 492
PHP Warning: XMLReader::readString():&lt;password type="plain"&gt;rt!¶iE\\9?c&amp;gt;¬?M&lt;/password&gt;; File:/usr/local/psa/admin/plib/backup/Conflicts/Detector/SpecificationReader.php, Line: 492
PHP Warning: XMLReader::readString():^; File: /usr/local/psa/admin/plib/backup/Conflicts/Detector/SpecificationReader.php, Line: 492
PHP Warning: XMLReader::readString(): Unimplemented block at xmlreader.c:1780; File: /usr/local/psa/admin/plib/backup/Conflicts/Detector/SpecificationReader.php, Line: 492
PHP Warning: XMLReader::read(): An Error Occured while reading; File: /usr/local/psa/admin/plib/backup/Conflict

Cause

non-ASCII symbols in the mailboxes password

~# grep plain /usr/local/psa/PMM/rsessions/20130918021653232/dump.xml
<password type="plain">rt!▒▒▒\\9▒c&gt;▒▒M</password>
<password type="plain">`▒▒\\k؊▒▒K</password>
<password type="plain">E▒e▒▒▒▒▒B▒j&lt;z</password>
<password type="plain">▒▒9▒A▒K▒Y▒▒v</password>
<password type="plain">`▒▒\\k؊▒▒K</password>
<password type="plain">E▒e▒▒▒▒▒B▒j&lt;z</password>
<password type="plain">▒▒9▒A▒K▒Y▒▒v</password>

Resolution

Reset mailbox passwords for the required accounts - get the accounts list in the backup.

Additional informaiton

Use the following command to get mail address and password for all accounts:

/usr/local/psa/admin/sbin/mail_auth_view
Have more questions? Submit a request
Please sign in to leave a comment.