On Wed, Jan 25, 2006 at 04:04:28AM -0800, Loren Wilton wrote: > > Jan 25 12:31:13 alpha spamd[2021]: bayes: write failed to Bayes > > journal /etc/mail/spamassassin/BAYES/bayes_journal (0 of 263856)! Jan > > 25 12:31:13 alpha spamd[2021]: Exiting subroutine via last > This still looks like a quota or permissions problem, or maybe a missing > home directory for some user.
FWIW, the error occurs when the journal has been opened for writing (so in theory the permissions and such should be ok), but any attempt to actually put data into the journal fails, specifically that syswrite() (therefore the system's write() function) returns an error. I've attached a patch which you could use against M::SA::BayesStore::DBM which makes that error message include the system's error string which should hopefully be useful. -- Randomly Generated Tagline: A nod's as good as a wink to a blind bat!
Index: lib/Mail/SpamAssassin/BayesStore/DBM.pm =================================================================== --- lib/Mail/SpamAssassin/BayesStore/DBM.pm (revision 366688) +++ lib/Mail/SpamAssassin/BayesStore/DBM.pm (working copy) @@ -1122,8 +1122,12 @@ # argh, write failure, give up if (!defined $len || $len < 0) { - $len = 0 unless (defined $len); - warn "bayes: write failed to Bayes journal $path ($len of $nbytes)!\n"; + my $err = ''; + if (!defined $len) { + $len = 0; + $err = " ($!)"; + } + warn "bayes: write failed to Bayes journal $path ($len of $nbytes)!$err\n"; last; }
pgpFzhC4hzYAx.pgp
Description: PGP signature