[8.290][BUG][FIXED] duplicate key value violates unique constraint "primary_l"

From the System messages log..

Dont know if this is a bug, or just developer info.

I edited out the mail adresses..

2011:12:07-14:53:17 ASG220SKA postgres[20548]: [9-1] ERROR:  duplicate key value violates unique constraint "primary_l"
2011:12:07-14:53:17 ASG220SKA postgres[20548]: [9-2] STATEMENT:  INSERT INTO l ( cluster_id, message_id, recipient, sender, result, result_time, reason, reason_extra, msglog, received, subject, size, src, attachment ) VALUES ( '0', '1RXxNA-00051o-Gd', '**@********.com', '****@********.dk', 'delivered', '1323265995', 'other', '10.10.1.102 (10.10.1.102)', '2011-12-07 14:53:15 **@********: static_smtp transport succeeded to 10.10.1.102 (10.10.1.102)
2011:12:07-14:53:17 ASG220SKA postgres[20548]: [9-3]  ', '1323186954', 'På med løbeskoene... Aarhus Motion', '20327', '81.19.234.29/32', '0' )
  • Astaro Beta Report
    --------------------------------
    Version: 8.290
    Type: BUG
    State: RESOLVED/FIXED
    Reporter: vels+
    Contributor: 
    MantisID: 19770
    Target version: 8.301
    Fixed in version: 
    --------------------------------

  • Hi vels,

    this error message comes whenever a log message is added to the Mail Manager Log for a mail that has already logged another log message. The worst impact is, that the log in Mail Manager doesn't show the latest log message. Besides that nothing else should break.

    Can you please try to find out from smtp.log what actions happened to that mail? You can do that using the following command:
    exigrep 1RXxNA-00051o-Gd /var/log/smtp.log

    If this is incomple, you should do that also for the archived log files.

    Does this yield anything that explains why a second log message was tried to be added for that mail.

    Regards,
    mlenk
  • 2011:12:07-14:53:15 ASG220SKA smtpd[20512]: MASTER[20512]: Action: releasing 1RXxNA-00051o-Gd from 'quarantine'
    
    2011:12:07-14:53:15 ASG220SKA exim-out[6998]: 2011-12-07 14:53:15 1RXxNA-00051o-Gd => **@*********.com P= R=static_route_hostlist T=static_smtp H=10.10.1.102 [10.10.1.102]:25 X=TLSv1:RC4-MD5:128 C="250 2.6.0  Queued mail for delivery"
    2011:12:07-14:53:15 ASG220SKA exim-out[6998]: 2011-12-07 14:53:15 1RXxNA-00051o-Gd Completed 
  • Okay, we reproduced the problem here. We've opened mantis issue #19770 to track the issue. However, the impact is limited to the contents of the Mail Manager log (which will still show that the message has been quarantined) only.

    Regards,
    mlenk