Mailing List Archive

bayes-learn problem
Greetings all -- first post to the list.

I noticed in my cron-log, that my cronjob for sa-learn, is returning
errors. Just started after upgrading my spamassassin. FWIW, I'm using
Debian 'Testing'. Here is the output run in debug mode, apologies in
advance for the copious output Hopefully this will mean something to
someone;

sa-learn -D --spam --mbox /home/steve123/Mail/spam
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 '/usr/local/bin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/bin/X11', keeping.
debug: PATH included '/usr/games', keeping.
debug: Final PATH set to:
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
debug: using "/usr/share/spamassassin" for default rules dir
debug: using "/etc/spamassassin" for site rules dir
debug: using "/home/steve123/.spamassassin/user_prefs" for user
prefs file
debug: bayes: 17421 tie-ing to DB file R/O
/home/steve123/.spamassassin/bayes_toks
Cannot open bayes databases
/home/steve123/.spamassassin/bayes_* R/O: tie failed:
debug: Score set 0 chosen.
debug: Initialising learner
debug: Initialising learner
debug: Syncing Bayes journal and expiring old tokens...
debug: lock: 17421 created
/home/steve123/.spamassassin/bayes.lock.barnyard.sweetpig.dyndns.org.17421
debug: lock: 17421 trying to get lock on
/home/steve123/.spamassassin/bayes with 0 retries
debug: lock: 17421 link to
/home/steve123/.spamassassin/bayes.lock: link ok
debug: bayes: 17421 tie-ing to DB file R/W
/home/steve123/.spamassassin/bayes_toks
debug: unlock: 17421 unlink
/home/steve123/.spamassassin/bayes.lock
Cannot open bayes databases
/home/steve123/.spamassassin/bayes_* R/W: tie failed: File
exists
debug: Syncing complete.
debug: Removing Markup
debug: Learning Spam
debug: decoded MIME header: "Ïðåäëîæåíèå ïî
Âèçèòêàì,Ïå÷àòÿì,Òèðàæèðîâàíèþ"
debug: uri tests: Done uriRE
debug: lock: 17421 created
/home/steve123/.spamassassin/bayes.lock.barnyard.sweetpig.dyndns.org.17421
debug: lock: 17421 trying to get lock on
/home/steve123/.spamassassin/bayes with 0 retries
debug: lock: 17421 link to
/home/steve123/.spamassassin/bayes.lock: link ok
debug: bayes: 17421 tie-ing to DB file R/W
/home/steve123/.spamassassin/bayes_toks
debug: unlock: 17421 unlink
/home/steve123/.spamassassin/bayes.lock
Cannot open bayes databases
/home/steve123/.spamassassin/bayes_* R/W: tie failed: File
exists
Learned from 0 message(s) (1 message(s) examined).
debug: bayes: 17421 untie-ing
debug: bayes: 17421 untie-ing db_toks
ERROR: the Bayes learn function returned an error, please
re-run with -D for more information

Thanks for reading, suggestions appreciated.

--
S.Allen
-------------------------------------------
barnyard Friday Mar 05 2004 01:55:01 PM EST
-------------------------------------------
1 + 1 = 3, for large values of 1.
Re: bayes-learn problem [ In reply to ]
On Fri, Mar 05, 2004 at 02:01:59PM -0500 or thereabouts, Stephen Allen wrote:
> Greetings all -- first post to the list.
>
> I noticed in my cron-log, that my cronjob for sa-learn, is returning
> errors. Just started after upgrading my spamassassin. FWIW, I'm using
> Debian 'Testing'. Here is the output run in debug mode, apologies in
> advance for the copious output Hopefully this will mean something to
> someone;
>
> sa-learn -D --spam --mbox /home/steve123/Mail/spam
> debug: Score set 0 chosen.
> debug: running in taint mode? yes
> debug: Running in taint mode, removing unsafe env vars, and
> resetting PATH

<snip>

For the archives:

I don't know what the issue was, however deleting 'bayes_seen' &
'bayes_toks' in ~Home fixed the problem. One of those things...

Thanks for the off-list suggestions.

--
S.Allen
-------------------------------------------
barnyard Friday Mar 05 2004 08:50:02 PM EST
-------------------------------------------
A mathematician is a device for turning coffee into theorems.
-- P. Erdos