[Mimedefang] Bayes locking fails

Graham Dunn gdunn at inscriber.com
Fri Nov 28 11:11:33 EST 2003


Hi,

mimedefang-2.38,
p5-Mail-SpamAssassin-2.60
on Freebsd 4.8-STABLE

using:

# Enable Bayesian learning
auto_learn 1
use_bayes 1
bayes_path /var/spool/MIMEDefang/bayes
bayes_file_mode 0666


I'm getting errors like the following:

Nov 28 10:57:16 ureshii mimedefang-multiplexor: Slave 1 stderr: Cannot
open bayes databases /var/spool/MIMEDefang/bayes_* R/W: lock failed:
File exists

Slave 0 also gives these errors. Neither slave proccess is reporting
these errors for every message, only intermittently.

Lock files like the following are being created and removed in
/var/spool/MIMEDefang (not /var/spool/MIMEDefang/bayes, so I'm a
little confused there)

bayes.lock.ureshii.inscriber.local.1910
bayes.lock.ureshii.inscriber.local.1302

In /var/spool/MIMEDefang:

ureshii# ls -l bayes*
-rw-------  1 mailnull  mailnull      203 Nov 28 11:01 bayes.lock
-rw-rw-rw-  1 mailnull  mailnull   164301 Nov 28 11:04 bayes_journal
-rw-rw-rw-  1 mailnull  mailnull   671744 Nov 28 10:41 bayes_seen
-rw-rw-rw-  1 mailnull  mailnull  5193728 Nov 28 11:01 bayes_toks

bayes_journal and bayes_toks are being updated, but bayes_seen still
has the timestamp from when I restarted mimedefang / sendmail.

This was working, with no errors up until today. I am seeing a lot of
perl core errors in /var/log/messages though:

Nov 28 11:01:19 ureshii /kernel: pid 1910 (perl), uid 26: exited on
signal 11 (core dumped)

Mail is flowing and being tagged. Eg.

X-Spam-Score: -4.224 () BAYES_00,FROM_ENDS_IN_NUMS
X-Scanned-By: MIMEDefang 2.38

I'm not sure where to start troubleshooting.

Graham



More information about the MIMEDefang mailing list