CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • AMAVIS BDB issue
Pages: [1]

Author Topic: AMAVIS BDB issue  (Read 5310 times)

scullen

  • Guest
AMAVIS BDB issue
November 30, 2007, 10:35:48 am
I'm trying to get CiviMail up on a CentOS 4.5 system (a VPS hosted over at Bryght) and come across this error when trying to start AMAVIS.

Code: [Select]
Nov 30 13:15:12 web amavis[18478]: (!!) TROUBLE in pre_loop_hook: db_init: BDB  bad db env. at /var/amavis/db: Invalid argument, . at (eval 37) line 245.
I installed RPMs from the DAG repository to get this far.  I made sure to install AMAVIS 2.4.2 a/p the installation instructions before copying over the custom version (which is executable).

Any ideas on how to correct this?  This is my first go at CentOS and my first CiviMail deployment.

Cheers,
Mike.

scullen

  • Guest
Re: AMAVIS BDB issue
November 30, 2007, 10:56:28 am
Here is a larger chunk of the log if that helps: I noticed it also reports that CiviCRM code is not loaded.

Code: [Select]
Nov 30 13:15:11 web amavis[18460]: starting.  /usr/sbin/amavisd at web.calgaryartsdevelopment.com amavisd-new-2.4.2.civicrm (20060627), Unicode aware
Nov 30 13:15:11 web amavis[18460]: Perl version               5.008008
Nov 30 13:15:12 web amavis[18478]: Module Amavis::Conf        2.068
Nov 30 13:15:12 web amavis[18478]: Module Archive::Tar        1.36
Nov 30 13:15:12 web amavis[18478]: Module Archive::Zip        1.23
Nov 30 13:15:12 web amavis[18478]: Module BerkeleyDB          0.32
Nov 30 13:15:12 web amavis[18478]: Module Compress::Zlib      1.42
Nov 30 13:15:12 web amavis[18478]: Module Convert::TNEF       0.17
Nov 30 13:15:12 web amavis[18478]: Module Convert::UUlib      1.051
Nov 30 13:15:12 web amavis[18478]: Module DBD::mysql          3.0008
Nov 30 13:15:12 web amavis[18478]: Module DBI                 1.54
Nov 30 13:15:12 web amavis[18478]: Module DB_File             1.814
Nov 30 13:15:12 web amavis[18478]: Module Digest::MD5         2.36
Nov 30 13:15:12 web amavis[18478]: Module MIME::Entity        5.420
Nov 30 13:15:12 web amavis[18478]: Module MIME::Parser        5.420
Nov 30 13:15:12 web amavis[18478]: Module MIME::Tools         5.420
Nov 30 13:15:12 web amavis[18478]: Module Mail::Header        1.77
Nov 30 13:15:12 web amavis[18478]: Module Mail::Internet      1.77
Nov 30 13:15:12 web amavis[18478]: Module Mail::SpamAssassin  3.002003
Nov 30 13:15:12 web amavis[18478]: Module Net::Cmd            2.26
Nov 30 13:15:12 web amavis[18478]: Module Net::DNS            0.61
Nov 30 13:15:12 web amavis[18478]: Module Net::SMTP           2.29
Nov 30 13:15:12 web amavis[18478]: Module Net::Server         0.97
Nov 30 13:15:12 web amavis[18478]: Module Time::HiRes         1.86
Nov 30 13:15:12 web amavis[18478]: Module Unix::Syslog        1.0
Nov 30 13:15:12 web amavis[18478]: Amavis::DB code      loaded
Nov 30 13:15:12 web amavis[18478]: Amavis::Cache code   loaded
Nov 30 13:15:12 web amavis[18478]: SQL base code        NOT loaded
Nov 30 13:15:12 web amavis[18478]: SQL::Log code        NOT loaded
Nov 30 13:15:12 web amavis[18478]: SQL::Quarantine      NOT loaded
Nov 30 13:15:12 web amavis[18478]: Lookup::SQL code     NOT loaded
Nov 30 13:15:12 web amavis[18478]: Lookup::LDAP code    NOT loaded
Nov 30 13:15:12 web amavis[18478]: AM.PDP-in proto code loaded
Nov 30 13:15:12 web amavis[18478]: SMTP-in proto code   loaded
Nov 30 13:15:12 web amavis[18478]: Courier proto code   NOT loaded
Nov 30 13:15:12 web amavis[18478]: SMTP-out proto code  loaded
Nov 30 13:15:12 web amavis[18478]: Pipe-out proto code  NOT loaded
Nov 30 13:15:12 web amavis[18478]: BSMTP-out proto code NOT loaded
Nov 30 13:15:12 web amavis[18478]: Local-out proto code loaded
Nov 30 13:15:12 web amavis[18478]: OS_Fingerprint code  NOT loaded
Nov 30 13:15:12 web amavis[18478]: ANTI-VIRUS code      loaded
Nov 30 13:15:12 web amavis[18478]: ANTI-SPAM code       loaded
Nov 30 13:15:12 web amavis[18478]: ANTI-SPAM-SA code    loaded
Nov 30 13:15:12 web amavis[18478]: Unpackers code       loaded
Nov 30 13:15:12 web amavis[18478]: CiviCRM code         NOT loaded
Nov 30 13:15:12 web amavis[18478]: Found $file            at /usr/bin/file
Nov 30 13:15:12 web amavis[18478]: No $dspam,             not using it
Nov 30 13:15:12 web amavis[18478]: Internal decoder for .mail
Nov 30 13:15:12 web amavis[18478]: Internal decoder for .asc
Nov 30 13:15:12 web amavis[18478]: Internal decoder for .uue
Nov 30 13:15:12 web amavis[18478]: Internal decoder for .hqx
Nov 30 13:15:12 web amavis[18478]: Internal decoder for .ync
Nov 30 13:15:12 web amavis[18478]: Found decoder for    .F    at /usr/bin/unfreeze
Nov 30 13:15:12 web amavis[18478]: Found decoder for    .Z    at /usr/bin/uncompress
Nov 30 13:15:12 web amavis[18478]: Found decoder for    .gz   at /usr/bin/gzip -d
Nov 30 13:15:12 web amavis[18478]: Found decoder for    .bz2  at /usr/bin/bzip2 -d
Nov 30 13:15:12 web amavis[18478]: Found decoder for    .lzo  at /usr/bin/lzop -d
Nov 30 13:15:12 web amavis[18478]: Found decoder for    .rpm  at /usr/bin/rpm2cpio
Nov 30 13:15:12 web amavis[18478]: Found decoder for    .cpio at /usr/bin/pax
Nov 30 13:15:12 web amavis[18478]: Found decoder for    .tar  at /usr/bin/pax
Nov 30 13:15:12 web amavis[18478]: Found decoder for    .deb  at /usr/bin/ar
Nov 30 13:15:12 web amavis[18478]: Internal decoder for .zip
Nov 30 13:15:12 web amavis[18478]: Found decoder for    .rar  at /usr/bin/unrar
Nov 30 13:15:12 web amavis[18478]: Found decoder for    .arj  at /usr/bin/unarj
Nov 30 13:15:12 web amavis[18478]: Found decoder for    .arc  at /usr/bin/nomarch
Nov 30 13:15:12 web amavis[18478]: Found decoder for    .zoo  at /usr/bin/zoo
Nov 30 13:15:12 web amavis[18478]: Found decoder for    .lha  at /usr/bin/lha
Nov 30 13:15:12 web amavis[18478]: Found decoder for    .cab  at /usr/bin/cabextract
Nov 30 13:15:12 web amavis[18478]: No decoder for       .tnef tried: tnef
Nov 30 13:15:12 web amavis[18478]: Internal decoder for .tnef
Nov 30 13:15:12 web amavis[18478]: Found decoder for    .exe  at /usr/bin/unrar; /usr/bin/lha; /usr/bin/unarj
Nov 30 13:15:12 web amavis[18478]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Nov 30 13:15:12 web amavis[18478]: (!!) TROUBLE in pre_loop_hook: db_init: BDB bad db env. at /var/amavis/db: Invalid argument, . at (eval 37) line 245.

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: AMAVIS BDB issue
December 02, 2007, 08:53:02 pm
Is this with the vanilla (i.e., not-yet-CiviMail-patched) AMaViS?

