Cannot Open Bayes Databases Lock Failed File Exists
And here's a workaround (adapted from the one given at the above website): 1. I'm still getting these e-mails out because of the normal amount of inbound mail traffic we experience. Are there any tools available for fixing an SA 2.60 database or should I get rid of the database completely and start over again? what does the output of sa-learn --force-expire -D look like? >Emails now take nearly 30 seconds to process through spamassassin, see the >maillog below. this contact form
Message #28 received at [email protected] (full text, mbox, reply): From: Peter Chubb
I have no idea why this is so. :-( I'll attach it again to this posting. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Full text and rfc822 format available. It seems I don't have an existing AWL to convert to be imported into mysql.
Use network checks too, that may save you from mail that is not catched, but listed in DCC/RAZOR etc. I hadn't heard of that before, so have now added it. SpamAssassin Rules Emporium (SARE) http://khopesh.com/wiki/Anti-spam#Other_SpamAssassin_tools Tuning se2c Compiled rulesets. If so, re-check them. > What are the best practices to keep your Bayes database clean?
Feb 12 12:07:19 creaky spamd: spamd: result: . -2 - BAYES_00 scantime=305.5,size=6091,user=Debian- exim,uid=109,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=60 477,mid=
And Leopard is still far away. I'm content with this remaining closed until I have a chance to install 3.1.3 and check it again. Duncan Findlay
Feb 12 12:07:19 creaky spamd: spamd: clean message (-2.6/5.0) for Debian-exim:109 in 305.5 seconds, 6091 bytes. check my blog decrease it. debug: Initialising learner debug: bayes: 14631 tie-ing to DB file R/O /etc/mail/spamassassin/bayes_toks debug: bayes: 14631 tie-ing to DB file R/O /etc/mail/spamassassin/bayes_seen debug: bayes: found bayes db version 2 debug: bayes: Not Full text and rfc822 format available.
If this doesn't work try option 2. http://scriptkeeper.net/cannot-open/cannot-open-bayes-databases-file-exists.html Aug 17 00:05:22 mail-in-1 spamd: Cannot open bayes databases /usr/local/share/spamassassin/run/bayes_* R/W: lock failed: File exists Aug 17 00:05:22 mail-in-1 spamd: clean message (-0.6/5.0) for exim:99 in 20.5 seconds, 4272 bytes. I have yet to have someone show me a message that exhibits this behavior, so I can't debug why atimes in the future occur, but there is a kluge in 3.0 Send a report that this bug log contains spam.
Autolearn might cause problems, especially when too low scores. Thanks, Zoe Aug 17 00:05:02 mail-in-1 spamd: Cannot open bayes databases /usr/local/share/spamassassin/run/bayes_* R/W: lock failed: File exists Aug 17 00:05:03 mail-in-1 spamd: Cannot open bayes databases /usr/local/share/spamassassin/run/bayes_* R/W: lock failed: File Oct 25, 2006 4:31 AM Helpful (0) Reply options Link to this post by Kristoffer, Kristoffer Oct 25, 2006 2:39 PM in response to pterobyte Level 4 (1,835 points) Oct 25, http://scriptkeeper.net/cannot-open/cannot-open-bayes-databases-r-w-lock-failed.html Yes, have now done this, but the document referenced is cut down too much from the original, and has several problems.
That's only true when you run spamassassin as root. A separate update process perhaps, so you don't need to lock the database for writing? -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au The technical we do immediately, the political takes Full text and rfc822 format available.
if it's still an issue w/ a recent (3.1/etc) SA version, please let us know and we can reopen.
Links Homepage Amavis and SpamAssassin SpamAssassin and MimeDefang Setting Up SpamAssassin and ClamAV with Sendmail on FreeBSD http://ist.uwaterloo.ca/~dkeenan/talks/spamassassin/config.html http://khopesh.com/Anti-spam#iXhash http://spamassassin.apache.org/full/3.3.x/doc/Mail_SpamAssassin_Conf.html spamass-milter http://wiki.sund.org/?title=Postfix_and_milters Notes 3.2.2 is BROKEN, http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5574 isn't entirely correct, but Xenforo skin by Xenfocus Contact Us Help Imprint Home Top RSS Terms and Rules Forum software by XenForo™ ©2010-2014 XenForo Ltd. Message #10 received at [email protected] (full text, mbox, reply): From: "Sam Snow"
Restart SA's client chain: /etc/init.d/spamassassin start /etc/init.d/exim4 start .... 5. Bug causes following > error message in maillog: > > Nov 9 18:23:23 mail spamd: bayes: cannot open bayes databases > ~/.spamassassin/bayes_* R/W: lock failed: File exists > > On a Thanks Falko! http://scriptkeeper.net/cannot-open/cannot-open-bayes-databases-lock-failed.html Message sent on to Peter Chubb
Note that no tokens have expired even though the last expiry ran >today and there are over 4 million tokens in the db. Bug causes following error message in maillog: Nov 9 18:23:23 mail spamd: bayes: cannot open bayes databases ~/.spamassassin/bayes_* R/W: lock failed: File exists On a regular basis. what do those rule names mean? bschultz, Nov 20, 2007 #3 bschultz Member Now, I'm getting hundreds of these in the mail log...
Option 2) Dissable BAYES: /etc/mail/spamassassin/local.cf use_bayes 0 Restart spamassassin or exim. Thanks. On debian you set those in /etc/default/spamassassin under "OPTIONS". I've tried >putting bayes_expiry_max_db_size 1000000 into local.cf and restarting >services - this didn't have much effect > If you're trying to REDUCE the size of your bayes database, don't increase the
Mail about any other subject will be silently ignored. Attachments: db-to-text2.pl (5.09 KB) ms at artcom-gmbh Aug17,2004,9:59AM Post #13 of 19 (11472 views) Permalink Re: Bayes database [In reply to] On 2004-08-17 18:28:48 +0200, Andy Spiegl wrote: > You don't have to Why did this >deadlock happen and how can I prevent it in the future?