Amavis failing reporting “TROUBLE in child_init_hook: BDB can’t connect db env. at /var/lib/amavis/db”
Keyword index
- Amavis trouble in child_init_hook
- Amavis not processing mails, consuming 100% cpu
Introduction
If you find next logs repeatedly and at the same time amavis is not working properly:
Apr 25 11:40:17 node01[30000]: (!!)TROUBLE in child_init_hook: BDB can't connect db env. at /var/lib/amavis/db: File or directory does not exists. at (eval 94) line 342. Apr 25 11:40:17 node01[30001]: (!!)TROUBLE in child_init_hook: BDB can't connect db env. at /var/lib/amavis/db: File or directory does not exists. at (eval 94) line 342.
Follow next steps to recover service and to stop old notifications:
Resolution
This error is detected and automatically recovered by Core-Admin. If you already have Core-Admin, you might have an old version. Upgrade it:
# crad-update.pyc -u # crad-update.pyc -g
Then, manually recover by running the command (or just wait core-admin to do it for you in a few minutes):
# /usr/share/core-admin/tools/mail_admin/amavis-watcher.pyc --verbose
After that, you should have service recovered. Restart agent and log-watcher to discard old notifications:
# /etc/init.d/crad-log-watcher restart # /etc/init.d/crad-agent restart
Posted in: Administrador de Correo, Amavis, Mail Admin
Leave a Comment (0) →