Home > Cannot Open > Cannot Open Bayes Databases R/w Lock Failed

Cannot Open Bayes Databases R/w Lock Failed

I still not sure there's a bug here; it is inevitable that there is some lock contention, and I think you should be informed of it. -- Duncan Findlay [signature.asc (application/pgp-signature, 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 Before "spamd restart" if I type "netstat -at" I see a lot of spamd connections. Run "sa-learn --force-expire". (which takes ~25 secs on my machine) 4. this contact form

Full text and rfc822 format available. Reply With Quote 10-05-2007,07:39 AM #2 OliverScott View Profile View Forum Posts Verified User Join Date May 2007 Posts 57 Please note that I am NOT a linux expert but have Only after I manually remove the file does sa-learn recover and proceed. Reported by: Peter Chubb Date: Thu, 20 Oct 2005 03:03:04 UTC Severity: normal Found in version spamassassin/3.1.0a-1 Fixed in version spamassassin/3.1.1-1 Done: Duncan Findlay Bug is archived. Visit Website

This page has been accessed 19,790 times. During the normal course of >> operation, I have the following messages in the logs: >> >> Oct 25 13:31:36 mail02 amavis[20312]: (20312-01-30) _WARN: bayes: >> cannot open bayes databases /var/spool/amavisd/.spamassassin/bayes_* Full text and rfc822 format available.

If it's normal behaviour, then it > shouldn't be reported; if it's abnormal behaviour then there should > be a way to fix it. You're running under heavy load, and multiple spamd instances cant write to the bayes database at the same time. bayes: cannot open bayes databases /var/mail/bayes/.spamassassin/bayes_* R/W: tie failed: Inappropriate ioctl for device Means your BDB files are of/from wrong version http: request failed: 500 Can't connect to spamassassin.kluge.net:80 (Bad hostname Format For Printing -XML -Clone This Bug -Top of page This is SA Bugzilla: the Apache SpamAssassin bug system.

Option 2) Dissable BAYES: /etc/mail/spamassassin/local.cf use_bayes 0 Restart spamassassin or exim. Yes, my password is: Forgot your password? Comment 5 Bart Schaefer 2006-07-05 07:11:36 UTC I've just had this happen again, with schaefer[651] spamassassin -V SpamAssassin version 3.1.3 running on Perl version 5.8.5 Here's my processlist: schaefer[576] ps ax https://lists.amavis.org/pipermail/amavis-users/2011-October/000948.html Mail about any other subject will be silently ignored.

Thanks. Contact Gossamer Threads Web Applications & Managed Hosting Powered by Gossamer Threads Inc. Description Mike 2007-05-25 06:23:26 UTC spamassassin server - 3gb ram, intel quad core 2.4 cpu,freebsd 6.2 Every day the bayesian database gets corrupted. Acknowledgement sent to Duncan Findlay : Extra info received and filed, but not forwarded.

Given that spamd, by default, logs a few lines for every message processed, this is relatively minor. (If you're using logcheck, you may wish to ignore this message.) > Duncan> If Powered by vBulletin Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. You might want to consider using "per-user" Bayes databases instead, or one of the SQL ones. I think the reason for this if you stop spamd and there is bayes.lock.* there, and there shouldn't when it is stopped, when you start up and spamd needs to create

Here's the processing trace of a single message along with the R/W lock failures associated with two other messages (from /var/log/mail.log) (unexpurgated log follows at the end): Feb 12 12:02:13 creaky http://ecoflashapps.com/cannot-open/cannot-open-bayes-databases-root-spamassassin-bayes-r-o-tie-failed.html If it's normal behaviour, then it shouldn't be reported; if it's abnormal behaviour then there should be a way to fix it. We are using SA with spampd with maxchildren set to 25. Please Note: this e-mail address is only for reporting problems with SA Bugzilla.

Comment 2 Justin Mason 2005-06-01 17:04:37 UTC moving this bug out of 3.1.0 queue until there's some kind of test case for it... 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 This has never happened if I wait until all the preforked spamds are quiescent before attempting to run sa-learn, so I suspect that there's some other interaction between spamd and sa-learn navigate here Delete any lock files and try restarting spamassassin or exim.

In this instance I would expect sa-learn to wait until spamd finished, then lock the database and proceed. Rather than block your mail queue, SA gave up. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site.

Bug causes following error message in maillog: Nov 9 18:23:23 mail spamd[484]: bayes: cannot open bayes databases ~/.spamassassin/bayes_* R/W: lock failed: File exists On a regular basis.

United States Copyright © Apple Inc. This discussion is locked            Kristoffer Level 4 (1,835 points) Q: Spamtrainer problem! amavis[32604]: (!!) TROUBLE in child_init_hook: BDB no dbS: Unknown locker ID: 367fc, . Thanks, -- Duncan Findlay [signature.asc (application/pgp-signature, inline)] Information stored: Bug#334829; Package spamassassin.

We see the following in the log file. Are they happening with the same frequency? Delete ALL bayes files from the directory mentioned above. his comment is here The bug is that I'm seeing all these messages, and don't know how to fix the problem they're reporting.

Full text and rfc822 format available. Message #18 received at [email protected] (full text, mbox, reply): From: Peter Chubb To: Duncan Findlay , [email protected] Subject: Re: Bug#334829: Bug? And here's a workaround (adapted from the one given at the above website): 1. Full text and rfc822 format available.

Frank >Debian - SA 3.2.4 > >In my log I'found a lot message like this: > >Feb 28 05:42:32 server spamd[9351]: bayes: cannot open bayes >databases /home/spamassassin/.spamassassin/bayes_* R/W: lock failed: >File Send a report that this bug log contains spam. The time now is 06:29 PM. Any ideas on how to fix this?

I've been getting the following error now since last week, and I can't seem to find out much on a Google search. I hope this helps.