Does AMaViS 2.5.2 works any better? (If so, there’s a 2.5.2-compatible patched amavisd in our repo).
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

scullen

  • Guest
Re: AMAVIS BDB issue
December 03, 2007, 07:53:00 am
This is with the patched version.
I'll give the 2.5.2 version a try and see how that goes.

Thanks,
Mike.

scullen

  • Guest
Re: AMAVIS BDB issue
December 05, 2007, 12:00:42 pm
Still no luck with Amavis and db4 on centos 4.5 - haven't been able to get either the repo versions or the civimail modified versions to run without these database errors.

I turned off the database in the amavis config to get things running:

$enable_db = 0;

I continued through with the rest of the setup instructions not knowing what implications shutting off the db might have.  I'm guessing that the reason the return channel doesn't seem to be processing returns is because of this.

I've inquired with with my hosting company but unfortunately they don't officially support civicrm: (We have considered it, but they're fairly large applications that use a lot of resources, and which have a fairly complicated installation procedure (as you're finding out). )

Any suggestions on how to proceed?

Thanks,
Mike.

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: AMAVIS BDB issue
December 05, 2007, 10:00:12 pm
Quote from: scullen on December 05, 2007, 12:00:42 pm
Still no luck with Amavis and db4 on centos 4.5 - haven't been able to get either the repo versions or the civimail modified versions to run without these database errors.

