Backup error: hexadecimal value is an invalid character

Created:

2016-11-16 13:08:55 UTC

Modified:

2017-04-24 11:56:21 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Backup error: hexadecimal value is an invalid character

Applicable to:

  • Plesk 12.5 for Windows

Symptoms

Plesk backup failed with the error below.

Internal error: XML error at line 7 column 29. Error message: Invalid character
Message XML error at line 7 column 29. Error message: Invalid character
File StreamXMLReader.php
Line 115
Type Exception

backup.log for one of the failed backup in %plesk_dir%\PMM\logs\backup- \ contains the following:

    Line 2668: [2016-09-08 18:49:53.169|21804] Error: Cannot write child xml info (type 'Domain') ( psadumpagent.InformationalException: Cannot write child xml info (type 'Domain') ---> System.ArgumentException: '�', hexadecimal value 0x10, is an invalid character.    at System.Xml.XmlUtf8RawTextWriter.InvalidXmlChar(Int32 ch, Byte* pDst, Boolean entitize)    at System.Xml.XmlUtf8RawTextWriter.WriteElementTextBlock(Char* pSrc, Char* pSrcEnd)    at System.Xml.XmlUtf8RawTextWriter.WriteString(String text)    at System.Xml.XmlUtf8RawTextWriterIndent.WriteString(String text)    at System.Xml.XmlWellFormedWriter.WriteString(String text)    at psadumpschema.StructureSerializer.writeSimpleObject(XmlWriter xmlWriter, Object Object, Boolean writeReferencesElement)    at psadumpschema.StructureSerializer.writeElementValue(XmlWriter xmlWriter, Object fieldValue, String name, Boolean needWriteReference)    at psadumpschema.StructureSerializer.writeElement(XmlWriter xmlWriter, Object objectToSerialize, FieldInfoEx fiel...
Line 2863: No output on STDERR were performed by the utility

Cause

psa database contains non-printable ASCII characters.

Resolution

  1. Dump Plesk psa database into file

    plesk db sump > psa_dump.sql
  2. Open the dump with any editor allowed search HEX pattern. For example, notepad++

  3. Search for the regexp hexadecimal value from the error report. In our case, it is 0x10 , because the error message hexadecimal value 0x10, is an invalid character.

  4. Remove the character and restore database dump

    plesk db <  psa_dump.sql
Have more questions? Submit a request
Please sign in to leave a comment.