Home > Cannot Open > Cannot Open Bayes Databases

Cannot Open Bayes Databases

Since spamassassin prefers DB_File over any other DB flavor, it will start using it, but the files are in a different format and the tie() call will fail. I'm still really concerned that I'll hit another >deadlock situation like happened earlier this afternoon. So it seems to be working. But I dont know if the userfiles are updated and how can I copy all the userfiles from the old server to the new? this contact form

I did not change any permissions on the /home/user-data directory. Any SA older than 2.64 is subject to a DoS attack from malformed mime segments.. years ago, certainly > since 2014. > > I made the following change and it appears to have alleviated the log message > # chmod spamd:spamd /var/spool/spamd/.spamassassin/bayes_toks I thing what you One thing I suspect is the DB_version.

do you keep all mail you've user to learn? Why did this >deadlock happen and how can I prevent it in the future? falko, Dec 2, 2010 #4 newfield_no1 New Member On the new server: -rw------- 1 web6_tevensso web6 335872 2010-12-01 01:01 auto-whitelist -rw------- 1 web6_tevensso web6 32688 2010-01-08 14:31 bayes_journal -rw------- 1 web6_tevensso

I am getting tons of spam and when I look it shows no spam in the database. wrote: >I'm still trying to reduce the size of our bayes database. falko, Dec 7, 2010 #8 newfield_no1 New Member I tryed to run apt-get update, apt-get upgrade on the old server to se if the DB-files would be updated but the DB_file For further information contact email-integrity [at] dns felicity at kluge Aug17,2004,8:41AM Post #7 of 19 (11485 views) Permalink Re: Bayes database [In reply to] On Tue, Aug 17, 2004 at 04:10:25PM +0100, "Rogers,

Stay logged in Log in with Facebook Log in with Twitter Toggle navigation Products Plans & Pricing Partners Support Resources Preview Forums Forums Quick Links Search Forums New Posts Search titles no it shall not. > > > # ls -al /var/spool/spamd/.spamassassin/ > total 6028 > drwxr-s--- 2 spamd spamd 4096 Apr 13 01:13 . > drwxr-s--- 5 spamd spamd 4096 Jan The new server also has these folders there: Digest-SHA1-2.13 Digest-SHA-5.48 HTML-Parser-3.68 Net-DNS-0.66 The old server only has this folder: NetAddr-IP-4.030 Isn't that somethin that ISPconfig creates during setup? At some point, MailScanner would fail to lock the database because it couldn't read/write a 0600 file owned by root and then everything went bad from there.

The inspection was prompted by a log entry, "warn: bayes: cannot open bayes databases /var/spool/spamd/.spamassassin/bayes_* R/W: tie failed: Permission denied". I'll try and have a look. 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. Hopefully this will cure the problem, but don't blame me if it breaks stuff please Reply With Quote Quick Navigation E-Mail Top Site Areas Settings Private Messages Subscriptions Who's Online Search

A workaround is to disable bayes auto-expiration > and expire tokens periodically by: sa-learn --force-expire. http://forum.directadmin.com/showthread.php?t=21648 Already have an account? DirectAdmin 2013 JBMC Software store | blogs | forums | twitter | facebook | wiki | downloads | support portal Login Register FAQ Search It is currently I guess it depends what that means.

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 http://scriptkeeper.net/cannot-open/cannot-open-bayes-databases-r-w-lock-failed.html Use this one instead: http://svn.apache.org/repos/asf/spamassassin/trunk/sql/bayes_mysql.sql I'm also having problems with the AWL instructions from that document. Bugs . What are my options?

