Does amavisd report the version of bdb during startup (and it
matches the one you expect, i.e. 4.1), like:

amavis[82366]: Creating db in /var/amavis/var/db/amavis/;
  BerkeleyDB 0.310, libdb 4.3

-- No, at least not that I can see, here is the full output:

[EMAIL PROTECTED] amavis]# amavisd debug
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: starting.  /usr/sbin/amavisd at 
outbd-pstfx-oh.customercenter.net amavisd-new-2.4.5 (20070130), Unicode 
aware, LANG="en_US.UTF-8"
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: user=, EUID: 0 (0);  group=, EGID: 0 10 6 4 3 2 
1 0 (0 10 6 4 3 2 1 0)
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Perl version               5.008
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: INFO: no optional modules: Encode::Unicode::UTF7 
unicore::PVA.pl
Pid_file "/var/amavis/amavisd.pid" already exists.  Overwriting!
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Net::Server: 2007/03/20-11:57:22 Amavis (type 
Net::Server::PreForkSimple) starting! pid(15998)
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Net::Server: Binding to TCP port 10024 on host 
127.0.0.1
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Net::Server: Setting gid to "878 878"
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Net::Server: Setting uid to "838"
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Net::Server: Setting up serialization via flock
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Module Amavis::Conf        2.078
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Module Archive::Tar        1.08
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Module Archive::Zip        1.16
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Module BerkeleyDB          0.31
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Module Compress::Zlib      1.39
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Module Convert::TNEF       0.17
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Module Convert::UUlib      1.051
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Module Digest::MD5         2.33
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Module MIME::Entity        5.415
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Module MIME::Parser        5.415
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Module MIME::Tools         5.415
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Module Mail::Header        1.67
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Module Mail::Internet      1.67
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Module Net::Cmd            2.26
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Module Net::SMTP           2.29
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Module Net::Server         0.87
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Module Time::HiRes         1.56
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Module Unix::Syslog        0.100
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Amavis::DB code      loaded
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Amavis::Cache code   loaded
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: SQL base code        NOT loaded
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: SQL::Log code        NOT loaded
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: SQL::Quarantine      NOT loaded
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Lookup::SQL code     NOT loaded
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Lookup::LDAP code    NOT loaded
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: AM.PDP-in proto code NOT loaded
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: SMTP-in proto code   loaded
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Courier proto code   NOT loaded
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: SMTP-out proto code  loaded
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Pipe-out proto code  NOT loaded
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: BSMTP-out proto code NOT loaded
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Local-out proto code loaded
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: OS_Fingerprint code  NOT loaded
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: ANTI-VIRUS code      loaded
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: ANTI-SPAM code       NOT loaded
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: ANTI-SPAM-SA code    NOT loaded
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Unpackers code       loaded
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found $file            at /usr/bin/file
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found $dspam           at /usr/bin/dspam
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Internal decoder for .mail
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Internal decoder for .asc 
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Internal decoder for .uue 
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Internal decoder for .hqx 
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Internal decoder for .ync 
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found decoder for    .F    at /usr/bin/unfreeze
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found decoder for    .Z    at 
/usr/bin/uncompress
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Internal decoder for .gz 
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found decoder for    .gz   at /usr/bin/gzip -d 
(backup, not used)
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found decoder for    .bz2  at /usr/bin/bzip2 -d
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found decoder for    .lzo  at /usr/bin/lzop -d
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found decoder for    .rpm  at /usr/bin/rpm2cpio
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found decoder for    .cpio at /usr/bin/pax
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found decoder for    .tar  at /usr/bin/pax
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Internal decoder for .tar  (backup, not used)
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found decoder for    .deb  at /usr/bin/ar
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Internal decoder for .zip 
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found decoder for    .rar  at /usr/bin/rar
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found decoder for    .arj  at /usr/bin/unarj
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found decoder for    .arc  at /usr/bin/nomarch
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found decoder for    .zoo  at /usr/bin/zoo
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found decoder for    .lha  at /usr/bin/lha
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found decoder for    .doc  at /usr/bin/ripole
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found decoder for    .cab  at 
/usr/bin/cabextract
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Internal decoder for .tnef
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found decoder for    .exe  at /usr/bin/rar; 
/usr/bin/lha; /usr/bin/unarj
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found primary av scanner NAI McAfee AntiVirus 
(uvscan) at /usr/bin/uvscan
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Found primary av scanner ClamAV-clamscan at 
/usr/bin/clamscan
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Using secondary internal av scanner code for 
Trophie
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: Using secondary internal av scanner code for 
Clam Antivirus-clamd
Mar 20 11:57:22 outbd-pstfx-oh.customercenter.net 
/usr/sbin/amavisd[15998]: (!!)TROUBLE in pre_loop_hook: db_init: BDB bad 
db env. at /var/amavis/db: Function not implemented, No such file or 
directory. at (eval 34) line 259.
Suicide () TROUBLE in pre_loop_hook: db_init: BDB bad db env. at 
/var/amavis/db: Function not implemented, No such file or directory. at 
(eval 34) line 259.

Does a directory /var/amavis/db exist and is owned by vscan?

--Yes, I even gave it 777 permissions temporarily, BTW all these processes 
run as amavis in lieue of vscan.

pwd;ll
/var/amavis
total 812
-rw-r-----    1 amavis   amavis          0 Mar 20 10:36 amavisd.lock
-rw-r-----    1 amavis   amavis          6 Mar 20 11:57 amavisd.pid
drwxrwxrwx    2 amavis   amavis       4096 Mar 20 11:57 db
drwx------    3 amavis   amavis       4096 Nov  8 14:25 dspam
drwx------    7 amavis   amavis       4096 Mar 20 09:35 tmp




Mark Martinec <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
03/20/2007 11:44 AM

To
[email protected]
cc

Subject
Re: [AMaViS-user] Problem with caching






> Apparently someone has upgraded something on one of our gateways and now 
I
> cant enable caching, still scratching my head on this one, here is the
> problem:
> Mar 20 11:02:14 <server> /usr/sbin/amavisd[14770]: (!!)TROUBLE in
> pre_loop_hook: db_init: BDB bad db env. at /var/amavis/db: Function not
> implemented, No such file or directory. at (eval 34) line 259.
> Suicide () TROUBLE in pre_loop_hook: db_init: BDB bad db env. at
> /var/amavis/db: Function not implemented, No such file or directory.
> at (eval 34) line 259.

Does amavisd report the version of bdb during startup (and it
matches the one you expect, i.e. 4.1), like:

amavis[82366]: Creating db in /var/amavis/var/db/amavis/;
  BerkeleyDB 0.310, libdb 4.3

Does a directory /var/amavis/db exist and is owned by vscan?

  Mark

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share 
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to