Nicolas STRANSKY
2005-May-28 13:23 UTC
[Dovecot] Dovecot auth process died because of Socket operation on non-socket
Hi, I'm having problems setting up a dovecot1.0 stable on a Debian-amd64 server. The process dies with the following message: May 28 15:13:46 rouge dovecot: Dovecot v1.0-stable starting up May 28 15:13:47 rouge dovecot: Login process died too early - shutting down May 28 15:13:47 rouge dovecot: pop3-login: fd_send(-1) failed: Socket operation on non-socket May 28 15:13:47 rouge dovecot: pop3-login: fd_send(-1) failed: Socket operation on non-socket May 28 15:13:47 rouge dovecot: auth(default): accept() failed: Socket operation on non-socket May 28 15:13:47 rouge dovecot: child 15116 (auth) returned error 89 May 28 15:13:47 rouge dovecot: child 15117 (login) returned error 89 May 28 15:13:47 rouge dovecot: child 15118 (login) returned error 89 Attached is the strace of the dovecot process, I don't know if this is relevant but I can provide any needed information. The config file is like this: protocols = imap imaps pop3 pop3s ssl_disable = no ssl_cert_file = /etc/ssl/certs/pop-imap-zamok.pem ssl_key_file = /etc/ssl/private/pop-imap-zamok.pem disable_plaintext_auth = no login_processes_count = 6 mail_extra_groups = mail default_mail_env = mbox:~/Mail/:INBOX=/var/mail/%u protocol imap { } protocol pop3 { } auth_verbose = yes auth_debug = yes auth default { mechanisms = plain passdb = pam userdb = passwd user = root } Can anybody help me with this issue ? Thank's in advance ! -- Nico Une pierre, deux maisons, trois ruines, quatre fossoyeurs, un jardin, des fleurs, un raton-laveur... -+- Jacques Pr?vert -+- -------------- next part -------------- A non-text attachment was scrubbed... Name: strace-dovecot.txt.bz2 Type: application/x-bzip Size: 5077 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20050528/1d1890ae/attachment-0001.bin>
Nicolas STRANSKY
2005-May-29 16:42 UTC
[Dovecot] Re: Dovecot auth process dies if run in background
Le 05/28/2005 03:23 PM, Nicolas STRANSKY a ?crit :> Hi, > > I'm having problems setting up a dovecot1.0 stable on a Debian-amd64 > server. The auth process dies with the following message:(snip) Could anyone help me with this issue ? I've tried several things but none worked. Dovecot0.99 works fine one the same machine with the same configuration (in dovecot0.99 format). When I launch /usr/sbin/dovecot on the command line, I have the following logs, and the auth process dies immediatly: May 28 16:01:07 rouge dovecot: Dovecot v1.0-stable starting up May 28 16:01:08 rouge dovecot: Login process died too early - shutting down May 28 16:01:08 rouge dovecot: auth(default): accept() failed: Socket operation on non-socket May 28 16:01:08 rouge dovecot: child 21099 (auth) returned error 89 But strangely, when I launch /usr/sbin/dovecot -F on the command line, to make dovecot run in the foreground, then everything works perfectly and I'm able to login ! For now I've got no idea of what could explain this behaviour. Thank's for any hint, -- Nico Amour, amour, quand tu nous tiens, On peut bien dire : Adieu prudence. -+- Jean de La Fontaine (1621-1695), Le Lion amoureux (Fables IV.1) -+-
Tero Ripattila
2005-May-29 17:12 UTC
[Dovecot] Dovecot auth process died because of Socket operation on non-socket
Hello Nicolas, Saturday, May 28, 2005, 4:23:11 PM, you [NS] wrote: NS> I'm having problems setting up a dovecot1.0 stable on a Debian-amd64 NS> server. The process dies with the following message: NS> May 28 15:13:47 rouge dovecot: pop3-login: fd_send(-1) failed: Socket NS> operation on non-socket NS> May 28 15:13:47 rouge dovecot: pop3-login: fd_send(-1) failed: Socket NS> operation on non-socket NS> May 28 15:13:47 rouge dovecot: auth(default): accept() failed: Socket NS> operation on non-socket NS> The config file is like this: NS> protocol imap { NS> } NS> protocol pop3 { NS> } I think the problem is here. You should not leave these two blocks empty as they are used to override ports dovecot listens to and you have nothing there e.g. protocol imap { listen = 127.0.0.1:14300 } I'd suggest that you comment them out. Thanks, Tero -- Tero Ripattila
Timo Sirainen
2005-May-29 18:52 UTC
[Dovecot] Dovecot auth process died because of Socket operation on non-socket
On 28.5.2005, at 16:23, Nicolas STRANSKY wrote:> I'm having problems setting up a dovecot1.0 stable on a Debian-amd64 > server. The process dies with the following message: > > May 28 15:13:47 rouge dovecot: pop3-login: fd_send(-1) failed: Socket > operation on non-socket > May 28 15:13:47 rouge dovecot: pop3-login: fd_send(-1) failed: Socket > operation on non-socket > May 28 15:13:47 rouge dovecot: auth(default): accept() failed: Socket > operation on non-socketLooks like Dovecot's master process gives wrong file descriptors to auth/login processes. I can't really think of why.. Unless libc or something does something strange in the middle. The strace you sent doesn't help much because Dovecot forks and the strace ends there. Give -f option to it and send it again? -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20050529/29185a2b/attachment-0001.bin>