We upgraded from Dovecot 1.0.15 to 1.2.5 last night, on Solaris 10 using mboxes, mostly without issues.
However I had to trash the index/cache files (too many folders were showing corruption issues which is especially bad for Prayer Webmail ".prayer" folders that store preferences; Prayer sees a disconnection as the folder being missing!).
I've had one imap process panic in mailbox sync (as I mentioned above, the index files have been newly created in 1.2.5):
Sep 30 09:57:10 imap-login: Info: Login: user=<xxxxxxxx>, method=PLAIN, rip=134.225.xx.xx, lip=134.225.16.6 Sep 30 09:57:10 imap-login: Info: Login: user=<xxxxxxxx>, method=PLAIN, rip=134.225.xx.xx, lip=134.225.16.6 Sep 30 09:57:11 IMAP 25384 xxxxxxxx 134.225.xx.xx : Panic: file mail-index-sync-update.c: line 933 (mail_index_sync_map): assertion failed: (map->hdr.indexid == index->indexid || map->hdr.indexid == 0) Sep 30 09:57:11 dovecot: Error: child 25384 (imap) killed with signal 6 (core dumped)
This looks like it was the user's first connection since the upgrade, as well. Here's the backtrace:
#0 0xff21fe78 in _libc_kill () from /usr/lib/libc.so.1 (gdb) bt #0 0xff21fe78 in _libc_kill () from /usr/lib/libc.so.1 #1 0xff1b5a3c in abort () from /usr/lib/libc.so.1 #2 0xbe258 in default_fatal_finish (type=LOG_TYPE_PANIC, status=0) at failures.c:160 #3 0xbeb14 in i_internal_fatal_handler (type=LOG_TYPE_PANIC, status=0, fmt=0x0, args=0xffbee758) at failures.c:440 #4 0xbe414 in i_panic (format=0xec7f0 "file %s: line %d (%s): assertion failed: (%s)") at failures.c:207 #5 0x98a00 in mail_index_sync_map (_map=0x1263e4, type=MAIL_INDEX_SYNC_HANDLER_HEAD, force=false) at mail-index-sync-update.c:802 #6 0x8c618 in mail_index_map (index=0x1263a8, type=MAIL_INDEX_SYNC_HANDLER_HEAD) at mail-index-map.c:934 #7 0x89e30 in mail_index_refresh (index=0x0) at mail-index.c:551 #8 0x62bec in mbox_sync_header_refresh (mbox=0x1272d8) at mbox-sync.c:1586 #9 0x62d28 in mbox_sync_has_changed_full (mbox=0x1272d8, leave_dirty=true, empty_r=0xffbeeab7) at mbox-sync.c:1644 #10 0x62cb4 in mbox_sync_has_changed (mbox=0xffffffff, leave_dirty=true) at mbox-sync.c:1611 #11 0x63428 in mbox_sync_int (mbox=0x1272d8, flags=0, lock_id=0xffbeee04) at mbox-sync.c:1701 #12 0x634f4 in mbox_sync (mbox=0x1272d8, flags=0) at mbox-sync.c:1894 #13 0x63674 in mbox_storage_sync_init (box=0x1272d8, flags=65) at mbox-sync.c:1936 #14 0x7ebf4 in mailbox_sync_init (box=0x1272d8, flags=65) at mail-storage.c:562 #15 0x7ecb8 in mailbox_sync (box=0x1272d8, flags=65, status_items=239, status_r=0xffbeefd0) at mail-storage.c:593 #16 0x29fc0 in select_open (ctx=0x11ebf0, mailbox=0x1
, readonly=false) at cmd-select.c:273 #17 0x2a294 in cmd_select_full (cmd=0x11eb60, readonly=false) at cmd-select.c:382 #18 0x2a3d0 in cmd_select (cmd=0x11eb60) at cmd-select.c:389 #19 0x2d064 in client_command_input (cmd=0x11eb60) at client.c:611 #20 0x2cf08 in client_command_input (cmd=0x11eb60) at client.c:660 #21 0x2d0ec in client_handle_next_command (client=0x11e8d8, remove_io_r=0xffbef2b7) at client.c:701 #22 0x2d1e0 in client_handle_input (client=0x11e8d8) at client.c:713 #23 0x2d318 in client_input (client=0x11e8d8) at client.c:752 #24 0xc7ea4 in io_loop_handler_run (ioloop=0x11b370) at ioloop-poll.c:203 #25 0xc7694 in io_loop_run (ioloop=0x11b370) at ioloop.c:335 #26 0x36e34 in main (argc=1119232, argv=0xffbef4fc, envp=0xffbef50c) at main.c:327
I'm also seeing some other errors, e.g. :
Sep 30 10:37:06 auth(default): Error: Master request 15820.607 not found Sep 30 10:51:27 dovecot: Error: child 29959 (login) killed with signal 11 (core not dumped) (latest ip=134.225.1.46) Sep 30 10:51:38 dovecot: Error: child 11162 (login) killed with signal 11 (core not dumped) (latest ip=134.225.1.46) Sep 30 10:54:03 imap-login: Warning: Error sending handshake to auth server: Transport endpoint is not connected
How do I get the login (presumably imap-login) processes to dump core (or do I need to insert gdbhelper)?
Dovecot -n output (%J is a local hash function and we don't use the lda; my start-up script sets the fd limit to 4096 once Dovecot has started):
# 1.2.5: /opt/RDGdovect/etc/dovecot.conf Warning: fd limit 2048 is lower than what Dovecot can use under full load (more than 4352). Either grow the limit or change login_max_processes_count and max_mail_processes settings # OS: SunOS 5.8 sun4u ufs base_dir: /opt/RDGdovect/var/run/ log_path: /opt/RDGdovect/var/log/dovecot.log info_log_path: /opt/RDGdovect/var/log/dovecot.log protocols: imap imaps pop3 pop3s listen(default): 134.225.16.6:143 listen(imap): 134.225.16.6:143 listen(pop3): 134.225.16.6:110 ssl_listen(default): 134.225.16.6:993 ssl_listen(imap): 134.225.16.6:993 ssl_listen(pop3): 134.225.16.6:995 ssl_cert_file(default): /opt/RDGdovect/ssl/imap.reading.ac.uk.crt.pem ssl_cert_file(imap): /opt/RDGdovect/ssl/imap.reading.ac.uk.crt.pem ssl_cert_file(pop3): /opt/RDGdovect/ssl/pop.reading.ac.uk.crt.pem ssl_key_file(default): /opt/RDGdovect/ssl/imap.reading.ac.uk.key.pem ssl_key_file(imap): /opt/RDGdovect/ssl/imap.reading.ac.uk.key.pem ssl_key_file(pop3): /opt/RDGdovect/ssl/pop.reading.ac.uk.key.pem disable_plaintext_auth: no shutdown_clients: no login_dir: /opt/RDGdovect/var/run/login login_executable(default): /opt/RDGdovect/libexec/dovecot/imap-login login_executable(imap): /opt/RDGdovect/libexec/dovecot/imap-login login_executable(pop3): /opt/RDGdovect/libexec/dovecot/pop3-login login_greeting(default): University of Reading IMAP ready. login_greeting(imap): University of Reading IMAP ready. login_greeting(pop3): University of Reading POP3 ready. login_process_per_connection: no max_mail_processes: 4096 verbose_proctitle: yes mail_location: mbox:/export/folders/%13.h/mail/:INBOX=/export/mail/%13.h/INBOX:INDEX=/export/indexes/%13.h mail_nfs_storage: yes mbox_very_dirty_syncs: yes mail_drop_priv_before_exec: yes mail_executable(default): /opt/RDGdovect/libexec/dovecot/imap mail_executable(imap): /opt/RDGdovect/libexec/dovecot/imap mail_executable(pop3): /opt/RDGdovect/libexec/dovecot/pop3 mail_plugins(default): zlib mail_log mail_plugins(imap): zlib mail_log mail_plugins(pop3): mail_plugin_dir(default): /opt/RDGdovect/libexec/plugins mail_plugin_dir(imap): /opt/RDGdovect/libexec/plugins mail_plugin_dir(pop3): /opt/RDGdovect/lib/dovecot/pop3 mail_log_prefix: %Us %p %u %r : imap_client_workarounds(default): delay-newmail imap_client_workarounds(imap): delay-newmail imap_client_workarounds(pop3): pop3_reuse_xuidl(default): no pop3_reuse_xuidl(imap): no pop3_reuse_xuidl(pop3): yes pop3_uidl_format(default): %08Xu%08Xv pop3_uidl_format(imap): %08Xu%08Xv pop3_uidl_format(pop3): %08Xv%08Xu pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls namespace: type: private separator: / inbox: yes list: yes subscriptions: yes namespace: type: private separator: / prefix: mail/ hidden: yes list: no subscriptions: yes namespace: type: private separator: / prefix: ~/mail/ hidden: yes list: no subscriptions: yes namespace: type: private separator: / prefix: ~%u/mail/ hidden: yes list: no subscriptions: yes lda: postmaster_address: postmaster@example.com auth default: mechanisms: plain login username_format: %Lu verbose: yes passdb: driver: passwd-file args: /export/mailconfig/%Ju/%u/migrating deny: yes passdb: driver: passwd-file args: /export/mailconfig/%Ju/%u/proxy.%Ls passdb: driver: ldap args: /opt/RDGdovect/etc/dovecot-ldap.conf userdb: driver: passwd-file args: /opt/RDGdovect/etc/userdb
Best Wishes, Chris
-- --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+- Christopher Wakelin, c.d.wakelin@reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094