I have an installation that sometimes acts strangely:
Jun 12 11:28:00 mail dovecot: imap-login: Login: user=<nadia>, method=PLAIN, rip=10.10.10.103, lip=10.10.10.254 Jun 12 11:53:59 mail dovecot: IMAP(nadia): inotify_add_watch(/var/spool/mail/nadia/new) failed: No such file or directory Jun 12 11:53:59 mail dovecot: IMAP(nadia): stat(/var/spool/mail/nadia/new) failed: No such file or directory Jun 12 11:56:14 mail last message repeated 5 times Jun 12 11:58:14 mail last message repeated 2 times Jun 12 12:00:14 mail last message repeated 2 times Jun 12 12:02:14 mail last message repeated 2 times Jun 12 12:02:14 mail dovecot: IMAP(nadia): stat(/var/spool/mail/nadia/new) failed: No such file or directory Jun 12 12:03:23 mail dovecot: IMAP(nadia): Disconnected: Logged out ..... Jun 13 12:08:01 mail dovecot: IMAP(nadia): unlink(/var/spool/mail/nadia/cur/:2,ST) failed: Is a directory
Needless to say that no modification has been made to the server for many days and the user did not complain until that time.
Could it be Dovecot? Is there a way to trace this error?
The MTS is Postfix and in that period the user did not receive any mail
The system is a Fedora 6 2.6.20-1.2952.fc6 #1 SMP Wed May 16 17:59:13 EDT 2007 i686 i686 i386 GNU/Linux
Ciao, luigi
-- / +--[Luigi Rosa]-- \
You cannot achieve the impossible without attempting the absurd.
On Wed, 2007-06-13 at 16:02 +0200, Luigi Rosa wrote:
I have an installation that sometimes acts strangely:
Jun 12 11:28:00 mail dovecot: imap-login: Login: user=<nadia>, method=PLAIN, rip=10.10.10.103, lip=10.10.10.254 Jun 12 11:53:59 mail dovecot: IMAP(nadia): inotify_add_watch(/var/spool/mail/nadia/new) failed: No such file or directory
Is /var/spool/mail/nadia supposed to be a maildir or a mbox? Show dovecot -n output?
Timo Sirainen said the following on 16/6/2007 0:50:
Jun 12 11:28:00 mail dovecot: imap-login: Login: user=<nadia>, method=PLAIN, rip=10.10.10.103, lip=10.10.10.254 Jun 12 11:53:59 mail dovecot: IMAP(nadia): inotify_add_watch(/var/spool/mail/nadia/new) failed: No such file or directory
Is /var/spool/mail/nadia supposed to be a maildir or a mbox?
maildir It is a mail dir sice january 3rd and works fine everyday, with the exception of few events like the one I described.
Show dovecot -n output?
# dovecot -n # /etc/dovecot.conf base_dir: /var/run/dovecot/ syslog_facility: local5 ssl_disable: yes disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/local/libexec/dovecot/imap-login login_greeting: Ready. login_greeting_capability: yes login_processes_count: 5 verbose_proctitle: yes mail_extra_groups: mail mail_location: maildir:/var/spool/mail/%u/ maildir_copy_with_hardlinks: yes imap_client_workarounds: outlook-idle tb-extra-mailbox-sep delay-newmail auth default: passdb: driver: pam args: dovecot passdb: driver: shadow userdb: driver: passwd
The filesystem es ext3 mounted on a software Linux RAID1 partition.
Dovecot has been compiled with ./configure --with-shadow -with-pam --without-ssl --disable-ipv6 --with-pop3d --sysconfdir=/etc --localstatedir=/var
Ciao, luigi
-- / +--[Luigi Rosa]-- \
Hofstadter's Law: It always takes longer than you expect, even when you take Hofstadter's Law into account.
On Wed, 2007-06-13 at 16:02 +0200, Luigi Rosa wrote:
I have an installation that sometimes acts strangely:
Jun 12 11:28:00 mail dovecot: imap-login: Login: user=<nadia>, method=PLAIN, rip=10.10.10.103, lip=10.10.10.254 Jun 12 11:53:59 mail dovecot: IMAP(nadia): inotify_add_watch(/var/spool/mail/nadia/new) failed: No such file or directory Jun 12 11:53:59 mail dovecot: IMAP(nadia): stat(/var/spool/mail/nadia/new) failed: No such file or directory Jun 12 11:56:14 mail last message repeated 5 times Jun 12 11:58:14 mail last message repeated 2 times Jun 12 12:00:14 mail last message repeated 2 times Jun 12 12:02:14 mail last message repeated 2 times Jun 12 12:02:14 mail dovecot: IMAP(nadia): stat(/var/spool/mail/nadia/new) failed: No such file or directory
These pretty clearly say that the new/ directory doesn't exist. I've no idea why, but since that's the INBOX I can't think of a way Dovecot could cause this.
Jun 12 12:03:23 mail dovecot: IMAP(nadia): Disconnected: Logged out ..... Jun 13 12:08:01 mail dovecot: IMAP(nadia): unlink(/var/spool/mail/nadia/cur/:2,ST) failed: Is a directory
And here you for some reason have a "cur/:2,ST" directory. This sounds like the new/ directory was renamed to cur/:2,
Dovecot recreates the new/ directory again so this problem fixed itself the next time the mailbox was selected. Except the :2,ST directory doesn't get deleted unless you delete it manually.
Timo Sirainen said the following on 17/6/2007 12:06:
These pretty clearly say that the new/ directory doesn't exist. I've no idea why, but since that's the INBOX I can't think of a way Dovecot could cause this.
Neither I. I reported this issue because is VERY VERY strange. The Linux installation on server is quite simple, there are half a dozen users and nobody puts his hands on the server. What drives me mad is that I cannot reproduce the error, nor I can relat the error to anything. :(
And here you for some reason have a "cur/:2,ST" directory. This sounds like the new/ directory was renamed to cur/:2, Dovecot recreates the new/ directory again so this problem fixed itself the next time the mailbox was selected. Except the :2,ST directory doesn't get deleted unless you delete it manually.
BINGO! Your evaluation of the situation is 100% exact. The annoying side of this situation is that the mailbox is unusable until the :2,ST directory is removed.
I am going to install 1.0.1, I hope that the things will get better.
Ciao, luigi
-- / +--[Luigi Rosa]-- \
F u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.
participants (2)
-
Luigi Rosa
-
Timo Sirainen