[Dovecot] Dovecot Erros in Logs
I got lots of errors that look like this:
Error: write(dnotify pipe) failed: Bad file descriptor
I am running dovecot-1.2.4-0_99 on RHEL4
dovecot -n:
# 1.2.4: /etc/dovecot.conf
# OS: Linux 2.6.9-89.0.3.ELsmp x86_64 Red Hat Enterprise Linux AS
release 4 (Nahant Update 8) ext3
log_path: /var/log/dovecot
info_log_path: /var/log/dovecot-info
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
login_process_per_connection: no
login_process_size: 1024
login_processes_count: 6
login_max_processes_count: 1024
login_max_connections: 1024
max_mail_processes: 50000
verbose_proctitle: yes
first_valid_uid: 50
mail_uid: 93
mail_gid: 12
mail_location: maildir:/var/spool/maildirs/%d/%n/Maildir
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_process_size: 1024
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3):
mail_plugin_dir(default): /usr/lib64/dovecot/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
namespace:
type: private
prefix: INBOX.
inbox: yes
list: yes
subscriptions: yes
lda:
postmaster_address: postmaster@example.com
auth default:
cache_ttl: 43200
cache_negative_ttl: 0
verbose: yes
passdb:
driver: ldap
args: /etc/dovecot-ldap.conf
plugin:
quota: maildir
Any suggestions?
Dave
On Fri, 2009-08-28 at 11:47 -0400, David Cunningham wrote:
I got lots of errors that look like this:
Error: write(dnotify pipe) failed: Bad file descriptor
Hmm. Are they all exactly this, or also something else? I don't really see in the code how that could happen.
Anyway you could disable using dnotify with configure --with-notify=none
I had heard/read something online about using inotify instead of
dnotify. Any idea what that is about?
I have not heard any complaints, nor do I know why this happens. I
just notice this and exactly this in the logs.
Dave
Quoting Timo Sirainen tss@iki.fi:
On Fri, 2009-08-28 at 11:47 -0400, David Cunningham wrote:
I got lots of errors that look like this:
Error: write(dnotify pipe) failed: Bad file descriptor
Hmm. Are they all exactly this, or also something else? I don't really see in the code how that could happen.
Anyway you could disable using dnotify with configure --with-notify=none
Different Error today:
Aug 31 08:01:05 IMAP(user-folder): Panic: pool_data_stack_realloc():
stack frame changed
Aug 31 08:01:05 IMAP(user-folder): Error: Raw backtrace: imap
[0x49d0c8] -> imap [0x49db63] -> imap [0x49d386] -> imap [0x4a79bb] ->
imap [0x49b3f5] -> imap(buffer_write+0x72) [0x49b732] ->
imap(buffer_append_c+0x18) [0x49b848] ->
imap(mail_namespace_get_vname+0x4b) [0x46374b] ->
imap(mailbox_list_subscriptions_fill+0xf9) [0x42d559] ->
imap(maildir_list_iter_init+0x592) [0x42d202] -> imap [0x41c953] ->
imap(cmd_list_full+0x261) [0x41cd01] -> imap(cmd_lsub+0xe) [0x41d27e]
-> imap [0x4203f3] -> imap [0x4203b8] ->
imap(client_handle_input+0x161) [0x420681] -> imap(client_input+0x5f)
[0x420f2f] -> imap(io_loop_handler_run+0x109) [0x4a5949] ->
imap(io_loop_run+0x28) [0x4a4c98] -> imap(main+0x712) [0x428b32] ->
/lib64/tls/libc.so.6(__libc_start_main+0xdb) [0x3170c1c40b] -> imap
[0x41940a]
It seems to only happen to this one user.
I cannot see anything odd about this user's folder.
Dave
On Mon, 2009-08-31 at 09:12 -0400, David Cunningham wrote:
Different Error today:
Aug 31 08:01:05 IMAP(user-folder): Panic: pool_data_stack_realloc():
stack frame changed
Thanks, fixed: http://hg.dovecot.org/dovecot-1.2/rev/38e491ff24d0
participants (2)
-
David Cunningham
-
Timo Sirainen