[Dovecot] fstat() failed with file */dovecot.index.log
Hi list!
I'm using Dovecot along with Postfix (with MySQL) and I'm having some curious error messages in the mail log. Everything runs normally and suddenly I start viewing messages like these:
Oct 12 14:24:23 dovecot: last message repeated 5 times Oct 12 14:25:23 dovecot: last message repeated 6 times Oct 12 14:26:23 dovecot: last message repeated 6 times Oct 12 14:27:23 dovecot: last message repeated 6 times Oct 12 14:29:22 mail dovecot: imap(nicolas@devels.es): Error: fstat() failed with file /home/vmail/devels.es/nicolas/Maildir/dovecot.index.log: No such file or directory Oct 12 14:30:23 dovecot: last message repeated 5 times Oct 12 14:31:23 dovecot: last message repeated 6 times Oct 12 14:33:22 mail dovecot: imap(nicolas@devels.es): Error: fstat() failed with file /home/vmail/devels.es/nicolas/Maildir/dovecot.index.log: No such file or directory Oct 12 14:34:23 dovecot: last message repeated 5 times Oct 12 14:35:23 dovecot: last message repeated 6 times Oct 12 14:36:01 mail dovecot: imap(nicolas@devels.es): Error: fstat() failed with file /home/vmail/devels.es/nicolas/Maildir/dovecot.index.log: No such file or directory
This file which Dovecot references to indeed exists, is accesible, etc. Once I get the first of these messages, the user stops receiving e-mails (the mail server keeps receiving them normally, though) until he restarts the mail client. Then the error msg is gone and he receives all their unreceived messages. This error appears in 6-12h. intervals once the user starts their client.
Version is 2.0.19, and dovecot -n is:
root@mail:~# dovecot -n # 2.0.19: /etc/dovecot/dovecot.conf # OS: Linux 3.2.0-32-generic-pae i686 Ubuntu 12.04.1 LTS ext4 disable_plaintext_auth = no log_timestamp = "%Y-%m-%d %H:%M:%S " mail_location = maildir:/home/vmail/%d/%n/Maildir mailbox_idle_check_interval = 2 mins namespace { inbox = yes location = prefix = INBOX. separator = . type = private } passdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } protocols = imap pop3 service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-master { mode = 0600 user = vmail } user = root } ssl_cert =
Thanks so much for any help!
Nicolás
On 21.10.2012, at 14.15, Nicolás wrote:
Oct 12 14:29:22 mail dovecot: imap(nicolas@devels.es): Error: fstat() failed with file /home/vmail/devels.es/nicolas/Maildir/dovecot.index.log: No such file or directory
fstat() can't normally fail with ENOENT. Are you using NFS or some other non-local filesystem?
El 21/10/2012 12:26, Timo Sirainen escribió:
On 21.10.2012, at 14.15, Nicolás wrote:
Oct 12 14:29:22 mail dovecot: imap(nicolas@devels.es): Error: fstat() failed with file /home/vmail/devels.es/nicolas/Maildir/dovecot.index.log: No such file or directory fstat() can't normally fail with ENOENT. Are you using NFS or some other non-local filesystem?
No, on that machine I'm just using local filesystem, no NFS.
On 21.10.2012, at 14.29, Nicolás wrote:
El 21/10/2012 12:26, Timo Sirainen escribió:
On 21.10.2012, at 14.15, Nicolás wrote:
Oct 12 14:29:22 mail dovecot: imap(nicolas@devels.es): Error: fstat() failed with file /home/vmail/devels.es/nicolas/Maildir/dovecot.index.log: No such file or directory fstat() can't normally fail with ENOENT. Are you using NFS or some other non-local filesystem?
No, on that machine I'm just using local filesystem, no NFS.
Then it's a kernel bug. Although I guess there are some workarounds that could be done on Dovecot code.
El 21/10/2012 14:58, Timo Sirainen escribió:
On 21.10.2012, at 14.29, Nicolás wrote:
El 21/10/2012 12:26, Timo Sirainen escribió:
On 21.10.2012, at 14.15, Nicolás wrote:
Oct 12 14:29:22 mail dovecot: imap(nicolas@devels.es): Error: fstat() failed with file /home/vmail/devels.es/nicolas/Maildir/dovecot.index.log: No such file or directory fstat() can't normally fail with ENOENT. Are you using NFS or some other non-local filesystem?
No, on that machine I'm just using local filesystem, no NFS. Then it's a kernel bug. Although I guess there are some workarounds that could be done on Dovecot code.
Well, at least it's good to know it's not a misconfiguration :-) If there's any additional info I can provide feel free to ask.
Regards,
Nicolás
On 21.10.2012, at 20.58, Nicolás wrote:
El 21/10/2012 14:58, Timo Sirainen escribió:
On 21.10.2012, at 14.29, Nicolás wrote:
El 21/10/2012 12:26, Timo Sirainen escribió:
On 21.10.2012, at 14.15, Nicolás wrote:
Oct 12 14:29:22 mail dovecot: imap(nicolas@devels.es): Error: fstat() failed with file /home/vmail/devels.es/nicolas/Maildir/dovecot.index.log: No such file or directory fstat() can't normally fail with ENOENT. Are you using NFS or some other non-local filesystem?
No, on that machine I'm just using local filesystem, no NFS. Then it's a kernel bug. Although I guess there are some workarounds that could be done on Dovecot code.
Well, at least it's good to know it's not a misconfiguration :-) If there's any additional info I can provide feel free to ask.
Any way you can reproduce this somewhat easily? For example with http://imapwiki.org/ImapTest ?
participants (2)
-
Nicolás
-
Timo Sirainen