Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Oct 2018 00:39:07 +0200
From:      Mark Martinec <Mark.Martinec+freebsd@ijs.si>
To:        ports@freebsd.org
Cc:        Miroslav Lachman <000.fbsd@quip.cz>
Subject:   Re: amavisd-new failed to start after upgrade to FreeBSD 11.2
Message-ID:  <3f04d73c55ea9b83537056a05835e25a@ijs.si>
In-Reply-To: <b9e89b68-ea45-7a49-a8a0-af589fc1c323@smeets.xyz>
References:  <26c1950d-fe76-4164-7bc5-3f625bb42921@quip.cz> <cff8b75e-f716-e33c-1c95-d14a5db6b612@quip.cz> <b9e89b68-ea45-7a49-a8a0-af589fc1c323@smeets.xyz>

next in thread | previous in thread | raw e-mail | index | archive | help
>> Miroslav Lachman wrote on 2018/10/04 11:12:
>>> I upgraded mailserver from 10.4 to 11.2 (it is amd64 with GENERIC
>>> kernel).
>>> All packages were reinstalled from repository built in our poudriere
>>> for 11.2. Everything works except amavisd-new.
>>> Oct  4 10:21:17 roxy amavis[89209]: (!!)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 process. at (eval 93) 
>>> line 338.
>>> Oct  4 10:21:17 roxy amavis[89209]: (!)_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 process. 
>>> at (eval 93) line 338.

>> for the records - 8 hours after upgrad and the same error happens on
>> another mailserver. Amavisd is spamming log with errors about "BDB
>> can't connect db env" and does not pass any e-mail messages.
>> 
>>> I found the same reports on the internet but no solution how to fix
>>> this. (enable_db=0 is temporary workaround but it disables some
>>> functions)
>> 
>>> Are there somebody with working setup of Amavisd-new on FreeBSD 11.2
>>> with enable_db=1?

2018-10-05 22:18, je Florian Smeets via freebsd-ports napisal
> I've had to set enable_db = 0 on all my instances.
> Florian

Probably not the answer you are looking for, but: ever since Redis 
database
backend was introduced five years ago to amavis (see 2.8.1 release 
notes),
and soon afterwards also as a SpamAssassin bayes back-end, I never 
looked
back at BerkeleyDB again. It was all trouble - the sooner you switch to
redis, the better - for reliability and speed, and also for added amavis
functionality (pen pals, IP address reputations).

   Mark



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3f04d73c55ea9b83537056a05835e25a>