Re: [Dovecot] Dovecot-auth connection problem

2008-08-12 Thread Timo Sirainen

On Jul 29, 2008, at 12:20 AM, Alexey Gorbov wrote:


I have this messages in log:
Jul 29 00:02:56 10.0.4.16 dovecot: imap-login: Can\'t connect to  
auth server

at default: Resource temporarily unavailable


Has this happened more than once?

In this way users can't connect top pop3, imap services. Dovecot  
restart only

help me to restore my services.


How long did it happen until you restarted?

It sounds like dovecot-auth process got stuck for some reason. If it  
happens again, you could:


1) Run strace -p `pidof dovecot-auth` for a few seconds and save the  
output (if you have multiple dovecot-auth processes, then strace the  
one which doesn't have -w parameter)


2) Run gdb -p `pidof dovecot-auth` (again the process without -w) and  
bt full after that.



 passdb:
   driver: sql
   args: /etc/dovecot/dovecot-sql.conf


What SQL database are you using?



PGP.sig
Description: This is a digitally signed message part


[Dovecot] Dovecot-auth connection problem

2008-07-28 Thread Alexey Gorbov
Hello

I have this messages in log:
Jul 29 00:02:56 10.0.4.16 dovecot: imap-login: Can\'t connect to auth server 
at default: Resource temporarily unavailable
Jul 29 00:02:56 10.0.4.16 last message repeated 6 times
Jul 29 00:02:56 10.0.4.16 dovecot: pop3-login: Can\'t connect to auth server 
at default: Resource temporarily unavailable
Jul 29 00:02:56 10.0.4.16 last message repeated 6 times
Jul 29 00:02:56 10.0.4.16 dovecot: imap-login: Can\'t connect to auth server 
at default: Resource temporarily unavailable
Jul 29 00:02:56 10.0.4.16 last message repeated 15 times
Jul 29 00:02:56 10.0.4.16 dovecot: pop3-login: Can\'t connect to auth server 
at default: Resource temporarily unavailable

In this way users can't connect top pop3, imap services. Dovecot restart only 
help me to restore my services. 
I have 80k users  and ~250k sessions per day.
i thank you very much for any valid hint.

Debian Linux 2.6.18-4-686 

dovecot -n output:

# 1.1.2: /etc/dovecot/dovecot.conf
log_timestamp: %Y-%m-%d %H:%M:%S
syslog_facility: local0
protocols: imap pop3
disable_plaintext_auth: no
shutdown_clients: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
login_process_size: 512
login_processes_count: 33
login_max_processes_count: 1000
login_max_connections: 1000
max_mail_processes: 1024
verbose_proctitle: yes
first_valid_uid: 99
mail_location: maildir:%h
mail_debug: yes
mail_executable(default): /usr/lib/dovecot/imap-gaa
mail_executable(imap): /usr/lib/dovecot/imap-gaa
mail_executable(pop3): /usr/lib/dovecot/pop3-gaa
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
mail_log_max_lines_per_sec: 0
auth default:
  cache_size: 16384
  cache_ttl: 600
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql1.conf
  userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  socket:
type: listen
   master:
  path: /var/run/dovecot/auth-master
  mode: 511
  user: mail



-- 
Best regards,
Alexey Gorbov
[EMAIL PROTECTED]