Does the vanilla (i.e., not patched) version work?

We don’t use AMaViS’s file-based database in any specific way ourselves…

Quote from: scullen on December 05, 2007, 12:00:42 pm
I continued through with the rest of the setup instructions not knowing what implications shutting off the db might have.  I'm guessing that the reason the return channel doesn't seem to be processing returns is because of this.

Did you hook AMaViS to your inbound SMTP server properly? Is AMaViS receiving any emails from it at all?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

scullen

  • Guest
Re: AMAVIS BDB issue
December 06, 2007, 10:09:45 am
I get the DB errors with both vanilla and civi-modded flavours of amavis, but if there is particular use for the db I suspect there may well be an issue elsewhere in  the setup.

I double checked all the settings as per the install instructions and everything seems to be in place.

Sorry for my lack of experience here:  With a timeout on port 10024 it looks like amavis isn't connected properly.  I double checked the amavisd.conf and it is indeed listening on port 10024.  I changed the local port number to 20024 in amavid.conf and main.cf, restarted postfix and amavis, and tested again with the same result.

Here is what I've got in the log for amavis startup and processing a remove request:

Code: [Select]
Dec  6 12:36:19 web amavis[8853]: starting.  /usr/sbin/amavisd at web.calgaryartsdevelopment.com amavisd-new-2.5.2.civicrm (20070627), Unicode aware
Dec  6 12:36:19 web amavis[8853]: Perl version               5.008008
Dec  6 12:36:20 web amavis[8871]: Net::Server: Group Not Defined.  Defaulting to EGID '102 102'
Dec  6 12:36:20 web amavis[8871]: Net::Server: User Not Defined.  Defaulting to EUID '101'
Dec  6 12:36:20 web amavis[8871]: Module Amavis::Conf        2.091
Dec  6 12:36:20 web amavis[8871]: Module Archive::Zip        1.23
Dec  6 12:36:20 web amavis[8871]: Module Compress::Zlib      2.008
Dec  6 12:36:20 web amavis[8871]: Module Convert::TNEF       0.17
Dec  6 12:36:20 web amavis[8871]: Module Convert::UUlib      1.051
Dec  6 12:36:20 web amavis[8871]: Module DBD::mysql          3.0008
Dec  6 12:36:20 web amavis[8871]: Module DBI                 1.601
Dec  6 12:36:20 web amavis[8871]: Module DB_File             1.814
Dec  6 12:36:20 web amavis[8871]: Module Digest::MD5         2.36
Dec  6 12:36:20 web amavis[8871]: Module Digest::SHA1        2.07
Dec  6 12:36:20 web amavis[8871]: Module MIME::Entity        5.420
Dec  6 12:36:20 web amavis[8871]: Module Digest::SHA1        2.07
Dec  6 12:36:20 web amavis[8871]: Module MIME::Entity        5.420
Dec  6 12:36:20 web amavis[8871]: Module MIME::Parser        5.420
Dec  6 12:36:20 web amavis[8871]: Module MIME::Tools         5.420
Dec  6 12:36:20 web amavis[8871]: Module Mail::Header        2.02
Dec  6 12:36:20 web amavis[8871]: Module Mail::Internet      2.02
Dec  6 12:36:20 web amavis[8871]: Module Mail::SpamAssassin  3.002003
Dec  6 12:36:20 web amavis[8871]: Module Net::DNS            0.61
Dec  6 12:36:20 web amavis[8871]: Module Net::Server         0.97
Dec  6 12:36:20 web amavis[8871]: Module SOAP::Lite          0.69
Dec  6 12:36:20 web amavis[8871]: Module Time::HiRes         1.86
Dec  6 12:36:20 web amavis[8871]: Module URI                 1.30
Dec  6 12:36:20 web amavis[8871]: Module Unix::Syslog        1.0
Dec  6 12:36:20 web amavis[8871]: Amavis::DB code      NOT loaded
Dec  6 12:36:20 web amavis[8871]: Amavis::Cache code   NOT loaded
Dec  6 12:36:20 web amavis[8871]: SQL base code        NOT loaded
Dec  6 12:36:20 web amavis[8871]: SQL::Log code        NOT loaded
Dec  6 12:36:20 web amavis[8871]: SQL::Quarantine      NOT loaded
Dec  6 12:36:20 web amavis[8871]: Lookup::SQL code     NOT loaded
Dec  6 12:36:20 web amavis[8871]: Lookup::LDAP code    NOT loaded
Dec  6 12:36:20 web amavis[8871]: AM.PDP-in proto code loaded
Dec  6 12:36:20 web amavis[8871]: SMTP-in proto code   loaded
Dec  6 12:36:20 web amavis[8871]: Courier proto code   NOT loaded
Dec  6 12:36:20 web amavis[8871]: SMTP-out proto code  loaded
Dec  6 12:36:20 web amavis[8871]: Pipe-out proto code  NOT loaded
Dec  6 12:36:20 web amavis[8871]: BSMTP-out proto code NOT loaded
Dec  6 12:36:20 web amavis[8871]: Local-out proto code loaded
Dec  6 12:36:20 web amavis[8871]: OS_Fingerprint code  NOT loaded
Dec  6 12:36:20 web amavis[8871]: ANTI-VIRUS code      NOT loaded
Dec  6 12:36:20 web amavis[8871]: ANTI-SPAM code       loaded
Dec  6 12:36:20 web amavis[8871]: ANTI-SPAM-SA code    loaded
Dec  6 12:36:20 web amavis[8871]: Unpackers code       loaded
Dec  6 12:36:20 web amavis[8871]: CiviCRM code         loaded
Dec  6 12:36:20 web amavis[8871]: Found $file            at /usr/bin/file
Dec  6 12:36:20 web amavis[8871]: No $dspam,             not using it
Dec  6 12:36:20 web amavis[8871]: No $altermime,         not using it
Dec  6 12:36:20 web amavis[8871]: Internal decoder for .mail
Dec  6 12:36:20 web amavis[8871]: No $altermime,         not using it
Dec  6 12:36:20 web amavis[8871]: Internal decoder for .mail
Dec  6 12:36:20 web amavis[8871]: Internal decoder for .asc
Dec  6 12:36:20 web amavis[8871]: Internal decoder for .uue
Dec  6 12:36:20 web amavis[8871]: Internal decoder for .hqx
Dec  6 12:36:20 web amavis[8871]: Internal decoder for .ync
Dec  6 12:36:20 web amavis[8871]: Found decoder for    .F    at /usr/bin/unfreeze
Dec  6 12:36:20 web amavis[8871]: Found decoder for    .Z    at /usr/bin/uncompress
Dec  6 12:36:20 web amavis[8871]: Found decoder for    .gz   at /usr/bin/gzip -d
Dec  6 12:36:20 web amavis[8871]: Found decoder for    .bz2  at /usr/bin/bzip2 -d
Dec  6 12:36:20 web amavis[8871]: Found decoder for    .lzo  at /usr/bin/lzop -d
Dec  6 12:36:20 web amavis[8871]: Found decoder for    .rpm  at /usr/bin/rpm2cpio
Dec  6 12:36:20 web amavis[8871]: Found decoder for    .cpio at /usr/bin/pax
Dec  6 12:36:20 web amavis[8871]: Found decoder for    .tar  at /usr/bin/pax
Dec  6 12:36:20 web amavis[8871]: Found decoder for    .deb  at /usr/bin/ar
Dec  6 12:36:20 web amavis[8871]: Internal decoder for .zip
Dec  6 12:36:20 web amavis[8871]: No decoder for       .7z   tried: 7zr, 7za, 7z
Dec  6 12:36:20 web amavis[8871]: Found decoder for    .rar  at /usr/bin/unrar
Dec  6 12:36:20 web amavis[8871]: Found decoder for    .arj  at /usr/bin/unarj
Dec  6 12:36:20 web amavis[8871]: Found decoder for    .arc  at /usr/bin/nomarch
Dec  6 12:36:20 web amavis[8871]: Found decoder for    .zoo  at /usr/bin/zoo
Dec  6 12:36:20 web amavis[8871]: Found decoder for    .lha  at /usr/bin/lha
Dec  6 12:36:20 web amavis[8871]: Found decoder for    .cab  at /usr/bin/cabextract
Dec  6 12:36:20 web amavis[8871]: No decoder for       .tnef tried: tnef
Dec  6 12:36:20 web amavis[8871]: Internal decoder for .tnef
Dec  6 12:36:20 web amavis[8871]: Found decoder for    .exe  at /usr/bin/unrar; /usr/bin/lha; /usr/bin/unarj
Dec  6 12:37:52 web postfix/smtpd[8876]: connect from rv-out-0910.google.com[209.85.198.191]
Dec  6 12:37:53 web postfix/smtpd[8876]: 23EEE8A7EE: client=rv-out-0910.google.com[209.85.198.191]
Dec  6 12:37:53 web postfix/cleanup[8880]: 23EEE8A7EE: message-id=<47583340.7010404@calgaryartsdevelopment.com>
Dec  6 12:37:53 web postfix/qmgr[8847]: 23EEE8A7EE: from=<mike.scullen@calgaryartsdevelopment.com>, size=2111, nrcpt=1 (queue active)
Dec  6 12:38:23 web postfix/smtpd[8876]: disconnect from rv-out-0910.google.com[209.85.198.191]
Dec  6 12:41:43 web postfix/anvil[8878]: statistics: max connection rate 1/60s for (smtp:209.85.198.191) at Dec  6 12:37:52
Dec  6 12:41:43 web postfix/anvil[8878]: statistics: max connection count 1 for (smtp:209.85.198.191) at Dec  6 12:37:52
Dec  6 12:41:43 web postfix/anvil[8878]: statistics: max cache size 1 at Dec  6 12:37:52
Dec  6 12:42:53 web postfix/smtp[8881]: connect to 127.0.0.1[127.0.0.1]: read timeout (port 10024)
Dec  6 12:42:53 web postfix/smtp[8881]: 23EEE8A7EE: to=<optOut.1.9.9.90a60b3350249c70e7559452f314a6382cbd883f@web.calgaryartsdevelopment.com>, relay=none, delay=300, status=deferred (connect to 127.0.0.1[127.0.0.1]: read timeout)

