Articles in this section

Unable to create/migrate a domain in Plesk: mailmng-outgoing failed: mailmng-outgoing failed: ERROR:outgoing:column name is not unique

kb: bug Plesk for Linux

Applicable to:

  • Plesk for Linux

Symptoms

  • When creating a domain/subscription or enabling the mail service for a domain, the operation fails with one of the following error messages:

    An error occurred during domain creation: mailmng-outgoing failed: ERROR:outgoing:column name is not unique


    mailmng-outgoing failed: ERROR:__main__:database is locked


    Error: mailmng-outgoing failed: ERROR:__main__:UNIQUE constraint failed: domains.name


    Configuring mail
    mailmng-outgoing failed: ERROR:__main__:PRIMARY KEY must be unique


    Configuring mail
    Task is not responding: id=3315, pid=2251, type=domain-create, clientRemoteAddr=203.0.113.2, current_stage=Mail, ...


    mailmng-outgoing failed: ERROR:__main__:no such table: mails

  • Migration of a domain to Plesk finishes with the following warning and the domain is created with No Hosting type:

    Failed deployment of domain example.com
    Warning:
    ...
    Stderr is An error occurred during domain creation: mailmng-outgoing failed: ERROR:outgoing:column name is not unique

Cause

Inconsistency in outgoing mail control database due to previous unsuccessful operation. This behavior is considered a bug with ID PPPM-13825.

Resolution

  1. Connect to the (destination) Plesk server via SSH.

  2. Rename the database:

    # mv /var/lib/plesk/mail/outgoing/data.db{,_bk}

  3. Rebuild the outgoing mail control database:

    • on CentOS/RHEL-based distributions:

      # /usr/lib64/plesk-9.0/remote_mail_restore/mail_outgoing_restore

    • on Debian/Ubuntu-based distributions:

      # /usr/lib/plesk-9.0/remote_mail_restore/mail_outgoing_restore

Note: In case of failed migration, re-sync subscription. In other cases, recreate or reenable the object that was returning the error.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.