dovecot imapd process crashes using dovecot-solr

Bug #1242365 reported by Hasse Hagen Johansen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dovecot (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I had my dovecot successfully configured for using solr for fulltext search with dovecot on my ubuntu 13.04. Now I have upgraded to 13.10 and I now see this in the log crashing the imapd process(and I don't quite understand why maxfd can less than zero. I Did try disable apparmor but it didn't help):

Oct 20 16:38:11 pris dovecot: imap(hhj): Panic: file solr-connection.c: line 545 (solr_connection_post_more): assertion failed: (maxfd >= 0)
Oct 20 16:38:11 pris dovecot: imap(hhj): Error: Raw backtrace: /usr/lib/dovecot/libdovecot.so.0(+0x3b297) [0x7fdab6a1e297] -> /usr/lib/dovecot/libdovecot.so.0(+0x3b35e) [0x7fdab6a1e35e] -> /usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7fdab69f6763] -> /usr/lib/dovecot/modules/lib21_fts_solr_plugin.so(solr_connection_post_more+0x259) [0x7fdab53891b9] -> /usr/lib/dovecot/modules/lib21_fts_solr_plugin.so(solr_connection_post+0x27) [0x7fdab5389377] -> /usr/lib/dovecot/modules/lib21_fts_solr_plugin.so(+0x415f) [0x7fdab538615f] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x41d3c) [0x7fdab6caad3c] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x46ca0) [0x7fdab6cafca0] -> /usr/lib/dovecot/libdovecot-storage.so.0(maildir_file_do+0x3d) [0x7fdab6cb00dd] -> /usr/lib/dovecot/libdovecot-storage.so.0(maildir_sync_index+0x2d1) [0x7fdab6cab361] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x41028) [0x7fdab6caa028] -> /usr/lib/dovecot/libdovecot-storage.so.0(maildir_storage_sync_init+0xdd) [0x7fdab6caa74d] -> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x29) [0x7fdab6cd7309] -> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x27) [0x7fdab6cd7417] -> dovecot/imap(cmd_select_full+0x137) [0x7fdab7195407] -> dovecot/imap(command_exec+0x3c) [0x7fdab719905c] -> dovecot/imap(+0x1107b) [0x7fdab719807b] -> dovecot/imap(+0x1112d) [0x7fdab719812d] -> dovecot/imap(client_handle_input+0x12d) [0x7fdab71983dd] -> dovecot/imap(client_input+0x65) [0x7fdab7198ba5] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x27) [0x7fdab6a2a9f7] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0xa7) [0x7fdab6a2b6e7] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x28) [0x7fdab6a2a5f8] -> /usr/lib/dovecot/libdovecot.so.0(master_service_run+0x13) [0x7fdab6a17ae3] -> dovecot/imap(main+0x2ba) [0x7fdab719084a] -> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fdab663cde5] -> dovecot/imap(+0x99b4) [0x7fdab71909b4]
Oct 20 16:38:11 pris dovecot: imap(hhj): Fatal: master: service(imap): child 4788 killed with signal 6 (core dumped)

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: dovecot-solr 1:2.1.7-7ubuntu3
ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
Uname: Linux 3.11.0-12-generic x86_64
ApportVersion: 2.12.5-0ubuntu2
Architecture: amd64
Date: Sun Oct 20 16:46:40 2013
InstallationDate: Installed on 2011-06-24 (848 days ago)
InstallationMedia: Ubuntu-Server 11.04 "Natty Narwhal" - Release amd64 (20110426)
MarkForUpload: True
SourcePackage: dovecot
UpgradeStatus: Upgraded to saucy on 2013-10-20 (0 days ago)

Revision history for this message
Hasse Hagen Johansen (hasse-launchpad) wrote :
Revision history for this message
Hasse Hagen Johansen (hasse-launchpad) wrote :

Sorry. I think this bug can be closed. It works now. I think it just needed to be reindexed

Changed in dovecot (Ubuntu):
status: New → Invalid
Changed in dovecot (Ubuntu):
status: Invalid → New
Revision history for this message
Hasse Hagen Johansen (hasse-launchpad) wrote :

Ok. I lookedsome more into this bug. The imap process is not coredumping anymore when accessing the mailbox via imap (for some reason I cannot quite understand)

But I cannot update the text index anymore. I have found what seems the exact same bug reported in debians bugtracker http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=719666

I have checked the versions of the debian bugreport against the versions installed on my Ubuntu system. They are the same for dovecot-solr and libvurl3.

I can also reproduce it on a newly installed Ubuntu 13.10 in a virtual machine. By installing dove-solr,solr and configuring it. Then sending a couple of mails to the user and then try to do a "/usr/bin/doveadm index -u <user> INBOX"

So it seems that dovecot fultext search with solr is broken :(

Sorry for my original confusing bugreport

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dovecot (Ubuntu):
status: New → Confirmed
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

While cleaning up I did several solr tests recently (Yakkety) and it was working fine.
Thast said I can't sort out where in between it was fixed, but it should be valid to set the Ubuntu Devel release to Fix Released.

Changed in dovecot (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.