Home > Cannot Open > Cannot Open Bayes Databases /root/.spamassassin/bayes_* R/o Tie Failed

Cannot Open Bayes Databases /root/.spamassassin/bayes_* R/o Tie Failed

Any SA older than 2.64 is subject to a DoS attack from malformed mime segments.. FYI: expiry is best effort. I read that by removing all bayes_* files from the /usr/local/share/spamassassin/run would work to reset the database. OK, (finally) did that now... > Instead of warning everyone to use the _broken_ script people prefer > suggesting to start all over with your bayes training. this contact form

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 I did not change any permissions on the /home/user-data directory. Board index The team • Delete all board cookies • All times are UTC + 1 hour [ DST ] Powered by phpBB Forum Software © phpBB Group Forums Search Forums I'll try and have a look. https://github.com/mail-in-a-box/mailinabox/issues/534

Instead of warning everyone to use the _broken_ script people prefer suggesting to start all over with your bayes training. Are you really running 2.60? Contribs Bug9446 - warn: bayes: cannot open bayes databases Summary: warn: bayes: cannot open bayes databases Status: CLOSED FIXED Alias: None Product: SME Contribs Classification: Contribs Component: smeserver-learn (show other bugs) Is this the Spamsnake tutorial you're using?

The biggest problem came when I ended up with a deadlock and I had over 1800 messages backed up when I got back from a meeting. When I try to create a lock file manually as spamd, it works fine: [email protected]:~$ sudo -u spamd -s -H [email protected]:/home/andy$ touch /etc/spamassassin/bayes.lock. [email protected]:/home/andy$ ls -l /etc/spamassassin/bayes.lock. -rw-r--r-- 1 spamd spamd Since the error message says 'Permission denied' Look at permissions on the files AND the directory, and parent directory and parent directory. -- Michael Scheidell, CTO >|SECNAP Network Security Winner 2008 If yes, can you trace through incremental backup any change on the file or its creation ?

Tac Anti Spam from Surrey Forum Login | Register For Free | Help Search this list this category for: (Advanced) Mailing List Archive: SpamAssassin: users Bayes database decrease it. falko, Mar 22, 2009 #6 klausengelmann New Member falko: Thanks for your suggestion. https://www.howtoforge.com/community/threads/mailscanner-sa-bayes-permissions.32621/ The tutorial I was using was: Virtual Users And Domains With Postfix, MailScanner, Mailwatch & MySQL On CentOS 5.1 I also took a look a the Perfect SpamSnake but I am

S 18:39 0:04 MailScanner: waiting for messages postfix 10819 0.0 0.0 6800 1768 ? 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, Here's what /var/spool/spamassassin looked like a few minutes ago: -rw------- 1 root system 26 May 11 16:03 bayes.lock -rw------- 1 root system 13899 May 11 16:04 bayes_journal -rw------- 1 root system So it's possible but not definite that the spamassassin problem was causing email problems.

