[Dovecot] 2.0.5 Error: Timeout waiting for handshake from auth server.
Hello,
Upgraded from 1.2.x to 2.0.5, converted configuration as described in http://wiki2.dovecot.org/Upgrading/2.0 and now I'm unable to log in to imap server. Dovecot error.log shows:
Oct 21 09:52:48 imap-login: Error: Timeout waiting for handshake from auth server. my pid=13338, input bytes=0 Oct 21 09:52:48 imap-login: Error: Timeout waiting for handshake from auth server. my pid=13364, input bytes=0 Oct 21 09:52:48 imap-login: Error: Timeout waiting for handshake from auth server. my pid=13337, input bytes=0 Oct 21 09:52:48 imap-login: Error: Timeout waiting for handshake from auth server. my pid=13350, input bytes=0 Oct 21 09:52:48 imap-login: Error: Timeout waiting for handshake from auth server. my pid=13335, input bytes=0 Oct 21 09:52:48 imap-login: Error: Timeout waiting for handshake from auth server. my pid=13360, input bytes=0
I'm using pam with winbind for authentication.
/etc/pam.d/dovecot contains:
auth required pam_winbind.so account sufficient pam_winbind.so
And it used to work perfectly with 1.1 and 1.2 series of dovecot.
What could be the problem with 2.0.5?
-- Veiko
On Thu, 2010-10-21 at 10:57 +0300, Veiko Kukk wrote:
Oct 21 09:52:48 imap-login: Error: Timeout waiting for handshake from auth server. my pid=13338, input bytes=0
auth process is hanging or imap-login is connecting to wrong server.
First try deleting everything from Dovecot's base_dir (/var/run/dovecot/ or something).
If that doesn't help, show your doveconf -n output.
Also once started, show "ps aux|grep dovecot" output and "strace -tt -p
pidof auth
" output for a few seconds.
On 10/21/2010 06:42 PM, Timo Sirainen wrote:
auth process is hanging or imap-login is connecting to wrong server.
First try deleting everything from Dovecot's base_dir (/var/run/dovecot/ or something). Deleted everythind under that folder. Didn't help...
If that doesn't help, show your doveconf -n output. # 2.0.5: /etc/dovecot/dovecot.conf doveconf: Warning: service auth { client_limit=4096 } is lower than required under max. load (4896) # OS: Linux 2.6.18-194.17.1.el5 x86_64 CentOS release 5.5 (Final) auth_cache_size = 4 k auth_failure_delay = 5 secs auth_worker_max_count = 800 base_dir = /var/run/dovecot/ first_valid_gid = 16777216 first_valid_uid = 16777216 info_log_path = /var/log/dovecot/info.log last_valid_gid = 33554431 last_valid_uid = 33554431 listen = * log_path = /var/log/dovecot/error.log mail_fsync = never mail_location = maildir:%h/Maildir passdb { args = cache_key=%u dovecot driver = pam } protocols = imap service auth { user = root vsz_limit = 1 k } service imap-login { process_limit = 800 process_min_avail = 50 service_count = 1 } service imap { process_limit = 4096 vsz_limit = 4 k } ssl_cert =
Also once started, show "ps aux|grep dovecot" output and "strace -tt -p
pidof auth
" output for a few seconds.
Strange, but I don't even have dovecot-auth process... :( When starting, Dovecot gives some warnings, but nothing fatal:
# /etc/init.d/dovecot restart Stopping Dovecot Imap: [ OK ] Starting Dovecot Imap: doveconf: Warning: service auth { client_limit=4096 } is lower than required under max. load (4896) Warning: service auth { client_limit=4096 } is lower than required under max. load (4896) [ OK ]
-- Veiko
On 10/21/2010 06:42 PM, Timo Sirainen wrote:
On Thu, 2010-10-21 at 10:57 +0300, Veiko Kukk wrote: Also once started, show "ps aux|grep dovecot" output and "strace -tt -p
pidof auth
" output for a few seconds.
Noticed in error.log:
Oct 22 17:45:24 config: Warning: service auth { client_limit=4096 } is lower than required under max. load (4896) Oct 22 17:45:24 master: Error: service(auth): child 15857 killed with signal 11 (core dumps disabled) Oct 22 17:45:24 master: Error: service(auth): command startup failed, throttling
-- Veiko
On Fri, 2010-10-22 at 17:49 +0300, Veiko Kukk wrote:
Oct 22 17:45:24 config: Warning: service auth { client_limit=4096 } is lower than required under max. load (4896) Oct 22 17:45:24 master: Error: service(auth): child 15857 killed with signal 11 (core dumps disabled)
Well, this is the reason. It crashes. gdb backtrace would be helpful in solving this.
You should be able to get a core dump by:
- Set:
service auth { user = root }
- Run "ulimit -c unlimited" before starting Dovecot. If it still says "core dumps disabled" in the log file, it means that your init script disabled them again. Then you could e.g. just run "dovecot" directly without init script.
You can then get gdb backtrace with:
gdb /usr/local/libexec/dovecot/auth /var/run/dovecot/core bt full
If there are any problems, http://dovecot.org/bugreport.html may be helpful.
check your mail log, if you get this: Authentication service cannot retrieve authentication info
then it could be related to this bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566844
if you do have that issue let me know, and I'll look up our notes to post a work around.
On Thu, Oct 21, 2010 at 3:57 AM, Veiko Kukk veiko.kukk@ekp.ee wrote:
Hello,
Upgraded from 1.2.x to 2.0.5, converted configuration as described in http://wiki2.dovecot.org/Upgrading/2.0 and now I'm unable to log in to imap server. Dovecot error.log shows:
Oct 21 09:52:48 imap-login: Error: Timeout waiting for handshake from auth server. my pid=13338, input bytes=0 Oct 21 09:52:48 imap-login: Error: Timeout waiting for handshake from auth server. my pid=13364, input bytes=0 Oct 21 09:52:48 imap-login: Error: Timeout waiting for handshake from auth server. my pid=13337, input bytes=0 Oct 21 09:52:48 imap-login: Error: Timeout waiting for handshake from auth server. my pid=13350, input bytes=0 Oct 21 09:52:48 imap-login: Error: Timeout waiting for handshake from auth server. my pid=13335, input bytes=0 Oct 21 09:52:48 imap-login: Error: Timeout waiting for handshake from auth server. my pid=13360, input bytes=0
I'm using pam with winbind for authentication.
/etc/pam.d/dovecot contains:
auth required pam_winbind.so account sufficient pam_winbind.so
And it used to work perfectly with 1.1 and 1.2 series of dovecot.
What could be the problem with 2.0.5?
-- Veiko
participants (3)
-
Robert Fantini
-
Timo Sirainen
-
Veiko Kukk