1

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 wink

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.

2

Re: Amavisd crashes (almost) daily on FreeBSD 11.

wimvandijck wrote:

I upgraded recently from FreeBSD 10 to 11, and then installed iredmail. This issue never occurred on FreeBSD 10...

Did you upgrade all packages with ports tree?

3

Re: Amavisd crashes (almost) daily on FreeBSD 11.

ZhangHuangbin wrote:
wimvandijck wrote:

I upgraded recently from FreeBSD 10 to 11, and then installed iredmail. This issue never occurred on FreeBSD 10...

Did you upgrade all packages with ports tree?

Yes I did.

4

Re: Amavisd crashes (almost) daily on FreeBSD 11.

Seems some problem with bdb database. Please try to remove all bdb files under /var/amavis/db and restart Amavisd service.

5

Re: Amavisd crashes (almost) daily on FreeBSD 11.

ZhangHuangbin wrote:

Seems some problem with bdb database. Please try to remove all bdb files under /var/amavis/db and restart Amavisd service.

I had tried this already smile

But I tried it again, to be sure, and same thing just happened again... sad

6

Re: Amavisd crashes (almost) daily on FreeBSD 11.

Try this: You can find setting "$enable_db = 1;" in Amavisd config file, set it to "$enable_db = 0;", restart Amavisd service again.

7

Re: Amavisd crashes (almost) daily on FreeBSD 11.

ZhangHuangbin wrote:

Try this: You can find setting "$enable_db = 1;" in Amavisd config file, set it to "$enable_db = 0;", restart Amavisd service again.

I've set this this morning, so far, so good wink