Articles in this section

Cannot restore Plesk backup on Almalinux 10: Fatal error: plesk::mail::postfix::PostfixConfigurationError(postmap: fatal: lmdb:/var/spool/postfix/plesk/virtual

kb: bug kb: fixed kb: technical

Applicable to:

  • Plesk for Linux

Symptoms

  • Backup restore fails:

    PLESK_ERROR: Internal server error: <cli><failure>mailmng-core failed: Fatal error: plesk::mail::postfix::PostfixConfigurationError(postmap: fatal: lmdb:/var/spool/postfix/plesk/virtual: internal error: mdb.c:2185: Assertion 'rc == 0' failed in mdb_page_dirty()
    )</failure></cli>

  • Running plesk repair mail command doesn't fix the issue.
  • Unable to create a domain with error:

    CONFIG_TEXT: Configuring mail
    mailmng-core failed: Fatal error: plesk::mail::postfix::PostfixConfigurationError(unknown error)

  • The following error can also be observed during migration:

    CONFIG_TEXT: Unable to create subscription 'example.com'. 
    An error occurred during domain creation: mailmng-core failed: Fatal error: plesk::mail::postfix::PostfixConfigurationError(unknown error)

Cause

Product issue:

  • #PPPM-15128 "Fixed the issue where the plesk repair mail command could not complete when the Postfix LMDB file is corrupted."
    Fixed in:

Resolution

Please consider updating your server:

Workaround

If update is not possible for some reason you may try the following

workaround

As a workaround:

  1. Connect to the server via SSH.
  2. Move the broken database:

    # mv /var/spool/postfix/plesk/virtual.lmdb /var/spool/postfix/plesk/virtual.lmdb.backup

  3. Regenerate the database:

    # plesk repair mail -y

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.