Suggestions are certainly appreciated... we've been stuck in one place or another implementing civicrm for quite some time.

Thanks :).

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: AMAVIS BDB issue
December 06, 2007, 10:18:37 pm
If the vanilla AMaViS doesn’t work, it means there’s an issue with how your server is configured (maybe Perl’s module for BDB is missing?).

Compare the output with my setup (AMaViS 2.5.2 on Ubuntu):

Code: [Select]
shot@devielle:~$ sudo /etc/init.d/amavis debug
Trying to run amavisd-new in debug mode...
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: starting.  /usr/sbin/amavisd-new at localhost amavisd-new-2.5.2.civicrm (20070627), Unicode aware, LANG="en_GB.UTF-8"
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: user=, EUID: 0 (0);  group=, EGID: 0 0 (0 0)
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Perl version               5.008008
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: INFO: no optional modules: IO::Socket::INET6
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Net::Server: 2007/12/07-07:17:19 Amavis (type Net::Server::PreForkSimple) starting! pid(23429)
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Net::Server: Binding to UNIX socket file /var/lib/amavis/amavisd.sock using SOCK_STREAM
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Net::Server: Setting gid to "125 125"
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Net::Server: Setting uid to "117"
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Net::Server: Setting up serialization via flock
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: after_chroot_init: EUID: 117 (117);  EGID: 125 125 125 (125 125 125)
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: config files read: /usr/share/amavis/conf.d/10-debian_scripts, /usr/share/amavis/conf.d/20-package, /etc/amavis/conf.d/01-debian, /etc/amavis/conf.d/05-domain_id, /etc/amavis/conf.d/05-node_id, /etc/amavis/conf.d/15-av_scanners, /etc/amavis/conf.d/15-content_filter_mode, /etc/amavis/conf.d/20-debian_defaults, /etc/amavis/conf.d/25-amavis_helpers, /etc/amavis/conf.d/30-template_localization, /etc/amavis/conf.d/40-civimail, /etc/amavis/conf.d/50-user
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Module Amavis::Conf        2.091
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Module Archive::Zip        1.18
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Module BerkeleyDB          0.31
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Module Compress::Zlib      2.005
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Module Convert::TNEF       0.17
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Module Convert::UUlib      1.06
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Module Digest::MD5         2.36
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Module MIME::Entity        5.420
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Module MIME::Parser        5.420
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Module MIME::Tools         5.420
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Module Mail::Header        1.74
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Module Mail::Internet      1.74
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Module Net::Server         0.94
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Module SOAP::Lite          0.69
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Module Time::HiRes         1.86
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Module URI                 1.35
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Module Unix::Syslog        0.100
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Amavis::DB code      loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Amavis::Cache code   loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: SQL base code        NOT loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: SQL::Log code        NOT loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: SQL::Quarantine      NOT loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Lookup::SQL code     NOT loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Lookup::LDAP code    NOT loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: AM.PDP-in proto code loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: SMTP-in proto code   loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Courier proto code   NOT loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: SMTP-out proto code  loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Pipe-out proto code  NOT loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: BSMTP-out proto code NOT loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Local-out proto code loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: OS_Fingerprint code  NOT loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: ANTI-VIRUS code      NOT loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: ANTI-SPAM code       NOT loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: ANTI-SPAM-SA code    NOT loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Unpackers code       loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: CiviCRM code         loaded
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Found $file            at /usr/bin/file
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: No $dspam,             not using it
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: No $altermime,         not using it
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Internal decoder for .mail
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Internal decoder for .asc
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Internal decoder for .uue
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Internal decoder for .hqx
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Internal decoder for .ync
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: No decoder for       .F   
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Found decoder for    .Z    at /bin/uncompress
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Internal decoder for .gz 
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Found decoder for    .gz   at /bin/gzip -d (backup, not used)
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Found decoder for    .bz2  at /bin/bzip2 -d
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Found decoder for    .lzo  at /usr/bin/lzop -d
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Found decoder for    .rpm  at /usr/bin/rpm2cpio
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Found decoder for    .cpio at /usr/bin/pax
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Found decoder for    .cpio at /bin/cpio (backup, not used)
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Found decoder for    .tar  at /usr/bin/pax
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Found decoder for    .tar  at /bin/cpio (backup, not used)
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Found decoder for    .deb  at /usr/bin/ar
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Internal decoder for .zip
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Found decoder for    .7z   at /usr/bin/7zr
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: No decoder for       .rar
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Found decoder for    .arj  at /usr/bin/arj
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: No decoder for       .arc  tried: nomarch, arc
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: No decoder for       .zoo  tried: zoo
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: No decoder for       .lha
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: No decoder for       .doc  tried: ripole
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Found decoder for    .cab  at /usr/bin/cabextract
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: No decoder for       .tnef
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Internal decoder for .tnef
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Found decoder for    .exe  at /usr/bin/arj
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.31, libdb 4.4
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: CiviCRM: initializing
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: CiviCRM: done
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Net::Server: Beginning prefork (2 processes)
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Net::Server: Starting "2" children
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23439]: Net::Server: Child Preforked (23439)
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23439]: TIMING [total 3 ms] - bdb-open: 3 (100%)100, rundown: 0 (0%)100
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23440]: Net::Server: Child Preforked (23440)
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23440]: TIMING [total 3 ms] - bdb-open: 2 (100%)100, rundown: 0 (0%)100
Dec  7 07:17:19 localhost /usr/sbin/amavisd-new[23429]: Net::Server: Parent ready for children.