Brian ( bcwhite@precidia.com ) ------------------------------------------------------------------------------- Premature optimization is the root of all evil. -- Donald Knuth Comment 2 J 2003-09-30 00:07:16 UTC i run sa-learn and spamd as user spamc the why not find out more I thought that MailScanner was responsible to run Spamassassin as part of its rules and other tests, jusk like amavisd-new does. I have no idea why > > this is so. :-( > > using the script is a complex task. Thanks for the suggestion - at least I am seeing an error message now!

usually something like /home/spamd/.spamassassin/bayes_* Jim spamassassin.andy at spiegl Aug17,2004,9:28AM Post #12 of 19 (11473 views) Permalink Re: Bayes database [In reply to] You don't have to delete your bayes database! http://scriptkeeper.net/cannot-open/cannot-open-bayes-databases-lock-failed-file-exists.html Newer Than: Search this thread only Search this forum only Display results as threads More... Good luck, Andy. -- o _ _ _ ------- __o __o /\_ _ \\o (_)\__/o (_) -o) ----- _`\<,_ _`\<,_ _>(_) (_)/<_ \_| \ _|/' \/ /\\ ---- (_)/ (_) (_)/ Simple .

Examining the logs showed it came back after a reinstall every few days. S 20:03 0:00 smtp -t unix -u
postfix 12632 0.0 0.0 6972 1940 ? Using mailwatch there is an error pointing to bayes_* files in /var/spool/Mailscanner/spamassassin directories. http://scriptkeeper.net/cannot-open/cannot-open-bayes-databases-r-w-lock-failed.html Aug 17 00:05:28 mail-in-1 spamd[81959]: connection from localhost [] at port 3997 Aug 17 00:05:28 mail-in-1 spamd[82878]: processing message <2352774.1092695757739.JavaMail.oracle [at] app-6> for exim:99.

Typical problem for MailScanner users.. What user is getting this error (i.e., what user is trying to access /var/spool/MailScanner/spamassassin/bayes_*)? klausengelmann New Member Hello everybody !!!

I read that by removing all bayes_* files from the /usr/local/share/spamassassin/run would work to reset the database.

falko, Mar 21, 2009 #4 klausengelmann New Member Yes, indeed SElinux is disabled. I have no idea why > this is so. :-( using the script is a complex task. - --j. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Exmh CVS iD8DBQFBIktpQTcbUG5Y7woRAqfFAKDdUdoR06WpPGwpc9y3juuNa9Ss4QCgxaNS Dz3+6t1cyWVVz1PgFKKvqSU= Why did this deadlock happen and how can I prevent it in the future? I can see it generating a lockfile to do an expiry but why would I have had six or seven lockfiles unless they were separate expiry runs (every 5 minutes or

So go with 666. Thanks very much, Andy Andy Balaam Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: BAYES_ tags not appearing, but If you do an sa-learn as root or another use then the files will be created and locked un their account. http://scriptkeeper.net/cannot-open/cannot-open-bayes-databases-lock-failed.html After a complete installation of Postfix + Mailscanner + SA + Mailwatch according to some Howtoforge Tutorials I run into this error: A Learn: error code 13 returned from sa-learn: bayes:

Note that no tokens have expired even though the last expiry ran >today and there are over 4 million tokens in the db. Here is an excerpt from an email I sent to myself (containing the word viagra): X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on X-Spam-Level: * X-Spam-Status: No, score=1.1 required=3.0 tests=AWL,DRUGS_ERECTILE, S 18:39 0:02 MailScanner: waiting for messages postfix 8561 0.0 0.6 79480 51080 ? for providing its computer software that facilitates the management and configuration of Internet web servers. Log In Spampd: Bayes DB permission denied Maintenance tkorves 2015-10-25 12:06:56 UTC #1 Hi there,

Thanks, Andy Run with -D, or -D bayes, and see what it says. Why did this >deadlock happen and how can I prevent it in the future? falko, Mar 20, 2009 #2 klausengelmann New Member Thanks for your reply falko !!! Today is busy so most likely tomorrow.

rsync, would be -a option. 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 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 Most likely permissions problems.

drwxrwxr-x 7 root www-data 4096 Jul 30 21:00 .. -rw-rw---- 1 spampd spampd 2625536 Jul 29 13:03 bayes_seen -rw-rw---- 1 mail mail 4825088 Jul 29 13:03 bayes_toks yodax commented Aug 1, You signed in with another tab or window. By doing it in local.cf you've fundamentally forced SA to only ever be invoked as one user without breaking the whole system. MailScanner inhibits user_prefs and replaces it with spam.assassin.prefs.conf.

decrease it. But I am still having the same error. Aug 17 00:05:22 mail-in-1 spamd[82843]: 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[82843]: clean message (-0.6/5.0) for exim:99 in 20.5 seconds, 4272 bytes. I asked that someone puts it on the > website next to the broken(!) db-to-text.pl but no one seems to care.

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? I'm running Ubuntu Dapper. S 19:58 0:00 pipe -n dovecot -t unix flags=DRhu user=vmail vmail argv=/usr/libexec/dovecot/deliver -f ${se
postfix 12398 0.0 0.0 7336 3464 ?