Mailing List Archive

Borked Bayes db?
I know I've read a solution for this but can't find it to save my life,
bayes was running great 3 weeks ago and now:

Cannot open bayes databases
/var/CommuniGate/Settings/SpamAssassin/.spamassassin/bayes_* R/W: lock
failed: File exists

And now there are way too many "0's" where I'm positive there were none.

mail:/etc/mail/spamassassin # sa-learn --dump magic
0.000 0 2 0 non-token data: bayes db version
0.000 0 1202 0 non-token data: nspam
0.000 0 21988 0 non-token data: nham
0.000 0 153921 0 non-token data: ntokens
0.000 0 1043193617 0 non-token data: oldest atime
0.000 0 1077303830 0 non-token data: newest atime
0.000 0 1077302807 0 non-token data: last journal sync
atime
0.000 0 1077300113 0 non-token data: last expiry atime
0.000 0 2764800 0 non-token data: last expire atime
delta
0.000 0 1617 0 non-token data: last expire
reduction count

What was the way to rebuild bayes without having to reinstall SA?

Thanks in advance

Todd
Re: Borked Bayes db? [ In reply to ]
On Fri, Feb 20, 2004 at 02:03:25PM -0600, Todd Schuldt wrote:
> Cannot open bayes databases
> /var/CommuniGate/Settings/SpamAssassin/.spamassassin/bayes_* R/W: lock
> failed: File exists

Ok, means a lock file exists.

> And now there are way too many "0's" where I'm positive there were none.
>
> mail:/etc/mail/spamassassin # sa-learn --dump magic
> 0.000 0 2 0 non-token data: bayes db version
> 0.000 0 1202 0 non-token data: nspam
> 0.000 0 21988 0 non-token data: nham
> 0.000 0 153921 0 non-token data: ntokens
> 0.000 0 1043193617 0 non-token data: oldest atime
> 0.000 0 1077303830 0 non-token data: newest atime
> 0.000 0 1077302807 0 non-token data: last journal sync
> atime
> 0.000 0 1077300113 0 non-token data: last expiry atime
> 0.000 0 2764800 0 non-token data: last expire atime
> delta
> 0.000 0 1617 0 non-token data: last expire
> reduction count

looks fine. in the magic data, the only column that matters is #3.

> What was the way to rebuild bayes without having to reinstall SA?

rm -f bayes_*

--
Randomly Generated Tagline:
De-fault! The two sweetest words in the English language.

-- Homer Simpson
Deep Space Homer