[Dovecot] imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory
hello
I see this message in the dovecot error log every time a user connect to IMAP service.
imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory
In the server's config I've this
mail_location = mbox:%h/:INBOX=/var/mail/%u:INDEX=/var/spool/dovecot/index/%u
As we can see INDEX files are not living in user's home directories but in /var/spool/dovecot/index/%u so why this error message ?
BTW : users access normally to their IMAP folders , I'm just curious about this message which is not marked as warning but error
Thank you
Please help us help you.
Always provide bare minimum system/config/error details, like:
Full doveconf -n output (don't 'describe' your config with a one line copy/paste from some random config file)
Full (untrimmed) logs exhibiting the problem
On 2012-08-01 3:19 AM, Frank Bonnet f.bonnet@esiee.fr wrote:
hello
I see this message in the dovecot error log every time a user connect to IMAP service.
imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory
In the server's config I've this
mail_location = mbox:%h/:INBOX=/var/mail/%u:INDEX=/var/spool/dovecot/index/%u
As we can see INDEX files are not living in user's home directories but in /var/spool/dovecot/index/%u so why this error message ?
BTW : users access normally to their IMAP folders , I'm just curious about this message which is not marked as warning but error
--
Best regards,
Charles
Yes sorry I forgot :-(
See attached the doveconf -n output
Thanks
On 08/01/2012 12:56 PM, Charles Marcus wrote:
Please help us help you.
Always provide bare minimum system/config/error details, like:
Full doveconf -n output (don't 'describe' your config with a one line copy/paste from some random config file)
Full (untrimmed) logs exhibiting the problem
On 2012-08-01 3:19 AM, Frank Bonnet f.bonnet@esiee.fr wrote:
hello
I see this message in the dovecot error log every time a user connect to IMAP service.
imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory
In the server's config I've this
mail_location = mbox:%h/:INBOX=/var/mail/%u:INDEX=/var/spool/dovecot/index/%u
As we can see INDEX files are not living in user's home directories but in /var/spool/dovecot/index/%u so why this error message ?
BTW : users access normally to their IMAP folders , I'm just curious about this message which is not marked as warning but error
-- CYBERDROID Inc.
Frank BONNET
01.45.92.66.17
Service des Moyens Informatiques Generaux
ESIEE PARIS Cité Descartes / BP 99 93162 NOISY-LE-GRAND Cedex http://www.esiee.fr http://www.esiee.fr/
On 2012-08-01 7:03 AM, Frank Bonnet f.bonnet@esiee.fr wrote:
Yes sorry I forgot :-(
See attached the doveconf -n output
Logs?
On 08/01/2012 12:56 PM, Charles Marcus wrote:
Please help us help you.
Always provide bare minimum system/config/error details, like:
Full doveconf -n output (don't 'describe' your config with a one line copy/paste from some random config file)
Full (untrimmed) logs exhibiting the problem
--
Best regards,
Charles
On 08/01/2012 01:16 PM, Charles Marcus wrote:
On 2012-08-01 7:03 AM, Frank Bonnet f.bonnet@esiee.fr wrote:
Yes sorry I forgot :-(
See attached the doveconf -n output
Logs?
All lines are IDENTICALS except the user id I put MY login but it happen for ALL users when they connect
Aug 01 13:06:09 imap(bonnetf): Error: opendir(/user/bonnetf/.imap) failed: No such file or directory
BTW : I use real unix users thru nss_ldap & pam_ldap auth, no virtual user
On 08/01/2012 12:56 PM, Charles Marcus wrote:
Please help us help you.
Always provide bare minimum system/config/error details, like:
Full doveconf -n output (don't 'describe' your config with a one line copy/paste from some random config file)
Full (untrimmed) logs exhibiting the problem
-- CYBERDROID Inc.
Frank BONNET
01.45.92.66.17
Service des Moyens Informatiques Generaux
ESIEE PARIS Cité Descartes / BP 99 93162 NOISY-LE-GRAND Cedex http://www.esiee.fr http://www.esiee.fr/
On 1.8.2012, at 14.21, Frank Bonnet wrote:
Aug 01 13:06:09 imap(bonnetf): Error: opendir(/user/bonnetf/.imap) failed: No such file or directory
I don't see any obvious way for this to happen. Can you reproduce it by running imap process directly and talking imap protocol? Something like this would be helpful:
chmod a+rw /var/run/dovecot/config gdb /usr/local/lib/dovecot/imap b i_error run <make gdb stop> bt full
where the <make gdb stop> will probably work if you do something like:
a list "" * b lsub "" * c select inbox
if not, check what IMAP commands your IMAP client sends when it fails. http://wiki2.dovecot.org/Debugging/Rawlog
On 08/01/2012 01:27 PM, Timo Sirainen wrote:
On 1.8.2012, at 14.21, Frank Bonnet wrote:
Aug 01 13:06:09 imap(bonnetf): Error: opendir(/user/bonnetf/.imap) failed: No such file or directory I don't see any obvious way for this to happen. Can you reproduce it by running imap process directly and talking imap protocol? Something like this would be helpful:
chmod a+rw /var/run/dovecot/config gdb /usr/local/lib/dovecot/imap
it starts badly
mail# gdb /usr/local/libexec/dovecot/imap GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)... (gdb) b i_error Function "i_error" not defined.
b i_error run <make gdb stop> bt full
where the <make gdb stop> will probably work if you do something like:
a list "" * b lsub "" * c select inbox
if not, check what IMAP commands your IMAP client sends when it fails. http://wiki2.dovecot.org/Debugging/Rawlog
-- CYBERDROID Inc.
Frank BONNET
01.45.92.66.17
Service des Moyens Informatiques Generaux
ESIEE PARIS Cité Descartes / BP 99 93162 NOISY-LE-GRAND Cedex http://www.esiee.fr http://www.esiee.fr/
On 08/01/2012 01:27 PM, Timo Sirainen wrote:
On 1.8.2012, at 14.21, Frank Bonnet wrote:
Aug 01 13:06:09 imap(bonnetf): Error: opendir(/user/bonnetf/.imap) failed: No such file or directory I don't see any obvious way for this to happen. Can you reproduce it by running imap process directly and talking imap protocol? Something like this would be helpful:
chmod a+rw /var/run/dovecot/config gdb /usr/local/lib/dovecot/imap b i_error run <make gdb stop> bt full
where the <make gdb stop> will probably work if you do something like:
a list "" * b lsub "" * c select inbox
if not, check what IMAP commands your IMAP client sends when it fails. http://wiki2.dovecot.org/Debugging/Rawlog
I ran it anyway , the output is below
%gdb /usr/local/libexec/dovecot/imap GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)... (gdb) (gdb) b i_error Function "i_error" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (i_error) pending. (gdb) run Starting program: /usr/local/libexec/dovecot/imap (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New LWP 102225] (no debugging symbols found)...Breakpoint 2 at 0x800ba4430 Pending breakpoint "i_error" resolved [New Thread 801c07400 (LWP 102225/imap)] Debug: Effective uid=3003, gid=3010, home=/user/bonnetf Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=mbox:/user/bonnetf/:INBOX=/var/mail/bonnetf:INDEX=/var/spool/dovecot/index/bonnetf Debug: fs: root=/user/bonnetf, index=/var/spool/dovecot/index/bonnetf, control=, inbox=/var/mail/bonnetf, alt=
- PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE] Logged in as bonnetf a list "" *
- LIST (\NoInferiors \UnMarked) "/" ".dovecot.sieve"
- LIST (\NoInferiors \UnMarked) "/" "NetAPP"
- LIST (\NoInferiors \Marked) "/" "Admin"
- LIST (\NoInferiors \UnMarked) "/" "CCIP"
- LIST (\NoInferiors \UnMarked) "/" "Clement"
- LIST (\Noselect \HasChildren) "/" "sieve"
- LIST (\Noselect \HasChildren) "/" "sieve/tmp"
- LIST (\NoInferiors \UnMarked) "/" "sieve/roundcube.sieve"
- LIST (\NoInferiors \UnMarked) "/" "Drafts"
- LIST (\NoInferiors \UnMarked) "/" "ESIEE"
- LIST (\NoInferiors \UnMarked) "/" ".dovecot.sieve.log"
- LIST (\NoInferiors \UnMarked) "/" ".dovecot.svbin"
- LIST (\NoInferiors \UnMarked) "/" "FPS"
- LIST (\NoInferiors \Marked) "/" "PRIVE"
- LIST (\NoInferiors \UnMarked) "/" "Sent"
- LIST (\NoInferiors \UnMarked) "/" ".vacation.msg"
- LIST (\NoInferiors \UnMarked) "/" "Templates"
- LIST (\NoInferiors \UnMarked) "/" "Trash"
- LIST (\NoInferiors \UnMarked) "/" "UMLV"
- LIST (\NoInferiors \UnMarked) "/" "Caille"
- LIST (\NoInferiors \UnMarked) "/" "Postmaster"
- LIST (\NoInferiors \UnMarked) "/" "Junk"
- LIST (\NoInferiors \UnMarked) "/" "Archives"
- LIST (\NoInferiors \UnMarked) "/" "bkup-ldap"
- LIST (\NoInferiors \UnMarked) "/" "Deleted Messages"
- LIST (\NoInferiors \UnMarked) "/" "Apple"
- LIST (\NoInferiors \UnMarked) "/" "Notes"
- LIST (\NoInferiors \UnMarked) "/" "EmailStuff"
- LIST (\NoInferiors \UnMarked) "/" "LISTSERV"
- LIST (\NoInferiors \UnMarked) "/" "RENATER"
- LIST (\NoInferiors \UnMarked) "/" "Free"
- LIST (\NoInferiors \UnMarked) "/" "filers"
- LIST (\NoInferiors \UnMarked) "/" "PRIVE2"
- LIST (\NoInferiors \UnMarked) "/" "SUSE-NOVELL"
- LIST (\NoInferiors \UnMarked) "/" "SYBASE"
- LIST (\NoInferiors \UnMarked) "/" "Nono"
- LIST (\NoInferiors \UnMarked) "/" "NGINX"
- LIST (\NoInferiors \UnMarked) "/" "DIFFGEN"
- LIST (\NoInferiors \UnMarked) "/" "ADESOFT"
- LIST (\NoInferiors \UnMarked) "/" "RENATER-TCS"
- LIST (\NoInferiors \UnMarked) "/" "Forensic"
- LIST (\NoInferiors \UnMarked) "/" "EnCours"
- LIST (\NoInferiors \UnMarked) "/" "BSD"
- LIST (\NoInferiors \UnMarked) "/" "NYP"
- LIST (\NoInferiors \UnMarked) "/" "Sent Messages"
- LIST (\NoInferiors \UnMarked) "/" ".forward"
- LIST (\HasNoChildren) "/" "INBOX" a OK List completed. b lsub "" *
- LSUB () "/" "Admin"
- LSUB () "/" "CCIP"
- LSUB () "/" "Clement"
- LSUB () "/" "Drafts"
- LSUB () "/" "ESIEE"
- LSUB () "/" "FPS"
- LSUB () "/" "PRIVE"
- LSUB () "/" "Sent"
- LSUB () "/" "Templates"
- LSUB () "/" "Trash"
- LSUB () "/" "UMLV"
- LSUB () "/" "Caille"
- LSUB () "/" "Postmaster"
- LSUB () "/" "Junk"
- LSUB () "/" "Archives"
- LSUB () "/" "bkup-ldap"
- LSUB () "/" "Apple"
- LSUB () "/" "Deleted Messages"
- LSUB () "/" "Sent Messages"
- LSUB () "/" "Notes"
- LSUB () "/" "EmailStuff"
- LSUB () "/" "LISTSERV"
- LSUB () "/" "RENATER"
- LSUB () "/" "Free"
- LSUB () "/" "filers"
- LSUB () "/" "PRIVE2"
- LSUB () "/" "INBOX"
- LSUB () "/" "SUSE-NOVELL"
- LSUB () "/" "SYBASE"
- LSUB () "/" "Nono"
- LSUB () "/" "NGINX"
- LSUB () "/" "DIFFGEN"
- LSUB () "/" "ADESOFT"
- LSUB () "/" "RENATER-TCS"
- LSUB () "/" "Forensic"
- LSUB () "/" "EnCours"
- LSUB () "/" "BSD"
- LSUB () "/" "NYP"
- LSUB () "/" "NetAPP" b OK Lsub completed. c select inbox
- FLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk Junk $Forwarded $MDNSent $label1 $label4)
- OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk Junk $Forwarded $MDNSent $label1 $label4 \*)] Flags permitted.
- 564 EXISTS
- 0 RECENT
- OK [UNSEEN 557] First unseen.
- OK [UIDVALIDITY 1219087912] UIDs valid
- OK [UIDNEXT 1049549] Predicted next UID
- OK [NOMODSEQ] No permanent modsequences c OK [READ-WRITE] Select completed.
On Wed, 2012-08-01 at 14:00 +0200, Frank Bonnet wrote:
where the <make gdb stop> will probably work if you do something like:
a list "" * b lsub "" * c select inbox
if not, check what IMAP commands your IMAP client sends when it fails. http://wiki2.dovecot.org/Debugging/Rawlog
I ran it anyway , the output is below
All good, except the error didn't happen. So you'd need to look at the IMAP traffic to see which command generates the error.
On 08/01/2012 02:07 PM, Timo Sirainen wrote:
On Wed, 2012-08-01 at 14:00 +0200, Frank Bonnet wrote:
where the <make gdb stop> will probably work if you do something like:
a list "" * b lsub "" * c select inbox
if not, check what IMAP commands your IMAP client sends when it fails. http://wiki2.dovecot.org/Debugging/Rawlog
I ran it anyway , the output is below All good, except the error didn't happen. So you'd need to look at the IMAP traffic to see which command generates the error.
we use thunderbird, maybe trying with evolution give some way ?
On 1.8.2012, at 15.10, Frank Bonnet wrote:
On 08/01/2012 02:07 PM, Timo Sirainen wrote:
On Wed, 2012-08-01 at 14:00 +0200, Frank Bonnet wrote:
where the <make gdb stop> will probably work if you do something like:
a list "" * b lsub "" * c select inbox
if not, check what IMAP commands your IMAP client sends when it fails. http://wiki2.dovecot.org/Debugging/Rawlog
I ran it anyway , the output is below All good, except the error didn't happen. So you'd need to look at the IMAP traffic to see which command generates the error.
we use thunderbird, maybe trying with evolution give some way ?
Something is wrong in Dovecot since it's logging an error. I just can't fix it unless I know what IMAP command causes the error.
On 08/01/2012 02:19 PM, Timo Sirainen wrote:
On 1.8.2012, at 15.10, Frank Bonnet wrote:
On 08/01/2012 02:07 PM, Timo Sirainen wrote:
On Wed, 2012-08-01 at 14:00 +0200, Frank Bonnet wrote:
where the <make gdb stop> will probably work if you do something like:
a list "" * b lsub "" * c select inbox
if not, check what IMAP commands your IMAP client sends when it fails. http://wiki2.dovecot.org/Debugging/Rawlog I ran it anyway , the output is below All good, except the error didn't happen. So you'd need to look at the IMAP traffic to see which command generates the error.
we use thunderbird, maybe trying with evolution give some way ? Something is wrong in Dovecot since it's logging an error. I just can't fix it unless I know what IMAP command causes the error.
ok understood , I have looked carrefully in logs , it *seems* to happen ONLY at the first connection of the day ... would it be possible ? would it be a caching problem ?
On 08/01/2012 02:19 PM, Timo Sirainen wrote:
On 1.8.2012, at 15.10, Frank Bonnet wrote:
On 08/01/2012 02:07 PM, Timo Sirainen wrote:
On Wed, 2012-08-01 at 14:00 +0200, Frank Bonnet wrote:
where the <make gdb stop> will probably work if you do something like:
a list "" * b lsub "" * c select inbox
if not, check what IMAP commands your IMAP client sends when it fails. http://wiki2.dovecot.org/Debugging/Rawlog I ran it anyway , the output is below All good, except the error didn't happen. So you'd need to look at the IMAP traffic to see which command generates the error.
we use thunderbird, maybe trying with evolution give some way ? Something is wrong in Dovecot since it's logging an error. I just can't fix it unless I know what IMAP command causes the error.
do you think imaptest could help ?
Timo Sirainen wrote:
On Wed, 2012-08-01 at 14:00 +0200, Frank Bonnet wrote:
where the <make gdb stop> will probably work if you do something like:
a list "" * b lsub "" * c select inbox
if not, check what IMAP commands your IMAP client sends when it fails. http://wiki2.dovecot.org/Debugging/Rawlog
I ran it anyway , the output is below
All good, except the error didn't happen. So you'd need to look at the IMAP traffic to see which command generates the error.
Frank, please do a plaintext connect on IMAP port 143 from your mail client to dovecot with a changed test password and record your traffic using tcpdump or wireshark, something like this:
tcpdump -n -s 0 -w /tmp/pcap.dat -i eth0 tcp port 143
Then view the file pcap.dat with wireshark[1], right click on the TCP connection and select "Follow TCP Stream" from the context menu. Then you'll get the IMAP commands and responses spoken between Thunderbird and Dovecot.
Regards Daniel
[1] http://www.wireshark.org/
On 08/02/2012 12:04 AM, Daniel Parthey wrote:
Timo Sirainen wrote:
On Wed, 2012-08-01 at 14:00 +0200, Frank Bonnet wrote:
where the <make gdb stop> will probably work if you do something like:
a list "" * b lsub "" * c select inbox
if not, check what IMAP commands your IMAP client sends when it fails. http://wiki2.dovecot.org/Debugging/Rawlog I ran it anyway , the output is below All good, except the error didn't happen. So you'd need to look at the IMAP traffic to see which command generates the error. Frank, please do a plaintext connect on IMAP port 143 from your mail client to dovecot with a changed test password and record your traffic using tcpdump or wireshark, something like this:
tcpdump -n -s 0 -w /tmp/pcap.dat -i eth0 tcp port 143
Then view the file pcap.dat with wireshark[1], right click on the TCP connection and select "Follow TCP Stream" from the context menu. Then you'll get the IMAP commands and responses spoken between Thunderbird and Dovecot.
Regards Daniel
Hello
Thanks for your help.
well I did but haven't found anything interrestiing in tcpdump log ... and the problem did not happened this morning since I have mail_debug=no in 10-logging.conf file then restart dovecot ...
BTW if it matter the users's home directories is a link than point to the real directory.
participants (4)
-
Charles Marcus
-
Daniel Parthey
-
Frank Bonnet
-
Timo Sirainen