> On Wed, Mar 10, 2004 at 11:58:59PM +0100, Andy Spiegl wrote:
> > 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?
>
> Hahahahaha. Sorry, that was pretty funny on this end. Yes, it could
> very much have broken Bayes. Specifically lack of or new version
> of DB_File.
Hm, actually I don't think it's that funny. I was assuming that a minor
upgrade like that wouldn't completely break compatibility with older
databases. At least I would have expected a warning or hint during the
upgrade of perl. :-(
> > /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)
>
> Hrm. Unless you're running on older libdb, you'll want to upgrade those
> via db_upgrade.
Hm, I'm not sure what you are referring to. I've got various version of
libdb installed:
ii libdb1-compat 2.1.3-7 The Berkeley database routines
ii libdb2 2.7.7.0-7 The Berkeley database routines
ii libdb2-util 2.7.7.0-7 The Berkeley database routines
ii libdb3 3.2.9-19 Berkeley v3 Database Libraries
ii libdb3++c102 3.2.9-19 Berkeley v3 Database Libraries
ii libdb3-dev 3.2.9-19 Berkeley v3 Database Libraries
ii libdb3-util 3.2.9-16 Berkeley v3 Database Utilities
ii libdb4.0 4.0.14-1.3 Berkeley v4.0 Database Librari
ii libdb4.1 4.1.25-16 Berkeley v4.1 Database Librari
ii libdbaudiolib0 0.9.8-4 Communicate to the DBMix audio
ii libdbh1.0-1 1.0.15-1 Creates disk based hashtables
ii libdbi-perl 1.35-1 The Perl5 Database Interface b
I can't find any libdb for v5, nor can I find the mentioned "db_upgrade".
Ah, wait there is a db3_upgrade in the libdb3-util package. Yes, that
worked! That easy once you know how to do it. :-)
> > Cannot open bayes databases /etc/spamassassin/data/bayes_* R/W: tie failed:
> > File exists
Maybe this error message could be changed to something more helpful?
Like e.g.: "tie failed: you might have to upgrade your DB files with db_upgrade"
Thanks,
Andy.
--
o _ _ _
------- __o __o /\_ _ \\o (_)\__/o (_) -o)
----- _`\<,_ _`\<,_ _>(_) (_)/<_ \_| \ _|/' \/ /\\
---- (_)/ (_) (_)/ (_) (_) (_) (_) (_)' _\o_ _\_v
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Science owes more to the steam engine than the steam engine owes to science
-- James Bryant Conant 1983-1978, Science & Common Sense 1961 New Haven