On Thu, Oct 23, 2003 at 06:52:47PM +0300, Juha Nieminen wrote:
> Cannot open bayes databases /home/warp/.spamassassin/bayes_* R/O: tie failed:
> Cannot open bayes databases /home/warp/.spamassassin/bayes_* R/W: tie failed:
> Cannot open bayes databases /home/warp/.spamassassin/bayes_* R/W: tie failed:

This typically means there's a problem from DB_File which isn't setting
the error appropriately.

>   Until now I have been able to fix this problem by waiting for a day
> and then running "sa-learn --rebuild" which fixes the bayes database files.
> I don't know why I have to wait a day, but sa-learn won't work earlier
> (but will print messages like above).

Are you sure bayes is working at other times?  It sounds like bayes is
trying to rebuild/expire, that fails, which locks the DB (it's seperate
from the bayes.lock file).  That should time out after 5 minutes though, iirc.

>   There are no temporary files in the ~./spamassassin, but the files seem
> ok (and no, there's still no lock file) and spamassassin is functional
> except that it does not perform the bayesian scoring.

It would be useful if you show some ls output here.  "temporary files"
isn't specific.

>   When I make a "sa-learn --rebuild" I get those "tie failed" messages
> (with no reason why they failed). The same thing happens when I look
> what spamassassin is doing (with "spamassassin -D").

You do have DB_File installed right?

>   Everyone I know who uses the bayesian classifier with spamassassin have
> reported to me that the database files in their ~/.spamassassin directory
> take something like 1-2 megabytes (some of these people have given tens
> of thousands of spams and non-spams to sa-learn). It does not matter
> which version of spamassassin they are using (whether or not 2.60 or
> an earlier one).

Well, number of messages is irrelevent.  It's # of tokens that matters.
Size also depends on token size.  Mine tends to be 10-20MB for up to
~600k tokens.

-- 
Randomly Generated Tagline:
Dan Quayle's Library Burns!: Both books lost.

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to