Mailbox access error: Panic: file mail-index-sync-keywords.c: assertion failed

Created:

2017-03-14 13:32:37 UTC

Modified:

2017-08-08 13:15:54 UTC

4

Was this article helpful?


Have more questions?

Submit a request

Mailbox access error: Panic: file mail-index-sync-keywords.c: assertion failed

Applicable to:

  • Plesk for Linux

Symptoms

The following error appears on accessing a mailbox via Thunderbird or when an email is sent to the Plesk server:

Mar  6 04:49:11 web1 dovecot: service=imap, user=chris@example.com, ip=[203.0.113.2]. Panic: file mail-index-sync-keywords.c: line 228 (keywords_update_records): assertion failed: (data_offset >= sizeof(struct mail_index_record))
Mar  6 04:49:11 web1 dovecot: service=imap, user=chris@example.com, ip=[203.0.113.2]. Error: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0(+0x93aee) [0x7fc99f3ccaee] -> /usr/lib64/dovecot/libdovecot.so.0(+0x93bce) [0x7fc99f3ccbce] -> /usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) [0x7fc99f366bff] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_index_sync_keywords+0x7de) [0x7fc99f6e1a2e] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_index_sync_record+0xfc) [0x7fc99f6e23dc] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_index_sync_map+0x236) [0x7fc99f6e33c6] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_index_map+0x417) [0x7fc99f6da9b7] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x9c4cd) [0x7fc99f6f04cd] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x9ca68) [0x7fc99f6f0a68] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_index_open+0x78) [0x7fc99f6f0b68] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_storage_mailbox_open+0x8e) [0x7fc99f6c9a5e] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x4b779) [0x7fc99f69f779] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x4b858) [0x7fc99f69f858] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x36246) [0x7fc99f68a246] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_open+0x20) [0x7fc99f68a3c0] -> dovecot/imap(cmd_select_full+0x16d) [0x4135ad] -> dovecot/imap(command_exec+0xa5) [0x41a075] -> dovecot/imap() [0x4184df] -> dovecot/imap() [0x41856f] -> dovecot/imap(client_handle_input+0x195) [0x418915] -> dovecot/imap(client_input+0x82) [0x418df2] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x4c) [0x7fc99f3e0cfc] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x10f) [0x7fc99f3e21bf] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x25) [0x7fc99f3e0d85] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_run+0x38) [0x7fc99f3e0f38] -> /usr/lib64/dovecot/libdovecot.so.0(master_service_run+0x13) [0x7fc99f36d0f3] -> dovecot/imap(main+0x312) [0x40c702] -> /lib64/libc.so.6(__libc_start_main+0xf5) [0x7fc99ef99b35]

The mailbox was migrated from cPanel to Plesk.

Cause

Corrupted Dovecot index file.

Resolution

1. Move the file /var/qmail/mailnames/example.com/chris/Maildir/dovecot.index :

# cd /var/qmail/mailnames/example.com/chris/Maildir/

# mv dovecot.index{,.back}


2. Access the mailbox via webmail to re-generate the dovecot.index file


Have more questions? Submit a request
Please sign in to leave a comment.