amavis[59520]: (!!)TROUBLE in child_init_hook: BDB

http://city-rabbit.blogspot.com/2009/09/antivirus-scanner.html

2010年3月25日午前、メールサーバの挙動がおかしい。のに気づく。

Mar 25 04:55:51 hotshot postfix/anvil[5763]: statistics: max connection rate 2/60s for (smtp:116.74.160.186) at Mar 25 04:54:43
Mar 25 04:55:51 hotshot postfix/anvil[5763]: statistics: max connection count 2 for (smtp:173.49.95.140) at Mar 25 04:52:34
Mar 25 04:55:51 hotshot postfix/anvil[5763]: statistics: max cache size 3 at   Mar 25 04:52:47
Mar 25 04:55:54 hotshot postfix/smtpd[5761]: connect from unknown[70.99.243.17]
Mar 25 04:56:24 hotshot postfix/smtpd[5761]: warning: 17.243.99.70.list.dsbl.org: RBL lookup error: Host or domain name not found. Name service error for name=17.243.99.70.list.dsbl.org type=A: Host not found, try again
Mar 25 04:56:24 hotshot postfix/smtpd[5761]: 681B456441: client=unknown[70.99.243.17]
Mar 25 04:56:28 hotshot postfix/cleanup[5817]: 681B456441: message-id=<20100324135552.dmcfphohtdbd@mx1.hotpinktrouttree.net>
Mar 25 04:56:28 hotshot postfix/qmgr[1323]: 681B456441: from=<Ashtonaic@hotpinktrouttree.net>, size=10163, nrcpt=1 (queue active)
Mar 25 04:56:31 hotshot postfix/smtpd[5761]: disconnect from unknown[70.99.243.17]
Mar 25 04:56:46 hotshot amavis[5853]: (!!)TROUBLE in child_init_hook: BDB no dbS: Lock table is out of available locker entries, . at (eval 97) line 27.
Mar 25 04:56:46 hotshot amavis[5853]: (!)_DIE: Suicide in child_init_hook: BDB no dbS: Lock table is out of available locker entries, . at (eval 97) line 27.
Mar 25 04:56:46 hotshot postfix/smtp[5850]: 681B456441: to=<swalter@smb.net>, relay=127.0.0.1[127.0.0.1]:10024, delay=46, delays=29/0.01/0.01/17, dsn=4.4.2, status=deferred (lost connection with 127.0.0.1[127.0.0.1] while sending end of data -- message may be sent more than once)
Mar 25 04:56:46 hotshot amavis[5855]: (!!)TROUBLE in child_init_hook: BDB no dbS: Lock table is out of available locker entries, . at (eval 97) line 27.

の様な始まりで、延々

Mar 25 11:18:01 hotshot amavis[46448]: (!!)TROUBLE in child_init_hook: BDB no dbS: Lock table is out of available locker entries, . at (eval 97) line 27.
Mar 25 11:18:01 hotshot amavis[46448]: (!)_DIE: Suicide in child_init_hook: BDB no dbS: Lock table is out of available locker entries, . at (eval 97) line 27.
Mar 25 11:18:01 hotshot amavis[46447]: (!!)TROUBLE in child_init_hook: BDB no dbS: Lock table is out of available locker entries, . at (eval 97) line 27.
Mar 25 11:18:01 hotshot amavis[46447]: (!)_DIE: Suicide in child_init_hook: BDB no dbS: Lock table is out of available locker entries, . at (eval 97) line 27.

頻発する・・・・

Mar 28 21:20:35 hotshot postfix/smtpd[34519]: 8D5995645C: client=bl16-146-28.dsl.telepac.pt[188.81.146.28]
Mar 28 21:20:36 hotshot postfix/cleanup[34532]: 8D5995645C: message-id=<20100328122035.8D5995645C@hotshot.smb.net>
Mar 28 21:20:36 hotshot postfix/qmgr[1325]: 8D5995645C: from=<iqiabyga8190@telepac.pt>, size=7454, nrcpt=1 (queue active)
Mar 28 21:20:37 hotshot postfix/smtpd[34519]: disconnect from bl16-146-28.dsl.telepac.pt[188.81.146.28]
Mar 28 21:20:50 hotshot amavis[34536]: (!!)TROUBLE in child_init_hook: BDB no dbS: Lock table is out of available locker entries, . at (eval 97) line 27.
Mar 28 21:20:50 hotshot amavis[34536]: (!)_DIE: Suicide in child_init_hook: BDB no dbS: Lock table is out of available locker entries, . at (eval 97) line 27.

ので、取り敢えず、

hotshot# portupgrade p5-BerkeleyDB-0.36
--->  Upgrading 'p5-BerkeleyDB-0.36' to 'p5-BerkeleyDB-0.41' (databases/p5-BerkeleyDB)
--->  Building '/usr/ports/databases/p5-BerkeleyDB'
===>  Cleaning for p5-BerkeleyDB-0.41
=> BerkeleyDB-0.41.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/BerkeleyDB/.
BerkeleyDB-0.41.tar.gz                        100% of  180 kB   98 kBps
===>  Extracting for p5-BerkeleyDB-0.41

hotshot# amavisd reload
Daemon [1101] terminated by SIGTERM, waiting for dust to settle...
becoming a new daemon...
hotshot#

してみる。

それでも、トラブル。ので、 http://www.mail-archive.com/amavis-user@lists.sourceforge.net/msg14610.html

