• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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