[Dovecot] Cygwin and dovecot-auth problems
Blacktate
blacktate at yahoo.it
Sat Jun 21 17:44:09 EEST 2008
21/06/2008 14.37 - Timo Sirainen wrote:
> On Sat, 2008-06-21 at 14:27 +0200, Blacktate wrote:
>> 21/06/2008 3.57 - Timo Sirainen wrote:
>>> On Sat, 2008-06-21 at 00:45 +0000, TBlack wrote:
>>>> Warning: fd limit 256 is lower than what Dovecot can use under full
>>>> load (more than 640). Either grow the limit or change
>>>> login_max_processes_count and max_mail_processes settings Warning:
>>>> Last died with error (see error log for more information): Auth
>>>> process died too early - shutting down
>>> Look at the logs for the exact reason why auth process died.
>>> http://wiki.dovecot.org/Logging
>> The error log, each time I try to start Dovecot from a command line, has
>> these two lines appended:
>>
>> dovecot: Jun 21 12:16:23 Error: Socket already exists:
>> /usr/local/var/run/dovecot/dict-server
>> dovecot: Jun 21 12:16:24 Fatal: Auth process died too early - shutting down
>
> If you delete the dict-server socket and start Dovecot again, does it
> then show anything else except the "Auth process died" message?
No, it shows just that: "Auth process died too early - shutting down".
>> Following the december 2007 thread between you and Ronny:
>>
>> http://dovecot.markmail.org/search/?q=cygwin+2nd
>>
>> ...I tried to start dovecot via inetd rather than command line, and now
>> I seem to be stuck at exactly the same point. Dovecot starts, but when I
>> telnet localhost 143 I see:
>>
>> Trying 127.0.0.1...
>> Connected to localhost.
>> Escape character is '^]'.
>> Fatal: EOF while reading environment from master
>> Connection closed by foreign host.
>
> I think these are the exact same problems. Dovecot master dies and
> imap-login sees that.
>
>> By the way, if I restart inetd and try to telnet again I get this (just
>> like Ronny):
>>
>> Trying 127.0.0.1...
>> Connected to localhost.
>> Escape character is '^]'.
>> Fatal: write_full(master_fd) failed: Transport endpoint is not connected
>> Connection closed by foreign host.
>
> I guess it doesn't figure out that master has died and doesn't try to
> restart it.
>
>> Now, was there anything to try at this point? The old thread just
>> stopped here.. :-(
>
> It sounds like dovecot-auth process dies with exit status 0. See if it
> logs anything with the attached patch.
Patch, make, replace the dovecot-auth executable, start inetd, telnet
localhost: just the same error ("EOF while reading..."). The error log
shows:
dovecot: Jun 21 15:51:53 Error: child 9904 (auth) returned error 53
dovecot: Jun 21 15:51:53 Fatal: Auth process died too early - shutting down
I can't seem to find the new log statements anywhere. They appear only
if I start dovecot-auth directly, ant it fails like this:
Info: starting dovecot-auth
dovecot-auth: Fatal: MECHANISMS environment is unset
If it helps, echoing its return value (echo $?) gives 89.
Angelo
More information about the dovecot
mailing list