It looks like I get Module BerkeleyDB          0.31 and Amavis::DB code      loaded in there, while your setup tries to use Module DBD::mysql          3.0008 and ends up with Amavis::DB code      NOT loaded.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

scullen

  • Guest
Re: AMAVIS BDB issue
December 11, 2007, 12:09:50 pm
Yes, this seems to be a server config issue so it's somewhat out of context here.

If I re-enable the database things come to a halt when the db tries to initalize:

Code: [Select]
Dec 11 14:46:10 web amavis[18481]: (!!)TROUBLE in pre_loop_hook: BDB can't create db env. at /var/amavis/db: Invalid argument, . at (eval 80) line 279.
Dec 11 14:46:10 web amavis[18481]: (!)_DIE: Suicide () TROUBLE in pre_loop_hook: BDB can't create db env. at /var/amavis/db: Invalid argument, . at (eval 80) line 279.\n

I've tried rebuilding from the db4 source RPM and then recompiling the CPAN modules with:

Code: [Select]
perl -MCPAN -e shell
force install BerkeleyDB DB_File

without any success

(I'm getting Amavis::DB code loaded now in the log - it wasn't showing up before because I had disable the db in the amavis config)

I've just about exhausted my limited resources on this one - any suggestions?

Regards,
Mike.

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: AMAVIS BDB issue
December 12, 2007, 01:47:14 am
Unfortunately, I’m really not a Perl-knowing admin (on the systems I happen to administer, the packaged AMaViS downloads its dependencies properly).

I assume you’ve checked the obvious (that the /var/amavis/db exists/is writable by the user that AMaViS is ran by/runs as), and the Perl’s „at (eval 80) line 279” pointers are always a mystery to me, so I can’t even point you in the right direction. :|

Maybe some AMaViS/Perl forum, or a refined Google search?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

scullen

  • Guest
Re: AMAVIS BDB issue
December 12, 2007, 08:10:27 am
Yeah, I did check on permissions.

Thanks for your help. Will keep searching for a solution.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • AMAVIS BDB issue

This forum was archived on 2017-11-26.