4.26.7, bayes rebuild, confused.

Rose, Bobby brose at MED.WAYNE.EDU
Mon Feb 2 00:25:14 GMT 2004


It looks like MS is trying to run a rebuild on every scan. 

Feb  1 18:19:02 eeyore MailScanner[13579]: SpamAssassin Bayes database
rebuild starting
Feb  1 18:19:12 eeyore MailScanner[13587]: SpamAssassin Bayes database
rebuild starting
Feb  1 18:19:22 eeyore MailScanner[13610]: SpamAssassin Bayes database
rebuild starting
Feb  1 18:19:32 eeyore MailScanner[13615]: SpamAssassin Bayes database
rebuild starting
Feb  1 18:19:42 eeyore MailScanner[13617]: SpamAssassin Bayes database
rebuild starting
Feb  1 18:19:52 eeyore MailScanner[13630]: SpamAssassin Bayes database
rebuild starting
Feb  1 18:20:03 eeyore MailScanner[13676]: SpamAssassin Bayes database
rebuild starting
Feb  1 18:20:12 eeyore MailScanner[13710]: SpamAssassin Bayes database
rebuild starting
Feb  1 18:20:22 eeyore MailScanner[13742]: SpamAssassin Bayes database
rebuild starting
Feb  1 18:20:32 eeyore MailScanner[13748]: SpamAssassin Bayes database
rebuild starting
Feb  1 18:20:42 eeyore MailScanner[13755]: SpamAssassin Bayes database
rebuild starting
Feb  1 18:20:52 eeyore MailScanner[13762]: SpamAssassin Bayes database
rebuild starting
Feb  1 18:21:02 eeyore MailScanner[13771]: SpamAssassin Bayes database
rebuild starting

-----Original Message-----
From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
Behalf Of Rose, Bobby
Sent: Sunday, February 01, 2004 6:42 PM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: 4.26.7, bayes rebuild, confused.

I get the same thing, even if Rebuild Bayes Every is set to 0.  I've
even removed by bayes and started over from scratch.  The bayes files
haven't been touched at all since I recreated them.  If I disabled Bayes
in the SA conf, it still says it's skipping for that reason.

I'm also on Solaris but v8 with SA 2.63

-=B



-----Original Message-----
From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
Behalf Of Julian Field
Sent: Sunday, February 01, 2004 4:34 PM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: 4.26.7, bayes rebuild, confused.

At 20:39 01/02/2004, you wrote:
>Julian,
>
>    I tried an upgrade from 4.25-14 to 4.26.7.  Setup: Sol 9, SA 2.63.

>I got gobs of:
>
>    Skipping SpamAssassin while waiting for Bayes database to rebuild

This should only happen every day or so. Depends on your setting of
"Rebuild Bayes Every".
How often do you get a bunch of these?

>messages with 4.26.7.  The zero byte file /tmp/MS.bayes.rebuild.lock 
>appeared after I restarted MS, and it never seems to go away.

That's fine. It's a lock file that each of the child processes will
maintain a shared lock on.

>   I
>tried things with both "Rebuild Bayes Every = 0" and with this set to 
>86400.  Same deal.  I'm afraid to try "Wait During Bayes Rebuild = yes"
>because if it never rebuilds then no mail gets delivered, right?

You'll soon see.


>A rebuild should only take a few seconds, right?

It can take a minute or two if your Bayes database is quite large.

>I tried stopping MS, removing /tmp/MS.bayes*, restarting -- still no 
>luck.  I've fallen back to 4.25-14 for the moment.
>
>BTW, I have a cron job to do bayes spam/ham learning with
>
>   $SALEARN --prefs-file=$PREFS --rebuild  --force-expire
>
>at the top.  Should I still do this rebuild and force-expire in this 
>script?

No. My scheduled rebuild is there to replace this. It is designed to
solve the bayes_toks.new problem by locking out SpamAssassin during the
rebuild without causing SA to just timeout. Instead of SA timing out, it
skips it or waits for it to complete.
--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz MailScanner thanks
transtec Computers for their support PGP footprint: EE81 D763 3DB0 0BFD
E1DC 7222 11F6 5947 1415 B654




More information about the MailScanner mailing list