[Dovecot] imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory

Frank Bonnet f.bonnet at esiee.fr
Wed Aug 1 15:00:24 EEST 2012


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.





More information about the dovecot mailing list