You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "Tan, William" <wt...@ezecastle.com> on 2004/09/27 15:39:09 UTC

Problem with bayes autolearn on 3.0.0

I'm having a problem with autolearn on a newly installed system.  It seems as though the Bayes database is not recognized.  I get messages about autolearn failing like this:

Sep 27 02:16:00 host spamd[2113]: result: Y 22 - COMBINED_FROM,DCC_CHECK,DIGEST_MULTIPLE,MIME_BOUND_DD_DIGITS,RAZOR2_CF_RANGE_51_100,RAZOR2_CHECK,SARE_HEAD_SPAM,SPF_HELO_PASS,URIBL_AB_SURBL,URIBL_OB_SURBL,URIBL_SC_SURBL,URIBL_WS_SURBL,X_MESSAGE_INFO scantime=11.5,size=1533,mid=<32...@221.188.40.172>,autolearn=failed 


I'm running SpamAssassin 3.0.0 as a content filter for postfix 2.1.5 on Fedora Core Release 2.  DB_File is installed.  I tried rebuilding & syncing the bayes database.
	
I started spamd in debug mode (as root), and got this from syslog:

Sep 27 09:00:00 host spamd[1881]: debug: config: read file /usr/share/spamassassin/23_bayes.cf 
Sep 27 09:00:01 host spamd[1881]: debug: bayes: 1881 tie-ing to DB file R/O /etc/mail/spamassassin/bayes_toks 
Sep 27 09:00:01 host spamd[1881]: debug: bayes: 1881 tie-ing to DB file R/O /etc/mail/spamassassin/bayes_seen 
Sep 27 09:00:01 host spamd[1881]: debug: bayes: found bayes db version 3 
Sep 27 09:00:01 host spamd[1881]: debug: bayes: Not available for scanning, only 0 spam(s) in Bayes DB < 200 
Sep 27 09:00:01 host spamd[1881]: debug: bayes: 1881 untie-ing 
Sep 27 09:00:01 host spamd[1881]: debug: bayes: 1881 untie-ing db_toks 
Sep 27 09:00:01 host spamd[1881]: debug: bayes: 1881 untie-ing db_seen 
Sep 27 09:00:01 host spamd[1881]: debug: bayes: no dbs present, cannot tie DB R/O: /tmp/spamd-1881-init/.spamassassin/bayes_toks 


I believe that the last line is representative of my problem.  I did upgrade an existing system which is not having any problems.  Can anyone lend any advice?  Thanks in advance.

Other info:

[root@host spamassassin]# ls -l bayes*
-rw-rw-rw-  1 root root 12288 Sep 27 07:09 bayes_seen
-rw-rw-rw-  1 root root 12288 Sep 27 07:09 bayes_toks


William W. Tan 
Chief Technology Officer 
Eze Castle Integration, Inc. 
50 Federal St., Suite 400 
Boston, MA 02110 
(617) 217-3006
wtan@ezecastle.com 

Re: Problem with bayes autolearn on 3.0.0

Posted by Michael Parker <pa...@pobox.com>.
On Mon, Sep 27, 2004 at 09:39:09AM -0400, Tan, William wrote:
> Sep 27 09:00:01 host spamd[1881]: debug: bayes: no dbs present, cannot tie DB R/O: /tmp/spamd-1881-init/.spamassassin/bayes_toks 
> 
> 

This message is from the initial spamd startup, can you capture more
debug output?

Michael

Re: Problem with bayes autolearn on 3.0.0

Posted by Matt Kettler <mk...@comcast.net>.
At 09:39 AM 9/27/2004 -0400, Tan, William wrote:
>I'm having a problem with autolearn on a newly installed system.  It seems 
>as though the Bayes database is not recognized.  I get messages about 
>autolearn failing like this:
>
>Sep 27 02:16:00 host spamd[2113]: result: Y 22 - 
>COMBINED_FROM,DCC_CHECK,DIGEST_MULTIPLE,MIME_BOUND_DD_DIGITS,RAZOR2_CF_RANGE_51_100,RAZOR2_CHECK,SARE_HEAD_SPAM,SPF_HELO_PASS,URIBL_AB_SURBL,URIBL_OB_SURBL,URIBL_SC_SURBL,URIBL_WS_SURBL,X_MESSAGE_INFO 
>scantime=11.5,size=1533,mid=<32...@221.188.40.172>,autolearn=failed 
>

autolearn=failed does not usualy mean a catastrophic failure.

If another process is already writing the bayes database, SA will skip 
learning rather than logjam your mail queue waiting for the lock. This is a 
"failure" of a one-shot, non-critical operation.

However, if *all* of your messages get failed, and none are ever 
autolearned at all, you might have a bayes DB the spamd process can't get 
RW access to.