20 messages in net.sourceforge.lists.courier-users[courier-users] RE: Making progress n...
FromSent OnAttachments
Bryan RentoulSep 17, 2003 12:50 pm 
Tim HunterSep 17, 2003 1:23 pm 
Jim GiffordSep 17, 2003 1:45 pm 
Michael BoweSep 17, 2003 2:16 pm 
Lukas VeselySep 18, 2003 8:44 am 
Bryan RentoulSep 18, 2003 2:31 pm 
Bryan RentoulSep 18, 2003 2:35 pm 
Bryan RentoulSep 18, 2003 2:37 pm 
Bryan RentoulSep 18, 2003 2:38 pm 
Bryan RentoulSep 22, 2003 3:07 am 
Bryan RentoulSep 22, 2003 3:42 am 
Three Letter AcronymSep 22, 2003 12:26 pm 
Malcolm WeirSep 22, 2003 1:01 pm 
Bryan RentoulSep 22, 2003 11:58 pm 
Bryan RentoulSep 23, 2003 1:31 am 
Malcolm WeirSep 23, 2003 2:11 am 
Bryan RentoulSep 23, 2003 7:25 pm 
Bryan RentoulSep 23, 2003 8:07 pm 
Bryan RentoulSep 23, 2003 10:41 pm 
Gordon MessmerSep 24, 2003 12:12 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] RE: Making progress now but still baffled.. (imapd + vpopmail 'No such file or directory')Actions...
From:Bryan Rentoul (bry@nzhosting.co.nz)
Date:Sep 23, 2003 8:07:40 pm
List:net.sourceforge.lists.courier-users

OK, I went a little further with the debugging.

Having already pointed out that: o imapd is running as vpopmail (as confirmed by ps auwx after telneting to port 143)

o imapd's working directory (as per getcw in debug code just before error occurs) is correct (/home/vpopmail/domains/cybermedix.co.nz/mail/Maildir)

o the tmp directory in that Maildir directory is flagged 777 (drwxrwxrwx)

o all the other files and directories up to /home/vpopmail are owned by vpopmail.vchkpw (as painstakely carefully confirmed using ls -l)

...this is an example of a filename that imapd can NOT seem to open: ./tmp/1064370759.M407014P21927_imapuid_0.nzh1.nzhosting.co.nz

I see nothing wrong with that name. Should work just dandy.

And here is the code that attempts to it: (in maildir/maildircreate.c):

if ((fd=maildir_safeopen_stat(info->tmpname, O_CREAT|O_RDWR|O_TRUNC, info->openmode, &stat_buf)) < 0)

(that's the line the actual error occurs at - IE. fd is return < 0)

At this same point, my debug code tells me: info->openmode=420(decminal) which is 644 octal.

I see nothing wrong here.

So now I do this in a shell:

su vpopmail cd /home/vpopmail/domains/cybermedix.co.nz/mail/Maildir touch ./tmp/1064370759.M407014P21927_imapuid_0.nzh1.nzhosting.co.nz

That seems to work fine.

BUT... If I do

ls -l ./tmp/1064370759.M407014P21927_imapuid_0.nzh1.nzhosting.co.nz

...directly after that I'm getting: No such file or directory

CRIPES!! This looks like a case of file system corruption! YIKES!

Bryan.

-----Original Message----- From: Bryan Rentoul [mailto:bry@nzhosting.co.nz] Sent: Tuesday, September 23, 2003 1:31 AM

[ Snip ]

So... here are the contents of /home/vpopmail/domains/cybermedix.co.nz/mail/Maildir

drwxr----- 2 vpopmail vchkpw 4096 Sep 23 18:27 cur drwxr----- 2 vpopmail vchkpw 12288 Sep 23 18:27 new -rw-r----- 1 vpopmail vchkpw 15 Jul 29 2002 sqwebmail-pass drwxr----- 2 vpopmail vchkpw 4096 Sep 23 20:13 tmp

Hmmm. tmp is there and it has the right permissions (I think).

So I try two things.

1. chmod a+rw tmp (and test again)

Try 'chmod 777 tmp'

A (very) cursory glance suggests that you are trying to create something in tmp, but cannot. You cannot create stuff in a directory unless you can search it ('else how would you know if a file already existed? And if you didn't know, that would let you discover if a file existed).

Which leads immediately to the question of the user id of the process trying to run the IMAP server code, and whether it is vpopmail...

Bryan.

Malc.