bayes: cannot open bayes databases

Zoner

Verified User
Joined
Jun 7, 2006
Messages
104
Hi,

we using debian 3.1 / exim 4.68 / Spamassassin 3.2.3 / ClamAV , get to log this error:

spamd[1188]: bayes: cannot open bayes databases /home/useraccount/.spamassassin/bayes_* R/W: lock failed: File exists

Any know how fix or what cause this ?
 
Please note that I am NOT a linux expert but have sorted this same problem myself a couple of times...

I think it happens if the server gets restarted in the middle of writing to the bayes database (file) then it can leave a lock in place.

Option 1)

Connect to the server (however you normally do this - I tend to use WinSCP) and browse to the folder it mentions. Delete any lock files and try restarting spamassassin or exim.

If this doesn't work try option 2.


Option 2)

Dissable BAYES:

/etc/mail/spamassassin/local.cf
use_bayes 0

Restart spamassassin or exim.

Delete ALL bayes files from the directory mentioned above.

Enable BAYES:
/etc/mail/spamassassin/local.cf
use_bayes 1

Restart spamassassin or exim.


Hopefully this will cure the problem, but don't blame me if it breaks stuff please :)
 
Back
Top