You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Tim A <ti...@kosmo.com> on 2004/12/07 02:02:55 UTC

Bayes lock failed

I've read a number of people having problems with an error similar to what I'm getting with SA v3.0.1:

Cannot open bayes databases /root/.spamassassin/bayes_* R/W: lock failed: File exists

This only happens occassionally and not every time under the exact same invocation of SA. So obviously it doesn't have to do
with permissions on the file or directory as there is nothing else running that would be messing with those files. Don't have
spamd/spamc running and am not doing an sa-learn commands at the same time.

Anyone have any ideas??


Re: Bayes lock failed

Posted by Matt Kettler <mk...@evi-inc.com>.
At 08:02 PM 12/6/2004, Tim A wrote:
>I've read a number of people having problems with an error similar to what 
>I'm getting with SA v3.0.1:
>
>Cannot open bayes databases /root/.spamassassin/bayes_* R/W: lock failed: 
>File exists
>
>This only happens occassionally and not every time under the exact same 
>invocation of SA. So obviously it doesn't have to do
>with permissions on the file or directory as there is nothing else running 
>that would be messing with those files. Don't have
>spamd/spamc running and am not doing an sa-learn commands at the same time.

Hmm.. well, check for /root/.spamassassin/bayes_lock

If that files there then some copy of SA is messing with bayes OR a SA 
process was killed with an unblockable signal (kill -9, seg fault, etc) 
while it was in the middle of updating the bayes db.