• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved mailman list creation gives Duplicate entry for Primary key

tkalfaoglu

Silver Pleskian
When a customer tried to create a mailing list he got:

Error: DB query failed: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '158' for key 'PRIMARY', query was: replace MailLists set `id`='0', `dom_id`='213', `name`='xyz.temp', `status`='0'

What's the best way to correct this?
Many thanks, -t
 
Does 'plesk repair db' help?

Unfortunately not.
It did fix a bunch of other things tho :)

I am still getting the same error.
After the error, the list is actually created but unpopulated (re-trying to create the list yields to a listmng error saying list already exists.)
But the mailing list tab on plesk stays empty since it was not inserted into the database due to the original error.
 
Last edited:
Try to ask the assistance of Plesk Support Team for fixing this database inconsistency.
 
Back
Top