Re: [exim] Bug#360696: Bug#360696: Failed to get write lock …

Top Page
Delete this message
Reply to this message
Author: Joachim Wieland
Date:  
To: exim-users
Subject: Re: [exim] Bug#360696: Bug#360696: Failed to get write lock for /var/spool/exim4/db/retry.lockfile:timedout
Hi,

(breaking thread on purpose because the mail I quote is quite old already)

On Tue, May 02, 2006 at 10:02:27AM +0100, Philip Hazel wrote:
> I would argue that there is a bug in BDB in that it shouldn't loop,
> whatever data file you throw at it.


Just for the records: I have just encountered the same loop problem.

This is the loop:

open("/var/spool/exim4/db/__db.wait-remote_smtp_smarthost",
O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0640) = -1 EEXIST (File exists)
open("/var/spool/exim4/db/__db.wait-remote_smtp_smarthost",
O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0640) = -1 EEXIST (File exists)
open("/var/spool/exim4/db/__db.wait-remote_smtp_smarthost",
O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0640) = -1 EEXIST (File exists)
stat64("/var/spool/exim4/db/wait-remote_smtp_smarthost", 0xbfbcecd0) = -1
ENOENT (No such file or directory)
open("/var/spool/exim4/db/__db.wait-remote_smtp_smarthost",
O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0640) = -1 EEXIST (File exists)
open("/var/spool/exim4/db/__db.wait-remote_smtp_smarthost",
O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0640) = -1 EEXIST (File exists)
open("/var/spool/exim4/db/__db.wait-remote_smtp_smarthost",
O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0640) = -1 EEXIST (File exists)
stat64("/var/spool/exim4/db/wait-remote_smtp_smarthost", 0xbfbcecd0) = -1
ENOENT (No such file or directory)

I bet it's a libdb bug.

It's basically a plain debian sarge system:

ii  exim4-daemon-l 4.50-8sarge2   lightweight exim MTA (v4) daemon
ii  libdb4.2       4.2.52-18      Berkeley v4.2 Database Libraries [runtime]



I renamed the __db.wait-remote_smtp_smarthost file (thus moving it out of the
way) and everything was fine.



Joachim