Cannot restore mailbox with empty password

Refers to:

  • Plesk for Linux
  • Plesk

Created:

2016-11-16 13:20:03 UTC

Modified:

2016-12-21 20:28:56 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot restore mailbox with empty password

Symptoms

While restoring a backup from earlier versions of Plesk, it fails with the following error:

<message code="FailedMailuserDeployment" severity="error">
<context>virtual void plesk::tMailuserDeployer::act(xmlNode*) const</context>
<file>./mail_deploy.cpp</file>
<line>142</line>
<text>Failed deployment of mail user from@domain.tld</text>
<message code="AssertionFailed" severity="error">
<context>plesk::passwd::passwd(plesk::XmlNode)</context>
<file>./pmm_deploy_sup.h</file>
<line>56</line>
<text>Assertion failed: type & (PLAIN | ENCRYPTED)</text>
</message>
</message>

Cause

In previous versions of Parallels Plesk, if the password of a mail user was empty, its type was set to "empty":

mysql> select * from accounts where id = 41;

+----+-------+----------+
| id | type | password |
+----+-------+----------+
| 41 | empty | |
+----+-------+----------+

1 row in set (0.02 sec)

While in Parallels Plesk Panel 9.x it appears as 'plain':

mysql> select * from accounts where id = 41;

+----+-------+----------+
| id | type | password |
+----+-------+----------+
| 41 | plain | |
+----+-------+----------+

1 row in set (0.02 sec)

Therefore, while restoring the backup the deployer could not process the "empty" properly and therefore ot fails.

Resolution

To avoid such issues it is better to use native Parallels Plesk Migration Manager to transfer domains. However, as a workaround, you can change the password type to "plain" and replace encrypted password with plain password in the backup .xml file and restore the backup over.

# grep password converted_info_1005300558.xml
<password type="plain">123QWEASD</password>
Have more questions? Submit a request
Please sign in to leave a comment.