You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by AltGrendel <al...@exit0.us> on 2004/08/09 21:00:04 UTC

Can't seem to rebuild bayes database.

Prolog:

I'm running a fully patched RedHat 7.3 system, qmail, qmail-scanner,
Spamassassin 2.64 and SpamCopURI 0.22.


Problem:

I started having problems with the bayse database always hitting on
BAYES_99 on all inbound email. So thinking that it had been poisoned, I
decided to rebuild it with my corpus.

Instead of rebuilding, I get the following:

ERROR: the Bayes learn function returned an error, please re-run with -D
for more infor mation
[spamc@spam-gateway spamc]$ /usr/bin/sa-learn --spam --showdots --dir
/home/spamc/spam/ --showdots -D
debug: Score set 0 chosen.
debug: running in taint mode? yes
debug: Running in taint mode, removing unsafe env vars, and resetting
PATH
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/usr/bin/X11', keeping.
debug: PATH included '/usr/X11R6/bin', keeping.
debug: PATH included '/home/spamc/bin', which doesn't exist, dropping.
debug: Final PATH set to:
/bin:/usr/bin:/usr/local/bin:/usr/bin/X11:/usr/X11R6/bin
debug: using "/usr/share/spamassassin" for default rules dir
debug: using "/etc/mail/spamassassin" for site rules dir
debug: using "/home/spamc/.spamassassin/user_prefs" for user prefs file
debug: Score set 0 chosen.
debug: Initialising learner
debug: Initialising learner
debug: Learning Spam
 
Learned from 0 message(s) (1 message(s) examined).
ERROR: the Bayes learn function returned an error, please re-run with -D
for more information
[spamc@spam-gateway spamc]$ spamassassin -D --lint
debug: Score set 0 chosen.
debug: running in taint mode? yes
debug: Running in taint mode, removing unsafe env vars, and resetting
PATH
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/usr/bin/X11', keeping.
debug: PATH included '/usr/X11R6/bin', keeping.
debug: PATH included '/home/spamc/bin', which doesn't exist, dropping.
debug: Final PATH set to:
/bin:/usr/bin:/usr/local/bin:/usr/bin/X11:/usr/X11R6/bin
debug: ignore: using a test message to lint rules
debug: using "/usr/share/spamassassin" for default rules dir
debug: using "/etc/mail/spamassassin" for site rules dir
debug: using "/home/spamc/.spamassassin" for user state dir
debug: using "/home/spamc/.spamassassin/user_prefs" for user prefs file
debug: Score set 1 chosen.
debug: Initialising learner
debug: running header regexp tests; score so far=0
debug: running body-text per-line regexp tests; score so far=2.485
debug: running raw-body-text per-line regexp tests; score so far=2.485
debug: running uri tests; score so far=2.485
debug: uri tests: Done uriRE
debug: running full-text regexp tests; score so far=2.485
debug: DCCifd is not available: no r/w dccifd socket found.
debug: all '*From' addrs: ignore@compiling.spamassassin.taint.org
debug: all '*To' addrs:
debug: is Net::DNS::Resolver available? yes
debug: trying (3) ebay.com...
debug: looking up MX for 'ebay.com'
debug: MX for 'ebay.com' exists? 1
debug: MX lookup of ebay.com succeeded => Dns available (set
dns_available to hardcode)
debug: is DNS available? 1
debug: running meta tests; score so far=2.485
debug: is spam? score=2.485 required=5 tests=DATE_MISSING,NO_REAL_NAME



I have searched through the archives and couldn't find anything about
this problem.

Any help would be appreciated.

-------------------------------------------------------- 
This is the LAST time I take travel suggestions from Ray Bradbury!
--------------------------------------------------------


Re: Can't seem to rebuild bayes database.

Posted by AltGrendel <al...@exit0.us>.
On Mon, 2004-08-09 at 15:44, Matt Kettler wrote:
> At 03:00 PM 8/9/2004, AltGrendel wrote:
> >I started having problems with the bayse database always hitting on
> >BAYES_99 on all inbound email. So thinking that it had been poisoned, I
> >decided to rebuild it with my corpus.
> >
> >Instead of rebuilding, I get the following:
> 
> Taking one step back.. what did you do BEFORE you called sa-learn to try to 
> rebuild?
> 
> (ie: exactly what did you do with your old bayes database)

That's the confusing part, I've been out for a month (foot surgery) and
everything has been on automatic. This all started this past Thursday as
near as I can figure. I was running SA 2.6.3 and SpamCopURI 0.19. So as
the spamc user, I ran check_bayes_db and got the following:

0.000        0        0        0  non-token data: db format = on-the-fly
probs, expiry, scan-counting
0.000        0        0        0  non-token data: nspam
0.000        0        0        0  non-token data: nham
0.000        0        0        0  non-token data: ntokens
0.000        0        0        0  non-token data: oldest age
0.000        0        0        0  non-token data: current scan-count
0.000        0        0        0  non-token data: last expiry scan-count
0.500        5        0     4139  doctors
0.500        1        0    29682  splintery
0.500       13        0     2816  themselves
0.500        1        0     5466  cherish
0.500        1        0     3274  managing
0.500        7        0     5462  created
0.500        7        0     4339  N:H*M:OEANbNN
0.500       20        0     4297  Prozent
0.500        6        0     3848  health-care
0.500        8        0     4297  al-Harbi's
0.500       46        0    20293  registered
0.500        2        0    51037  68.00
0.500        2        0    43018  retrorocket
0.500        2        0    50095  H*M:sk:0vNrYrr
0.500        1        0    31796  sk:pS3wbN3
0.500        4        0     1257  mature
0.500        3        0    43795  Gamache
0.500        1        0    31995  H*c:sk:1uhZLYr
0.500        1        0     2906  H*r:SMTPD32-7.12
0.500       81        0    20370  Opt-out
0.500        2        0    58226  U*7xxUw0IXhQUi
<snip out excessive tokens>

After that, I tried sa-learn --rebuild, then sa-learn --force-expire. 
I have also moved the files off to a subdirectory and tried to build a
new db with the same commands from the previous email.


--------------------------------------------------------
 Some parts of the past must be preserved, and some of the future
prevented at all costs.
--------------------------------------------------------


Re: Can't seem to rebuild bayes database.

Posted by Matt Kettler <mk...@evi-inc.com>.
At 03:00 PM 8/9/2004, AltGrendel wrote:
>I started having problems with the bayse database always hitting on
>BAYES_99 on all inbound email. So thinking that it had been poisoned, I
>decided to rebuild it with my corpus.
>
>Instead of rebuilding, I get the following:

Taking one step back.. what did you do BEFORE you called sa-learn to try to 
rebuild?

(ie: exactly what did you do with your old bayes database)