Topic: Amavisd crashes (almost) daily on FreeBSD 11.
==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6
- Linux/BSD distribution name and version: FreeBSD 11.0-RELEASE-p2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:
====
From /var/log/maillog:
Feb 1 08:26:10 mail amavis[13931]: (13931-17) (!!)TROUBLE in check_mail, but must continue (1): update_snmp FAILED: update_snmp_variables: BDB S c_get: BDB0061 PANIC: Invalid argument, No such process. at (eval 93) line 140.
Feb 1 08:26:10 mail amavis[13931]: (13931-17) (!!)TROUBLE in process_request: register_proc: BDB N db_cursor: BDB0060 PANIC: fatal region error detected; run recovery, . at (eval 93) line 220.
Feb 1 08:26:10 mail amavis[13931]: (13931-17) (!)Requesting process rundown after fatal error
Feb 1 08:26:10 mail amavis[13931]: (13931-17) (!)TempDir removal: tempdir is to be PRESERVED: /var/amavis/tmp/amavis-20170201T075849-13931-A_gIx1Y7
Feb 1 08:26:10 mail amavis[13931]: (13931-17) (!)_DIE: register_proc: BDB N db_cursor: BDB0060 PANIC: fatal region error detected; run recovery, . at (eval 93) line 220.
Feb 1 08:26:10 mail amavis[13931]: (13931-17) (!)Amavis::END: DB unregistering failed:
This is the error that starts the issue each time.
After that, this error appears several times per second:
Feb 4 04:19:09 mail amavis[60847]: (!!)TROUBLE 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 93) line 338.
Feb 4 04:19:09 mail amavis[60847]: (!)_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 93) line 338.
Only solution is first to stop the amavisd service.
Then perform kill -9 on the surviving amavisd process.
My users are not happy that their mail is being queued several times per week
This seems the same as http://www.iredmail.org/forum/topic1203 … t-var.html , which was also on FreeBSD 11
I upgraded recently from FreeBSD 10 to 11, and then installed iredmail. This issue never occurred on FreeBSD 10...
Kind regards,
Wim
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.