Re: [Dovecot] service anvil and ssl-params not starts with dovecot started

2013-09-27 Thread Dewey Du
1) strace -tt -p pid
Process 2641 attached - interrupt to quit
22:32:35.816987 epoll_wait(9,


2) 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
0x7f18489ebee3 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 t...@iki.fi wrote:

 On 26.9.2013, at 15.07, Dewey Du dewe...@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:

 1) strace -tt -p pid (for about a second or so)

 2) gdb -p pid
 bt full

 and mail the results.




[Dovecot] service anvil and ssl-params not starts with dovecot started

2013-09-26 Thread Dewey Du
Hi

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
“2013-08-28 11:42:00 ”master: Error: service(anvil): command startup
failed, throttling for 2 secs
“2013-08-28 11:42:00 ”ssl-params: Fatal: Error reading configuration:
Timeout reading config from /var/run/dovecot/config
“2013-08-28 11:42:00 ”master: Error: service(ssl-params): command startup
failed, throttling for 2 secs


Actually, After dovecot starts, I can telnet 110, but it takes 30seconds or
so to get through the authentication. I suspect whether the error above
cause the issue or not.


Other information:
dovecot version v2.2.5
use posfix, dovecot sasl, and mysql

Attached my dovecot.conf:
#auth_debug = yes auth_mechanisms = plain login #debug_log_path =
/var/log/dovecot.debug default_internal_user = postfix default_login_user =
postfix disable_plaintext_auth = no first_valid_uid = 1000 last_valid_uid =
1000 mail_gid = 1000 mail_uid = 1000 log_path = /var/log/dovecot.log
mail_location = maildir:/var/vmail/%d/%u mail_privileged_group = vmail
protocols = imap pop3 listen = * base_dir = /var/run/dovecot/ service auth
{ unix_listener /var/spool/postfix/private/auth { group = postfix mode =
0666 user = postfix } user = root } ssl = no userdb { args =
/etc/dovecot/dovecot-mysql.conf driver = sql } passdb { args =
/etc/dovecot/dovecot-mysql.conf driver = sql } protocol pop3 {
pop3_uidl_format = %08Xu%08Xv }