Home > Cannot Open > Cannot Open Bayes Databases Lock Failed File Exists

Cannot Open Bayes Databases Lock Failed File Exists

Feb 12 12:07:18 creaky spamd[30220]: spamd: result: . -2 - AWL,BAYES_00 scantime=19.5,size=3655,user=Debian- exim,uid=109,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=60 484,mid=<[email protected]>,bayes=0,autolear n=ham Feb 12 12:07:18 creaky fetchmail[30122]: flushed Feb 12 12:07:19 creaky fetchmail[30122]: reading message rjohnson% [email protected]:12 of Message #53 received at [email protected] (full text, mbox, reply): From: Duncan Findlay To: Greg Kochanski , [email protected] Cc: [email protected] Subject: Re: Bug#334829: spamassassin: Similar spamming if you run spamd as Please type your message and try again. If you don't have the mails, then you don't know what the tokens in question are, and so you can't do anything short of restarting the DB and doing a better this contact form

Brian bschultz, Nov 20, 2007 #1 falko Super Moderator ISPConfig Developer What's the output Code: ls -la /var/lib/amavis/.spamassassin ? You may have to register before you can post: click the register link above to proceed. Acknowledgement sent to Duncan Findlay : Extra info received and forwarded to list. Why did this >deadlock happen and how can I prevent it in the future?

Full text and rfc822 format available. Oct 25, 2006 9:14 AM Helpful (0) Reply options Link to this post Apple Footer This site contains user submitted content, comments and opinions and is for informational purposes only. Aug 17 00:05:38 mail-in-1 spamd[82878]: Cannot open bayes databases /usr/local/share/spamassassin/run/bayes_* R/W: lock failed: File exists ZoŽ Rogers dns ltd 83 princes street, edinburgh, eh2 2er t: +44 (0) 870 085 8555 We're at crunch time here and students are e-mailing papers and the such like and delays like I'm seeing now are a killer.

One exception is if you use spamd, it will NEVER scan mail as root, and if it finds spamc was called as root, it will setuid to nobody. uhlar at fantomas May6,2008,7:48AM Post Feb 12 12:07:19 creaky spamd[29924]: 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=,bayes=2.22044604925031e-16,autolearn=unavailable [Message part 2 (text/html, inline)] Reply sent to Duncan Findlay : You have taken responsibility. A workaround is to disable bayes auto-expiration > and expire tokens periodically by: sa-learn --force-expire. decrease it.

The journal option above is just that. -- Duncan Findlay [signature.asc (application/pgp-signature, inline)] Information stored: Bug#334829; Package spamassassin. I've read the FM, but there does not seem to be an obvious solution, other than running spamd as a real user, rather than as nobody (and I'd prefer not to Option 1) Connect to the server (however you normally do this - I tend to use WinSCP) and browse to the folder it mentions. https://lists.amavis.org/pipermail/amavis-users/2011-October/000948.html Note: the warnings in the SA docs about not honoring bayes_path in user_prefs only seems to apply to spamd.

By symlinking your local.cf onto your spam.assassin.prefs.conf, you're forcing MailScanner to reparse the exact same file twice, wasting time and resources. (and possibly causing crashes if future versions of SA do 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. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Full text and rfc822 format available.

Tac Anti Spam from Surrey Forum store | blogs | forums | twitter | facebook | wiki | downloads | support portal Login Register FAQ Search It is https://groups.google.com/d/topic/mailing.unix.amavis-user/ZpxKJyzQLPU Message sent on to Peter Chubb : Bug#334829. Date: Tue, 8 Nov 2005 20:07:38 -0500 [Message part 1 (text/plain, inline)] On Wed, Nov 09, 2005 at 09:22:55AM +1100, Peter Chubb wrote: > The bug is that I'm seeing all Message #43 received at [email protected] (full text, mbox, reply): From: Duncan Findlay To: [email protected] Subject: Bug#334829: fixed in spamassassin 3.1.1-1 Date: Sun, 07 May 2006 16:47:13 -0700 Source: spamassassin Source-Version:

This looks like intended behaviour to me. http://ecoflashapps.com/cannot-open/cannot-open-bayes-databases-file-exists.html if you have out of control growth, 1) blow away your bayes DBs (aka: restart), 2) learn fewer messages. > 0.000 0 1735776000 0 non-token data: newest atime that's your problem, And here's a workaround (adapted from the one given at the above website): 1. Am using spamassassin v3.3.1 on centos v5.7 Comment 9 istvan.cebrian 2011-11-09 18:47:33 UTC (In reply to comment #8) > Am also suffering from this problem.If I run lsof +D /.spamassassin no

Full text and rfc822 format available. By Strator in forum E-Mail Replies: 10 Last Post: 12-20-2011, 12:18 PM SpamAssassin Plug-in for Bayes filter? Use network checks too, that may save you from mail that is not catched, but listed in DCC/RAZOR etc. navigate here the lock may hang around for a while, especially if there's an expire going on.

With this workaround all my SA R/W deadlocks have gone away. By doing it in local.cf you've fundamentally forced SA to only ever be invoked as one user without breaking the whole system. Date: Wed, 9 Nov 2005 14:03:42 +1100 >>>>> "Duncan" == Duncan Findlay writes: Duncan> Firstly, you can use a journal for writing to the database, Duncan> using the "bayes_learn_to_journal" option

amavis[32604]: (!!) TROUBLE in child_init_hook: BDB no dbS: Unknown locker ID: 367fc, .

Here are my pertinent Bayes entries from local.cf (which is a link to MailScanner/etc/spam.assassin.prefs.conf for MailScanner): bayes_path /var/spool/spamassassin/bayes bayes_file_mode 0600 bayes_ignore_header X-Dickinson-MailScanner bayes_ignore_header X-Dickinson-MailScanner-SpamCheck bayes_ignore_header X-Dickinson-MailScanner-SpamScore bayes_ignore_header X-Dickinson-MailScanner-Information bayes_auto_learn 0 The I have no idea why this is so. :-( I'll attach it again to this posting. Add "bayes_auto_expire 0" to /etc/spamassassin/local.cf to stop SA from trying (and failing) to expire old tokens. 2. Thank you for reporting the bug, which will now be closed.

I read that by removing all bayes_* files from the /usr/local/share/spamassassin/run would work to reset the database. Yes, have now done this, but the document referenced is cut down too much from the original, and has several problems. For further information contact email-integrity [at] dns felicity at kluge Aug17,2004,9:24AM Post #10 of 19 (11491 views) Permalink Re: Bayes database [In reply to] On Tue, Aug 17, 2004 at 05:16:03PM +0100, "Rogers, http://ecoflashapps.com/cannot-open/cannot-open-bayes-databases-r-w-lock-failed.html The loud warnings should have been silenced upstream.

But you can see clearly that these files ARE being updated on the fly in spite of "bayes_auto_learn" being turned off. falko, Nov 21, 2007 #5 bschultz Member yes...any ideas what's causing this?