Unable to migrate/restore subscription: "Entity not defined" or "Cannot encrypt dump file"

Created:

2016-11-16 12:41:30 UTC

Modified:

2017-08-16 17:28:02 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to migrate/restore subscription: "Entity not defined" or "Cannot encrypt dump file"

Applicable to:

  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux

Symptoms

The following error is in the Plesk GUI during migration:

Error: server "server"

Cannot encrypt dump file (ErrorCode: 1, STDOUT:PHP Warning: cuBackupEncrypt::_decryptXmlNodeValue(): unterminated entity reference %/Sva
Line: 211
File: /usr/local/psa/admin/plib/api-common/cuBackupEncrypt.php
...
[Error:]. This is not fatal error!

Or this error appears in pmmcli.log:

PHP Warning: XMLReader::read(): /usr/local/psa/PMM/rsessions/20140812112808531/dump.xml:12487:     parser error : Entity 'G' not defined; File:     /usr/local/psa/admin/plib/backup/Conflicts/Resolver/ConflictsResolver.php, Line: 2358

NOTE : '20140812112808531' here is the timestamp, '12487' is the line number of the dump.xml file, 'G' is one of the symbols in the password, it may be different on particular installation.

PHP Warning: XMLReader::read(): <password type="plain">*******&*;</password>; File:     /usr/local/psa/admin/plib/backup/Conflicts/Resolver/ConflictsResolver.php, Line: 2358

Cause

The issue is caused by the '&' symbol in a password of some database user. This is a software issue #PPPM-569 which was fixed in 11.5 Plesk version.

Resolution

Consider upgrading your Plesk to later versions.

Also you can apply the following patch to the source Plesk 11.0 server. Replace the file /usr/local/psa/admin/plib/api-common/cuBackupEncrypt.php on the patched file .

As a workaround you can change the password of the database user so that the new one does not contain '&' symbols.

Attachments:

Have more questions? Submit a request
Please sign in to leave a comment.