My SA (2.63) installation has been working great for months now,
but today sa-learn started complaining like this:
condor:~>sa-learn --showdots --spam --mbox abc
Cannot open bayes databases /etc/spamassassin/data/bayes_* R/O: tie failed:
Cannot open bayes databases /etc/spamassassin/data/bayes_* R/W: tie failed: File exists
Cannot open bayes databases /etc/spamassassin/data/bayes_* R/W: tie failed: File exists
I didn't change anything of SA but I did upgrade perl today from 5.6.1-8.6
to 5.8.3-2 (Debian packages). Could that have broken Bayes?
The files seem okay and:
condor:~>file /etc/spamassassin/data/bayes_*
/etc/spamassassin/data/bayes_seen: Berkeley DB (Hash, version 5, native byte-order)
/etc/spamassassin/data/bayes_toks: Berkeley DB (Hash, version 5, native byte-order)
Running sa-learn with -D doesn't help me much either:
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 '/home/spiegl/bin', keeping.
debug: PATH included '/home/spiegl/local/bin', keeping.
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/usr/local/bin/X11', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/sbin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/usr/local/sbin', keeping.
debug: PATH included '/usr/bin/X11', keeping.
debug: PATH included '/usr/games', keeping.
debug: Final PATH set to: /home/spiegl/bin:/home/spiegl/local/bin:/usr/local/bin:/usr/local/bin/X11:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/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/spiegl/.spamassassin/user_prefs" for user prefs file
debug: bayes: 21001 tie-ing to DB file R/O /etc/spamassassin/data/bayes_toks
Cannot open bayes databases /etc/spamassassin/data/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: 21001 created /etc/spamassassin/data/bayes.lock.condor.int.spiegl.de.21001
debug: lock: 21001 trying to get lock on /etc/spamassassin/data/bayes with 0 retries
debug: lock: 21001 link to /etc/spamassassin/data/bayes.lock: link ok
debug: bayes: 21001 tie-ing to DB file R/W /etc/spamassassin/data/bayes_toks
debug: unlock: 21001 unlink /etc/spamassassin/data/bayes.lock
Cannot open bayes databases /etc/spamassassin/data/bayes_* R/W: tie failed: File exists
debug: Syncing complete.
debug: Removing Markup
debug: Learning Spam
debug: uri tests: Done uriRE
debug: lock: 21001 created /etc/spamassassin/data/bayes.lock.condor.int.spiegl.de.21001
debug: lock: 21001 trying to get lock on /etc/spamassassin/data/bayes with 0 retries
debug: lock: 21001 link to /etc/spamassassin/data/bayes.lock: link ok
debug: bayes: 21001 tie-ing to DB file R/W /etc/spamassassin/data/bayes_toks
debug: unlock: 21001 unlink /etc/spamassassin/data/bayes.lock
Cannot open bayes databases /etc/spamassassin/data/bayes_* R/W: tie failed: File exists
Learned from 0 message(s) (1 message(s) examined).
debug: bayes: 21001 untie-ing
debug: bayes: 21001 untie-ing db_toks
ERROR: the Bayes learn function returned an error, please re-run with -D for more information
And it exits with code 17.
Thanks for any suggestion,
Andy.
--
o _ _ _
------- __o __o /\_ _ \\o (_)\__/o (_) -o)
----- _`\<,_ _`\<,_ _>(_) (_)/<_ \_| \ _|/' \/ /\\
---- (_)/ (_) (_)/ (_) (_) (_) (_) (_)' _\o_ _\_v
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This is the final test of a gentleman: his respect for those
who can be of no possible service to him. -- William Lyon Phelps
but today sa-learn started complaining like this:
condor:~>sa-learn --showdots --spam --mbox abc
Cannot open bayes databases /etc/spamassassin/data/bayes_* R/O: tie failed:
Cannot open bayes databases /etc/spamassassin/data/bayes_* R/W: tie failed: File exists
Cannot open bayes databases /etc/spamassassin/data/bayes_* R/W: tie failed: File exists
I didn't change anything of SA but I did upgrade perl today from 5.6.1-8.6
to 5.8.3-2 (Debian packages). Could that have broken Bayes?
The files seem okay and:
condor:~>file /etc/spamassassin/data/bayes_*
/etc/spamassassin/data/bayes_seen: Berkeley DB (Hash, version 5, native byte-order)
/etc/spamassassin/data/bayes_toks: Berkeley DB (Hash, version 5, native byte-order)
Running sa-learn with -D doesn't help me much either:
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 '/home/spiegl/bin', keeping.
debug: PATH included '/home/spiegl/local/bin', keeping.
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/usr/local/bin/X11', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/sbin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/usr/local/sbin', keeping.
debug: PATH included '/usr/bin/X11', keeping.
debug: PATH included '/usr/games', keeping.
debug: Final PATH set to: /home/spiegl/bin:/home/spiegl/local/bin:/usr/local/bin:/usr/local/bin/X11:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/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/spiegl/.spamassassin/user_prefs" for user prefs file
debug: bayes: 21001 tie-ing to DB file R/O /etc/spamassassin/data/bayes_toks
Cannot open bayes databases /etc/spamassassin/data/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: 21001 created /etc/spamassassin/data/bayes.lock.condor.int.spiegl.de.21001
debug: lock: 21001 trying to get lock on /etc/spamassassin/data/bayes with 0 retries
debug: lock: 21001 link to /etc/spamassassin/data/bayes.lock: link ok
debug: bayes: 21001 tie-ing to DB file R/W /etc/spamassassin/data/bayes_toks
debug: unlock: 21001 unlink /etc/spamassassin/data/bayes.lock
Cannot open bayes databases /etc/spamassassin/data/bayes_* R/W: tie failed: File exists
debug: Syncing complete.
debug: Removing Markup
debug: Learning Spam
debug: uri tests: Done uriRE
debug: lock: 21001 created /etc/spamassassin/data/bayes.lock.condor.int.spiegl.de.21001
debug: lock: 21001 trying to get lock on /etc/spamassassin/data/bayes with 0 retries
debug: lock: 21001 link to /etc/spamassassin/data/bayes.lock: link ok
debug: bayes: 21001 tie-ing to DB file R/W /etc/spamassassin/data/bayes_toks
debug: unlock: 21001 unlink /etc/spamassassin/data/bayes.lock
Cannot open bayes databases /etc/spamassassin/data/bayes_* R/W: tie failed: File exists
Learned from 0 message(s) (1 message(s) examined).
debug: bayes: 21001 untie-ing
debug: bayes: 21001 untie-ing db_toks
ERROR: the Bayes learn function returned an error, please re-run with -D for more information
And it exits with code 17.
Thanks for any suggestion,
Andy.
--
o _ _ _
------- __o __o /\_ _ \\o (_)\__/o (_) -o)
----- _`\<,_ _`\<,_ _>(_) (_)/<_ \_| \ _|/' \/ /\\
---- (_)/ (_) (_)/ (_) (_) (_) (_) (_)' _\o_ _\_v
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This is the final test of a gentleman: his respect for those
who can be of no possible service to him. -- William Lyon Phelps