[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:45607] Re: spamassassin や sa-learn のエラー



かわべと申します。

水原 文 さんは書きました (2006/01/12 22:56):

> grand:~> zcat
/var/lib/amavis/virusmails/spam-22f286904cf3bbc9ceedf96fa38f7d4b-20060109-211423-22978-06.gz
| spamassassin | lv
> [1467] warn: bayes: cannot open bayes databases
/home/mizuhara/.spamassassin/bayes_* R/O: tie failed:
> [1467] warn: bayes: cannot open bayes databases
/home/mizuhara/.spamassassin/bayes_* R/O: tie failed:
> [1467] warn: bayes: cannot open bayes databases
/home/mizuhara/.spamassassin/bayes_* R/O: tie failed: Transport endpoint
is not connected
> grand:~> sa-learn --sync
> bayes: cannot open bayes databases
/home/mizuhara/.spamassassin/bayes_* R/O: tie failed:
> bayes: cannot open bayes databases
/home/mizuhara/.spamassassin/bayes_* R/W: tie failed: Inappropriate
ioctl for device
>

ぐぐったらこんな↓ページありました。
(http://www.wlug.org.nz/SpamAssassinNotes)

I'm running spamassassin on Debian and get this error Cannot open bayes
databases /home/jimbobdobalina/.spamassassin/bayes_* R/O: tie failed:
(or similar)

Fix:

apt-get install db4.3-util

Go to where you Bayes DB's lie.

db4.3_upgrade bayes_seen
db4.3_upgrade bayes_toks

> あと気が付いたのですが、3.0.3-2 の /usr/share/doc/README.Debian.gz に
> は以下のようなことが記載されています。
>
> Upgrading from perl5.6:
> -----------------------
>
> There is a issue with DB_File that causes old Bayes databases and
> automatic whitelists to no longer be read with perl5.8.
>
> From the perl 5.8 changelog:
>
>   * NOTE: DB_File now uses libdb4.0 (previously libdb2). Any DB_File
>     databases created with earlier perl packages will need to be
>     upgraded before being used with the current module with the
>     db4.0_upgrade program (in the libdb4.0-util package, with HTML
>     docs in db4.0-doc).
>
> The fix is to delete your automatic whitelist and bayes dbs from
> ~/.spamassassin/, or use the db4.0_upgrade program as explained above.
>
> perl のバージョンがあがると DB のファイルフォーマットがかわるので読め
> なくなるといわれても困るのですが…。libdb4.0-util とか db4.0-doc なん
> て package 存在しないし…。spamassassin-3.1.0 にはこの種の記述はないよ
> うです。

たぶんこれ↓かな。

# apt-cache search db | grep util
db4.1-util - Berkeley v4.1 Database Utilities
db4.2-util - Berkeley v4.2 Database Utilities
db4.3-util - Berkeley v4.3 Database Utilities