strace -tt -p <pid> Process 2641 attached - interrupt to quit 22:32:35.816987 epoll_wait(9,
gdb -p <pid> GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Attaching to process 2913 Reading symbols from /usr/local/server/dovecot/libexec/dovecot/config...done. Reading symbols from /usr/local/server/dovecot/lib/dovecot/libdovecot.so.0...done. Loaded symbols for /usr/local/server/dovecot/lib/dovecot/libdovecot.so.0 Reading symbols from /lib64/libc.so.6...^[[A(no debugging symbols found)...done. Loaded symbols for /lib64/libc.so.6 Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done. Loaded symbols for /lib64/libdl.so.2 Reading symbols from /usr/lib/libiconv.so.2...done. Loaded symbols for /usr/lib/libiconv.so.2 Reading symbols from /lib64/librt.so.1...(no debugging symbols found)...done. Loaded symbols for /lib64/librt.so.1 Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 Reading symbols from /lib64/libpthread.so.0...(no debugging symbols found)...done. [Thread debugging using libthread_db enabled] Loaded symbols for /lib64/libpthread.so.0 Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols found)...done. Loaded symbols for /lib64/libnss_files.so.2 0x00007f18489ebee3 in __epoll_wait_nocancel () from /lib64/libc.so.6 Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.107.el6_4.2.x86_64 (gdb) Hangup detected on fd 0 error detected on stdin A debugging session is active.
Inferior 1 [process 2913] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal] Detaching from program: /usr/local/server/dovecot/libexec/dovecot/config, process 2913
Extra information:
Everything goes well at the beginning. After a power failure, dovecot doesn't work as well as it did. I attached the log at that moment to see if it helps troubleshooting.
“2013-08-21 17:37:39 ”master: Info: Dovecot v2.2.5 starting up (core dumps disabled) “2013-08-21 17:38:04 ”master: Error: service(anvil): Initial status notification not received in 30 seconds, killing the process “2013-08-21 17:38:04 ”master: Error: service(ssl-params): Initial status notification not received in 30 seconds, killing the process “2013-08-21 17:38:04 ”anvil: Fatal: master: service(anvil): child 2039 killed with signal 9 “2013-08-21 17:38:04 ”ssl-params: Fatal: master: service(ssl-params): child 2041 killed with signal 9 “2013-08-21 17:38:14 ”anvil: Error: Anvil client input error: Unknown command: VERSION “2013-08-21 17:38:14 ”anvil: Error: Anvil client input error: Unknown command: VERSION
Thanks very much.
On Fri, Sep 27, 2013 at 11:20 PM, Timo Sirainen tss@iki.fi wrote:
On 26.9.2013, at 15.07, Dewey Du deweyto@gmail.com wrote:
My dovecot started with the error below. What's the most possible reason for the error?
“2013-08-28 11:41:40 ”master: Info: Dovecot v2.2.5 starting up (core dumps disabled) “2013-08-28 11:42:00 ”anvil: Fatal: Error reading configuration: Timeout reading config from /var/run/dovecot/config
The config process is stuck for some reason. Try to find out what it's doing. Immediately after you start dovecot, find the config process pid, and do:
strace -tt -p <pid> (for about a second or so)
gdb -p <pid> bt full
and mail the results.