Hi all, I've a dovecot server setup and occassionally clients cannot get mails from their inbox. When I inspect the maildir for that user, there is stale dovecot-uidlist.lock file, and imap process keeps waiting for release of the lock. Is there any other method to perform locking on dovecot-uidlist instead of using dotlock mechanism? It is creating maintenance problems if I need to remove those stale lock files everytime clients hit this problem Tony.
On 24.7.2007, at 11.33, Tony Tsang wrote:> I've a dovecot server setup and occassionally clients cannot get mails > from their inbox. When I inspect the maildir for that user, there is > stale dovecot-uidlist.lock file, and imap process keeps waiting for > release of the lock. Is there any other method to perform locking on > dovecot-uidlist instead of using dotlock mechanism? > > It is creating maintenance problems if I need to remove those stale > lock files everytime clients hit this problemThe lock is overridden after 2 minutes of waiting. I suppose it should be overridden immediately if it's too old though.. Hmm. I'll try to do something about this for 1.0.3. In any case you should rather figure out why you even have stale lock files and try to fix that. I'd think there would be something in error logs. Or are you using NFS? -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070724/e62e55f3/attachment-0002.bin>
On Tue, 2007-07-24 at 11:58 +0300, Timo Sirainen wrote:> On 24.7.2007, at 11.33, Tony Tsang wrote: > > > I've a dovecot server setup and occassionally clients cannot get mails > > from their inbox. When I inspect the maildir for that user, there is > > stale dovecot-uidlist.lock file, and imap process keeps waiting for > > release of the lock. Is there any other method to perform locking on > > dovecot-uidlist instead of using dotlock mechanism? > > > > It is creating maintenance problems if I need to remove those stale > > lock files everytime clients hit this problem > > The lock is overridden after 2 minutes of waiting. I suppose it > should be overridden immediately if it's too old though.. Hmm. I'll > try to do something about this for 1.0.3.Actually I was wrong about this. The lock is deleted immediately if dovecot-uidlist.lock's and dovecot-uidlist's ctime and mtime are all older than 2 minutes. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070801/d747faf3/attachment-0002.bin>