あたりをみて、db4 をインストールして、DB_CONFIG のサンプルを手に入れる。

  164  13:48   locate db4
  165  13:49   portinstall databases/db4
  166  13:52   rehash
hotshot# portinstall databases/db48

/var/amavis/db/DB_CONFIG

# $OpenLDAP: pkg/ldap/servers/slapd/DB_CONFIG,v 1.3.2.4 2007/12/18 11:53:27 ghenry Exp $
# Example DB_CONFIG file for use with slapd(8) BDB/HDB databases.
#
# See the Oracle Berkeley DB documentation
#   <http://www.oracle.com/technology/documentation/berkeley-db/db/ref/env/db_config.html>
# for detail description of DB_CONFIG syntax and semantics.
#
# Hints can also be found in the OpenLDAP Software FAQ
#	<http://www.openldap.org/faq/index.cgi?file=2>
# in particular:
#   <http://www.openldap.org/faq/index.cgi?file=1075>

# Note: most DB_CONFIG settings will take effect only upon rebuilding
# the DB environment.

# one 0.25 GB cache
set_cachesize 0 268435456 1

# Data Directory
#set_data_dir db

#http://wiki.zimbra.com/index.php?title=OpenLDAP_Performance_Tuning_6.0#Berkeley_DB_DB_CONFIG_tuning
set_lk_max_locks 3000
set_lk_max_objects 1500
set_lk_max_lockers 1500


# Transaction Log settings
set_lg_regionmax 262144
set_lg_bsize 2097152
#set_lg_dir logs

# Note: special DB_CONFIG flags are no longer needed for "quick"
# slapadd(8) or slapindex(8) access (see their -q option). 
Apr  6 15:28:20 hotshot amavis[1114]: Module Razor2::Client::Version 2.84
Apr  6 15:28:20 hotshot amavis[1114]: Module Socket6             0.23
Apr  6 15:28:20 hotshot amavis[1114]: Module Time::HiRes         1.9719
Apr  6 15:28:20 hotshot amavis[1114]: Module URI                 1.37
Apr  6 15:28:20 hotshot amavis[1114]: Module Unix::Syslog        1.1
Apr  6 15:28:20 hotshot amavis[1114]: Amavis::DB code      loaded
Apr  6 15:28:20 hotshot amavis[1114]: Amavis::Cache code   loaded
Apr  6 15:28:20 hotshot amavis[1114]: SQL base code        NOT loaded
Apr  6 15:28:20 hotshot amavis[1114]: SQL::Log code        NOT loaded
Apr  6 15:28:20 hotshot amavis[1114]: SQL::Quarantine      NOT loaded
Apr  6 15:28:20 hotshot amavis[1114]: Lookup::SQL code     NOT loaded
Apr  6 15:28:20 hotshot amavis[1114]: Lookup::LDAP code    NOT loaded
Apr  6 15:28:20 hotshot amavis[1114]: AM.PDP-in proto code loaded
Apr  6 15:28:20 hotshot amavis[1114]: SMTP-in proto code   loaded
Apr  6 15:28:20 hotshot amavis[1114]: Courier proto code   NOT loaded
Apr  6 15:28:20 hotshot amavis[1114]: SMTP-out proto code  loaded
Apr  6 15:28:20 hotshot amavis[1114]: Pipe-out proto code  NOT loaded
Apr  6 15:28:20 hotshot amavis[1114]: BSMTP-out proto code NOT loaded
Apr  6 15:28:20 hotshot amavis[1114]: Local-out proto code loaded
Apr  6 15:28:20 hotshot amavis[1114]: OS_Fingerprint code  NOT loaded
Apr  6 15:28:20 hotshot amavis[1114]: ANTI-VIRUS code      loaded
Apr  6 15:28:20 hotshot amavis[1114]: ANTI-SPAM code       loaded
Apr  6 15:28:20 hotshot amavis[1114]: ANTI-SPAM-EXT code   NOT loaded
Apr  6 15:28:20 hotshot amavis[1114]: ANTI-SPAM-C code     NOT loaded
Apr  6 15:28:20 hotshot amavis[1114]: ANTI-SPAM-SA code    loaded
Apr  6 15:28:20 hotshot amavis[1114]: Unpackers code       loaded
Apr  6 15:28:20 hotshot amavis[1114]: DKIM code            loaded
Apr  6 15:28:20 hotshot amavis[1114]: Tools code           NOT loaded
Apr  6 15:28:20 hotshot amavis[1114]: Found $file             at /usr/local/bin/file
Apr  6 15:28:20 hotshot amavis[1114]: No $altermime,         not using it
Apr  6 15:28:20 hotshot amavis[1114]: Internal decoder for .mail
Apr  6 15:28:20 hotshot amavis[1114]: Internal decoder for .asc
Apr  6 15:28:20 hotshot amavis[1114]: Internal decoder for .uue
Apr  6 15:28:20 hotshot amavis[1114]: Internal decoder for .hqx
Apr  6 15:28:20 hotshot amavis[1114]: Internal decoder for .ync
Apr  6 15:28:20 hotshot amavis[1114]: Found decoder for    .F    at /usr/local/bin/unfreeze
Apr  6 15:28:20 hotshot amavis[1114]: Found decoder for    .Z    at /usr/bin/uncompress
Apr  6 15:28:20 hotshot amavis[1114]: Found decoder for    .gz   at /usr/bin/gzip -d

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS