Mailing List Archive

sa-learn can't
A different admin built our original bayes database, but I've moved
it aside and am trying to build a new one (various reasons). However,
when I try to give sa-learn the first message, I get the following
error (running as our spamd user):

-----------------------------------
% sa-learn --mbox --showdots -D --spam /tmp/spamfood2
debug: Score set 0 chosen.
debug: running in taint mode? no
debug: using "/opt/spamassassin/share/spamassassin" for default rules dir
debug: using "/opt/spamassassin/etc/mail/spamassassin" for site rules dir
debug: using "/var/tmp/.spamassassin/user_prefs" for user prefs file
debug: Not allowing user rules!
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
-----------------------------------

"/tmp/spamfood2" is a unix mail file with a single message in it.
I've tried several different mail messages, all with the same
result.

Note that this run was with -D, but I'm not seeing anything indicating
what may be wrong.

Can anyone see what I'm missing? Or how to get further info? I tried
"truss", but if there was any useful info there it was lost in the
noise.

Thanks...

-glenn
Re: sa-learn can't [ In reply to ]
On Fri, Mar 12, 2004 at 12:44:41PM -0800, little@cs.ucsd.edu wrote:
> Can anyone see what I'm missing? Or how to get further info? I tried
> "truss", but if there was any useful info there it was lost in the
> noise.

You have DB_File installed and functioning, correct?

--
Randomly Generated Tagline:
No, I'm not going to explain it. If you can't figure it out, you didn't
want to know anyway... :-)
-- Larry Wall in <1991Aug7.180856.2854@netlabs.com>
Re: sa-learn can't [ In reply to ]
Well.... turns out that if you have "use_bayes"
turned off in your config file, sa-learn fails
with the below symptom. I thought we'd run for a while with
bayes off while I was "teaching" the bayes filters,
but I guess not.

Sorry all!

-glenn

little@cs.ucsd.edu wrote:

> A different admin built our original bayes database, but I've moved
> it aside and am trying to build a new one (various reasons). However,
> when I try to give sa-learn the first message, I get the following
> error (running as our spamd user):
>
> -----------------------------------
> % sa-learn --mbox --showdots -D --spam /tmp/spamfood2
> debug: Score set 0 chosen.
> debug: running in taint mode? no
> debug: using "/opt/spamassassin/share/spamassassin" for default rules dir
> debug: using "/opt/spamassassin/etc/mail/spamassassin" for site rules dir
> debug: using "/var/tmp/.spamassassin/user_prefs" for user prefs file
> debug: Not allowing user rules!
> 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
> -----------------------------------
>
> "/tmp/spamfood2" is a unix mail file with a single message in it.
> I've tried several different mail messages, all with the same
> result.
>
> Note that this run was with -D, but I'm not seeing anything indicating
> what may be wrong.
>
> Can anyone see what I'm missing? Or how to get further info? I tried
> "truss", but if there was any useful info there it was lost in the
> noise.
>
> Thanks...
>
> -glenn