Jack Stewart
2009-Jan-07 07:11 UTC
[Dovecot] Sudden, large numbers of "Timeout while waiting for lock for transaction log ..."
Hi, Up until yesterday, our environment which consists an NFS maildir file store with multiple front end servers, was working fine. We've verified that the server clocks and machines clocks are in sync. Starting yesterday afternoon, We are getting ~850 log entries of the form 'Timeout while waiting for lock for transaction log files' or 'Our dotlock file was modified, assuming it wasn't overridden (kept it 180 sec) Based on packet capture, just one of these index files shows 28553 GETATTRs queries in in a one minute. At this happened at exactly the same time on all of our servers, it is pretty clear that the back-end system (or network) is a major factor although nobody will confess that they made any changes. It would be helpful, and very appreciated, to get more information about what this might be so that we can nudge the correct people to undo whatever it is that they didn't do. We are running currently dovecot 1.1.3 an 6 01:21:02 earth-griffen dovecot: IMAP(zabala): Timeout while waiting for lock for transaction log file /var/spool/dovecot/indexes/z/zabala/.INBOX/dovecot.index.log Jan 6 01:21:02 earth-griffen dovecot: IMAP(zabala): Our dotlock file /var/spool/maildir/z/zabala/dovecot-uidlist.lock was deleted (kept it 180 secs) Jan 6 01:21:02 earth-griffen dovecot: IMAP(zabala): Timeout while waiting for lock for transaction log file /var/spool/dovecot/indexes/z/zabala/.INBOX/dovecot.index.log Jan 6 01:21:02 earth-griffen dovecot: IMAP(zabala): Our dotlock file /var/spool/maildir/z/zabala/dovecot-uidlist.lock was modified (1231233482 vs 1231233662), assuming it wasn't overridden (kept it 180 secs) Jan 6 01:21:02 earth-griffen dovecot: IMAP(zabala): Timeout while waiting for lock for transaction log file /var/spool/dovecot/indexes/z/zabala/.INBOX/dovecot.index.log Jan 6 01:21:02 earth-griffen dovecot: IMAP(zabala): Our dotlock file /var/spool/maildir/z/zabala/dovecot-uidlist.lock was modified (1231233482 vs 1231233662), assuming it wasn't overridden (kept it 180 secs) Jan 6 01:21:04 fire-griffen dovecot: IMAP(sukwon): Timeout while waiting for lock for transaction log file /var/spool/dovecot/indexes/s/sukwon/.Trash/dovecot.index.log -- Jack Stewart Academic Computing Services, IMSS, California Institute of Technology jstewart at caltech.edu 626-395-4690 office
Timo Sirainen
2009-Jan-07 16:22 UTC
[Dovecot] Sudden, large numbers of "Timeout while waiting for lock for transaction log ..."
On Tue, 2009-01-06 at 23:11 -0800, Jack Stewart wrote:> an 6 01:21:02 earth-griffen dovecot: IMAP(zabala): Timeout while > waiting for lock for transaction log file > /var/spool/dovecot/indexes/z/zabala/.INBOX/dovecot.index.logThis is the main problem. So indexes are also on NFS? What locking are they using (dovecot -n output)? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090107/99c6debc/attachment-0002.bin>
Jack Stewart
2009-Jan-07 16:32 UTC
[Dovecot] Sudden, large numbers of "Timeout while waiting for lock for transaction log ..."
Timo Sirainen wrote:> On Tue, 2009-01-06 at 23:11 -0800, Jack Stewart wrote: >> an 6 01:21:02 earth-griffen dovecot: IMAP(zabala): Timeout while >> waiting for lock for transaction log file >> /var/spool/dovecot/indexes/z/zabala/.INBOX/dovecot.index.log > > This is the main problem. So indexes are also on NFS? What locking are > they using (dovecot -n output)? >Yes, the indexes are also on NFS. The locking is fcntl() - the default. Below is the dovecot -n output. One of the guys that I work with appears to clear up the problem for now - I think it was via manual deletion of the indexes and processes that were logging errors but I won't know for sure until he gets in. # 1.1.3: /etc/dovecot.d/imap-server-its-caltech-edu.cfg base_dir: /var/run/dovecot/imap-server-its/ syslog_facility: local4 protocols: imap imaps listen: *:10143 ssl_listen: *:10993 ssl_ca_file: /etc/pki/dovecot/certs/caltech-ca.pem ssl_cert_file: /etc/pki/dovecot/certs/imap-server.its.caltech.edu.pem ssl_key_file: /etc/pki/dovecot/private/imap-server.its.caltech.edu.key disable_plaintext_auth: yes login_dir: /var/run/dovecot/imap-server-its//login login_executable: /opt/dovecot/libexec/dovecot/imap-login login_processes_count: 16 login_max_processes_count: 2048 max_mail_processes: 4096 mail_max_userip_connections: 1024 verbose_proctitle: yes mail_location: maildir:/var/spool/maildir/%1Ln/%Ln:INDEX=/var/spool/dovecot/indexes/%1Ln/%Ln mail_debug: yes mail_full_filesystem_access: yes mmap_disable: yes mail_nfs_storage: yes mail_nfs_index: yes mail_plugins: fts fts_squat imap_capability: IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ CHILDREN NAMESPACE LOGIN-REFERRALS UIDPLUS LIST-EXTENDED I18NLEVEL=1 imap_client_workarounds: delay-newmail netscape-eoh pop3_reuse_xuidl: yes pop3_uidl_format: UID%v-%u namespace: type: private separator: . prefix: Mail. inbox: yes list: yes subscriptions: yes auth default: mechanisms: plain login verbose: yes passdb: driver: ldap args: /etc/dovecot.conf-ldap userdb: driver: static args: uid=vmail gid=mail home=/var/spool/maildir/%1Ln/%Ln socket: type: listen master: path: /var/run/dovecot/imap-server-its/auth-master mode: 384 user: vmail group: mail
Reasonably Related Threads
- NFS performance and 1.1.3 - what can you (unofficially) get away with?
- Using a ramdisk but Timeout while waiting for lock for transaction log file
- "Timeout (180s) while waiting for lock for transaction log file" since 2.3 upgrade?
- "Timeout (180s) while waiting for lock for transaction log file" since 2.3 upgrade?
- Timeout while waiting for lock for transaction log file