You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Dan <ka...@gmail.com> on 2004/09/20 18:47:21 UTC
bayes problem after Berkeley DB upgrade
I upgraded Berkeley DB from db3 to db4 recently (as well as upgrading
Perl, Postfix, installing Amavis, and a score of modules) and now
Spamassassin is giving an error about the bayes db's:
Cannot open bayes_path /root/.spamassassin/bayes R/O: Inappropriate
ioctl for device
My assumption is that the bayes db's need to be rebuilt, but I am not
sure how to do that. If I delete all of them, that will make the
error go away, but I'll lose the data. I tried running 'sa-learn
--rebuild' and the db4 utility db_upgrade, but neither seemed to
accomplish anything.
Does anyone have a good solution?
Thanks,
Dan
Re: bayes problem after Berkeley DB upgrade
Posted by Dan <ka...@gmail.com>.
I updated DB_File and all of the DB tools, but I still got errors. I
used db_upgrade, db_dump, & db_load and they said the db's were
unknown file types.
So I just blew all the databases away.
On Mon, 20 Sep 2004 12:51:14 -0400, Theo Van Dinter <fe...@kluge.net> wrote:
>
>
> On Mon, Sep 20, 2004 at 12:47:21PM -0400, Dan wrote:
> > I upgraded Berkeley DB from db3 to db4 recently (as well as upgrading
> > Perl, Postfix, installing Amavis, and a score of modules) and now
> > Spamassassin is giving an error about the bayes db's:
> >
> > My assumption is that the bayes db's need to be rebuilt, but I am not
> > sure how to do that. If I delete all of them, that will make the
> > error go away, but I'll lose the data. I tried running 'sa-learn
> > --rebuild' and the db4 utility db_upgrade, but neither seemed to
> > accomplish anything.
>
> You'll want to upgrade the DB_File perl module as well. In theory,
> a db_upgrade or db_dump|db_load ought to fix the issue.
>
> --rebuild doesn't do much for a BDB upgrade since it won't be able to
> read the original DB to rebuild in the new format.
>
> --
> Randomly Generated Tagline:
> egg n. liquid chicken
>
>
>
>
Re: bayes problem after Berkeley DB upgrade
Posted by Theo Van Dinter <fe...@kluge.net>.
On Mon, Sep 20, 2004 at 12:47:21PM -0400, Dan wrote:
> I upgraded Berkeley DB from db3 to db4 recently (as well as upgrading
> Perl, Postfix, installing Amavis, and a score of modules) and now
> Spamassassin is giving an error about the bayes db's:
>
> My assumption is that the bayes db's need to be rebuilt, but I am not
> sure how to do that. If I delete all of them, that will make the
> error go away, but I'll lose the data. I tried running 'sa-learn
> --rebuild' and the db4 utility db_upgrade, but neither seemed to
> accomplish anything.
You'll want to upgrade the DB_File perl module as well. In theory,
a db_upgrade or db_dump|db_load ought to fix the issue.
--rebuild doesn't do much for a BDB upgrade since it won't be able to
read the original DB to rebuild in the new format.
--
Randomly Generated Tagline:
egg n. liquid chicken