Thanks, Zoe -----Original Message----- From: Theo Van Dinter [mailto:felicity [at] kluge] Sent: 17 August 2004 16:41 To: spamassassin-users [at] incubator Subject: Re: Bayes database On Tue, Aug 17, 2004 at 04:10:25PM Aug 17 00:05:38 mail-in-1 spamd[82864]: identified spam (8.8/5.0) for exim:99 in 23.1 seconds, 4567 bytes. Aug 17 00:05:37 mail-in-1 spamd[81959]: connection from localhost [127.0.0.1] at port 4001 Aug 17 00:05:37 mail-in-1 spamd[82884]: processing message <FZMYDGXPTZTDCMSVWELEGWWJR [at] fadmail> for exim:99. navigate here Recovering a corrupted Bayes DB even more. :-) Andy. -- o _ _ _ ------- __o __o /\_ _ \\o (_)\__/o (_) -o) ----- _`\<,_ _`\<,_ _>(_) (_)/<_ \_| \ _|/'

It might be also on SME9. Delete ALL bayes files from the directory mentioned above. We recommend upgrading to the latest Safari, Google Chrome, or Firefox.

Option 2) Dissable BAYES: /etc/mail/spamassassin/local.cf use_bayes 0 Restart spamassassin or exim.

How do I remove the database? Thanks, Zoe Aug 17 00:05:02 mail-in-1 spamd[82829]: 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[82832]: Cannot open bayes databases /usr/local/share/spamassassin/run/bayes_* R/W: lock failed: File Mail about any other subject will be silently ignored. By doing it in local.cf you've fundamentally forced SA to only ever be invoked as one user without breaking the whole system.

newfield_no1, Dec 17, 2010 #14 newfield_no1 New Member I think an apt-get upgrade solved the problem. By continuing to use this site, you are agreeing to our use of cookies. the bayes database is usualy in the home directory of the user which spamassassin runs as. http://scriptkeeper.net/cannot-open/cannot-open-bayes-databases-lock-failed.html Translation | Search .

Yes, auto-expiry was already disabled. > Btw, you do have a 'lock_method flock' in local.cf, don't you? 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, United States Copyright © Apple Inc. falko, Dec 10, 2010 #13 newfield_no1 New Member Now I think I have found the problem with Spamassasin.

Enable BAYES: /etc/mail/spamassassin/local.cf use_bayes 1 Restart spamassassin or exim. 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? newfield_no1 New Member I have moved my Ispconfig 2 setup to a new server. I'm using MailScanner version 4.30.3 and SpamAssassin 2.63.

Results 1 to 2 of 2 Thread: bayes: cannot open bayes databases Thread Tools Show Printable Version Email this Page… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode I have no idea why this is so. :-( I'll attach it again to this posting. Simple . You may want to consider just removing your current DBs, letting them get back up to speed, and switching to 3.0 (there is currently a release candidate, and a final version

That's only true when you run spamassassin as root. Log in or Sign up Howtoforge - Linux Howtos and Tutorials Home Forums > ISPConfig 2 > General > bayes: cannot open bayes databases Discussion in 'General' started by newfield_no1, Nov at /usr/share/perl5/Mail/SpamAssassin/BayesStore/DBM.pm line 196. Aug 27 09:41:49 mail spampd[1516]: processing message (unknown) for Aug 27 09:41:49 mail spampd[1516]: bayes: cannot open bayes databases /home/user-data/mail/spamassassin/bayes_* R/O: tie failed: Permission denied#012 Aug 27 09:41:50 mail spampd[1516]:

I bet if you check your logfile there are a bunch of messages telling you spamassassin timed out and was killed. newfield_no1, Dec 9, 2010 #12 falko Super Moderator ISPConfig Developer newfield_no1 said: ↑ Can I then copy only them by using: /var/www/web*/user/web*/.spamassassin/b* and /var/www/web*/user/web*/.spamassassin/a* Maby by using this command: tar -pczf When i run: spamassassin 2>&1 -D --lint | less The old server has: DB_File, version 1.814 And the new server has: DB_File, version 1.82 Is there some solution to this? maybe I should incorporate a fix in smeserver-learn to chmod files to spamd spamd in case a file has been created.