From owner-freebsd-questions@freebsd.org Sat Apr 15 04:13:52 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B201AD3E16A for ; Sat, 15 Apr 2017 04:13:52 +0000 (UTC) (envelope-from dnewman@networktest.com) Received: from mail8.networktest.com (mail8.networktest.com [IPv6:2607:f740:c::a13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9F4A41F90 for ; Sat, 15 Apr 2017 04:13:52 +0000 (UTC) (envelope-from dnewman@networktest.com) Received: from mail8.networktest.com (localhost [127.0.0.1]) by mail8.networktest.com (Postfix) with ESMTP id EDA4D26C010 for ; Fri, 14 Apr 2017 21:13:51 -0700 (PDT) X-Virus-Scanned: amavisd-new at mail8.networktest.com Received: from mail8.networktest.com ([127.0.0.1]) by mail8.networktest.com (mail8.networktest.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id BIEywtTRwV8q for ; Fri, 14 Apr 2017 21:13:49 -0700 (PDT) Received: from tejay.home (unknown [47.153.186.104]) by mail8.networktest.com (Postfix) with ESMTPSA id DCB2126C00F for ; Fri, 14 Apr 2017 21:13:47 -0700 (PDT) From: David Newman Subject: amavisd-new dies after perl 5.24 upgrade To: freebsd-questions@freebsd.org Organization: Network Test Inc. Message-ID: Date: Fri, 14 Apr 2017 21:13:47 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2017 04:13:52 -0000 Greetings. This is about a mail server running FreeBSD 11.0-RELEASE-p9 with packages, including amavisd-new-2.11.0_1,1, compiled from ports. After upgrading perl 5.20 -> 5.24 using the portmaster commands given in /usr/ports/UPDATING, amavisd panics with errors like this at a rate of many per second: Apr 14 15:22:43 mail8 amavis[54543]: (!)_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. The amavisd daemon worked OK prior to the perl upgrade. There's a previous thread about perl 5.24 upgrading in which someone suggested touching /var/amavis/db/db.env, but that didn't work here, and also the rest of that thread discusses portupgrade and not portmaster. In addition to the stuff in UPDATING I also tried recompiling all perl5 packages with 'portmaster -f p5-*' but that didn't help. I also ran 'portmaster amavisd-new' and rebooting but again that was no help. At this point I am manually restarting the amavisd service, but sometimes it stays up for only a few minutes, or less. Thanks in advance for troubleshooting clues. dn