Re: [Dovecot] imap: Error: net_connect_unix(/.../auth-master) failed: Invalid argument

2013-01-08 Thread Joan Picanyol i Puig
* Timo Sirainen t...@iki.fi [20130108 02:17]:
 On Sat, 2013-01-05 at 21:51 +0100, Joan Picanyol i Puig wrote:
 
  I'm unable to get past the subject error trying to setup dovecot 2.1.10
  on FreeBSD 6.4: right after login the server closes the connection
  (testing with telnet)
 
 I think this is the reason:
 
   if (i_strocpy(sa.un.sun_path, path, sizeof(sa.un.sun_path))  0) {
   /* too long path */
   errno = EINVAL;
 
 Your path is longer than possible. This patch should make it clearer in
 future: http://hg.dovecot.org/dovecot-2.1/rev/e4cc3f2b66e3

Thanks, changing base_dir did the trick. I wonder why though, since
both PATH_MAX and FILENAME_MAX are defined as 1024 on my system...

tks
--
pica



[Dovecot] imap: Error: net_connect_unix(/.../auth-master) failed: Invalid argument

2013-01-05 Thread Joan Picanyol i Puig
Hi,

I'm unable to get past the subject error trying to setup dovecot 2.1.10
on FreeBSD 6.4: right after login the server closes the connection
(testing with telnet)

I've tried manualy chown()ing auth-master to 666, so permission issues
should be ruled out.

I'm attaching logs, config and excerpt of ktrace -id. I've built a
version with debug symbols, but I don't seem to hit a breakpoint in
net_connect_unix on lib/network.c

What can I look at?

tks
-- 
pica
Jan 05 21:15:05 master: Info: Dovecot v2.1.10 starting up
Jan 05 21:15:12 auth: Debug: Loading modules from directory: 
/package/host/spf.biaix.org/foreign/dovecot-2.1.10+spf+2/prefix/lib/dovecot/auth
Jan 05 21:15:12 auth: Debug: auth client connected (pid=768)
Jan 05 21:15:16 auth: Debug: client in: AUTH1   PLAIN   service=imap
secured session=p1QhQZDSuAB/AAABlip=127.0.0.1   rip=127.0.0.1   
lport=143   rport=60856 resp=AHR1MTAAdHUxMA==
Jan 05 21:15:16 auth-worker(1011): Debug: Loading modules from directory: 
/package/host/spf.biaix.org/foreign/dovecot-2.1.10+spf+2/prefix/lib/dovecot/auth
Jan 05 21:15:16 auth-worker(1011): Debug: pam(tu10,127.0.0.1): lookup 
service=dovecot
Jan 05 21:15:16 auth-worker(1011): Debug: pam(tu10,127.0.0.1): #1/1 style=1 
msg=Password: 
Jan 05 21:15:16 auth: Debug: client passdb out: OK  1   user=tu10
Jan 05 21:15:16 imap: Error: 
net_connect_unix(/fs/package/mount/package/host/spf.biaix.org/foreign/dovecot-2.1.10+spf+2/prefix/var/run/dovecot/auth-master)
 failed: Invalid argument
Jan 05 21:15:16 imap-login: Info: Internal login failure (pid=768 id=1) 
(internal failure, 1 succesful auths): user=tu10, method=PLAIN, 
rip=127.0.0.1, lip=127.0.0.1, mpid=1012, secured, session=p1QhQZDSuAB/AAAB
Jan 05 21:15:16 auth: Warning: auth client 768 disconnected with 1 pending 
requests: EOF

  1012 imap CALL  getpid
  1012 imap RET   getpid 1012/0x3f4
  1012 imap CALL  readlink(0x182ebc97,0xbfbfebd0,0x3f)
  1012 imap NAMI  /etc/malloc.conf
  1012 imap RET   readlink -1 errno 2 No such file or directory
  1012 imap CALL  issetugid
  1012 imap RET   issetugid 0
  1012 imap CALL  mmap(0,0x1000,0x3,0x1002,0x,0,0,0)
  1012 imap RET   mmap 407044096/0x1843
  1012 imap CALL  break(0x8069000)
  1012 imap RET   break 0
  1012 imap CALL  break(0x8072000)
  1012 imap RET   break 0
  1012 imap CALL  break(0x8073000)
  1012 imap RET   break 0
  1012 imap CALL  __sysctl(0xbfbfec48,0x2,0x18226620,0xbfbfec64,0,0)
  1012 imap RET   __sysctl 0
  1012 imap CALL  getpid
  1012 imap RET   getpid 1012/0x3f4
  1012 imap CALL  break(0x8074000)
  1012 imap RET   break 0
  1012 imap CALL  sigaction(0xd,0xbfbfec50,0)
  1012 imap RET   sigaction 0
  1012 imap CALL  sigaction(0xe,0xbfbfec50,0)
  1012 imap RET   sigaction 0
  1012 imap CALL  break(0x8075000)
  1012 imap RET   break 0
  1012 imap CALL  gettimeofday(0x182278c8,0)
  1012 imap RET   gettimeofday 0
  1012 imap CALL  break(0x8076000)
  1012 imap RET   break 0
  1012 imap CALL  break(0x8077000)
  1012 imap RET   break 0
  1012 imap CALL  getpid
  1012 imap RET   getpid 1012/0x3f4
  1012 imap CALL  __getcwd(0x8069040,0x80)
  1012 imap RET   __getcwd 0
  1012 imap CALL  sigaction(0x2,0xbfbfec00,0)
  1012 imap RET   sigaction 0
  1012 imap CALL  pipe
  1012 imap RET   pipe 4
  1012 imap CALL  __sysctl(0xbfbfeba8,0x2,0xbfbfeba0,0xbfbfeba4,0,0)
  1012 imap RET   __sysctl 0
  1012 imap CALL  fcntl(0x4,0x3,0)
  1012 imap RET   fcntl 2
  1012 imap CALL  fcntl(0x4,0x4,0x6)
  1012 imap RET   fcntl 0
  1012 imap CALL  fcntl(0x8,0x3,0)
  1012 imap RET   fcntl 2
  1012 imap CALL  fcntl(0x8,0x4,0x6)
  1012 imap RET   fcntl 0
  1012 imap CALL  fcntl(0x4,0x1,0)
  1012 imap RET   fcntl 0
  1012 imap CALL  fcntl(0x4,0x2,0x1)
  1012 imap RET   fcntl 0
  1012 imap CALL  fcntl(0x8,0x1,0)
  1012 imap RET   fcntl 0
  1012 imap CALL  fcntl(0x8,0x2,0x1)
  1012 imap RET   fcntl 0
  1012 imap CALL  kqueue
  1012 imap RET   kqueue 9
  1012 imap CALL  fcntl(0x9,0x1,0)
  1012 imap RET   fcntl 0
  1012 imap CALL  fcntl(0x9,0x2,0x1)
  1012 imap RET   fcntl 0
  1012 imap CALL  break(0x8078000)
  1012 imap RET   break 0
  1012 imap CALL  kevent(0x9,0xbfbfebc0,0x1,0,0,0)
  1012 imap RET   kevent 0
  1012 imap CALL  sigaction(0xf,0xbfbfec00,0)
  1012 imap RET   sigaction 0
  1012 imap CALL  fstat(0x5,0xbfbfec60)
  1012 imap RET   fstat 0
  1012 imap CALL  kevent(0x9,0xbfbfebe0,0x1,0,0,0)
  1012 imap RET   kevent 0
  1012 imap CALL  kevent(0x9,0xbfbfebb0,0x1,0,0,0)
  1012 imap RET   kevent 0
  1012 imap CALL  write(0x5,0x807405c,0xc)
  1012 imap GIO   fd 5 wrote 12 bytes
   0x f403  0800  0100 ||

  1012 imap RET   write 12/0xc
   303