Amavis constantly failling with BDB problems
Olivier
Olivier.Nicole at cs.ait.ac.th
Wed Feb 3 08:41:38 CET 2021
Hello,
I am trying to upgrade a mail server from:
FreeBSD 11.3-RELEASE-p3
amavisd-new-2.11
db5-5.3
to:
FreeBSD 12.2-RELEASE-p3
amavisd-new-2.12
db5-5.3 (no change)
On the new server, I have a lot of trouble with Berkley DB. For example
when I tryto stop amavis, one process will not terminate untill I kill
-9 and I have the errors:
Feb 3 14:33:12 web16 amavis[900]: (!)child_finish_hook: DB unregistering failed:
Feb 3 14:33:12 web16 amavis[895]: (00895-01) (!)child_finish_hook: DB unregistering failed:
Feb 3 14:33:12 web16 amavis[893]: (00893-01) (!)child_finish_hook: DB unregistering failed:
Feb 3 14:33:12 web16 amavis[894]: (00894-01) (!)child_finish_hook: DB unregistering failed:
Feb 3 14:33:12 web16 amavis[899]: (!)child_finish_hook: DB
unregistering failed:
Feb 3 14:33:12 web16 amavis[894]: (00894-01) _WARN: [894] BDB S+N DESTROY INFO (db_snmp): db_close: BDB0060 PANIC: fatal region error detected; run recovery, . at (eval 92) line 49.
Feb 3 14:33:12 web16 amavis[899]: _WARN: [899] BDB S+N DESTROY INFO (db_snmp): db_close: BDB0060 PANIC: fatal region error detected; run recovery, . at (eval 92) line 49.
Feb 3 14:33:12 web16 amavis[900]: _WARN: [900] BDB S+N DESTROY INFO (db_snmp): db_close: BDB0060 PANIC: fatal region error detected; run recovery, . at (eval 92) line 49.
Feb 3 14:33:12 web16 amavis[892]: (00892-01) _WARN: [892] BDB S+N DESTROY INFO (db_snmp): db_close: BDB0060 PANIC: fatal region error detected; run recovery, . at (eval 92) line 49.
Feb 3 14:33:12 web16 amavis[896]: (00896-01) _WARN: [896] BDB S+N DESTROY INFO (db_snmp): db_close: BDB0060 PANIC: fatal region error detected; run recovery, .
at (eval 92) line 49.
If I manually terminate the process, then amavis usually can start OK,
but will fail to process any message after a short while, coming with
BDB errors again like:
Feb 3 13:35:58 web16 amavis[5502]: (!)_DIE: Suicide in child_init_hook: BDB can't connect db env. at /var/amavis/db: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery, No such file or directory. at (eval 92) line 338.
When looking at my amavis configuration, all I can see is:
$db_home = "$MYHOME/db"; # dir for bdb nanny/cache/snmp databases, -D
#NOTE: create directories $MYHOME/tmp, $MYHOME/var, $MYHOME/db manually
$enable_db = 1; # enable use of BerkeleyDB/libdb (SNMP and nanny)
$enable_global_cache = 1; # enable use of libdb-based cache if $enable_db=1
Thanks in advance,
Olivier
--
More information about the amavis-users
mailing list