Kopano-search not functioning after upgrading to 8.4.0~344



  • Today I’ve upgraded to 344 to fix some issue but it appears that kopano-search no longer functions. I get the following error:

    Apr 18 13:17:18 kopano kopano-search[4079]: Exception in thread Thread-1:
    Apr 18 13:17:18 kopano kopano-search[4079]: Traceback (most recent call last):
    Apr 18 13:17:18 kopano kopano-search[4079]: File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
    Apr 18 13:17:18 kopano kopano-search[4079]: self.run()
    Apr 18 13:17:18 kopano kopano-search[4079]: File "/usr/lib64/python2.7/threading.py", line 764, in run
    Apr 18 13:17:18 kopano kopano-search[4079]: self.__target(*self.__args, **self.__kwargs)
    Apr 18 13:17:18 kopano kopano-search[4079]: File "/usr/lib/python2.7/site-packages/kopano/log.py", line 147, in _monitor
    Apr 18 13:17:18 kopano kopano-search[4079]: record = self.dequeue(True)
    Apr 18 13:17:18 kopano kopano-search[4079]: File "/usr/lib/python2.7/site-packages/kopano/log.py", line 127, in dequeue
    Apr 18 13:17:18 kopano kopano-search[4079]: return self.queue.get(block)
    Apr 18 13:17:18 kopano kopano-search[4079]: File "/usr/lib64/python2.7/multiprocessing/queues.py", line 117, in get
    Apr 18 13:17:18 kopano kopano-search[4079]: res = self._recv()
    Apr 18 13:17:18 kopano kopano-search[4079]: IOError: [Errno 9] Bad file descriptor
    Apr 18 13:17:57 kopano kopano-search[4079]: Tue Apr 18 13:17:57 2017: [error  ] M4LMAPISession::OpenEntry() OpenEntry(2) fail 8004010f: not found
    Apr 18 13:22:46 kopano kopano-search[4079]: Tue Apr 18 13:22:46 2017: [error  ] M4LMAPISession::OpenEntry() OpenEntry(2) fail 8004010f: not found
    

    My config:

    index_path          =   /var/lib/kopano/search/
    run_as_user         = kopano
    run_as_group        = kopano
    limit_results           =       1000
    server_bind_name   =   file:///var/run/kopano/search.sock
    ssl_private_key_file = /etc/kopano/search/privkey.pem
    ssl_certificate_file = /etc/kopano/search/cert.pem
    log_method = syslog
    log_file            =   /var/log/kopano/search.log
    log_timestamp       =   1
    term_cache_size         =   64M
    index_processes         =   3
    suggestions = yes
    index_attachments       = yes
    index_attachment_max_size = 5M
    

    OS: CentOS7, latest patches applied as of today.


  • Kopano

    Hi @hpvb ,

    I just tried reproducing your issue on 8,4,0,344 (on CentOS Linux release 7.3.1611 (Core)), but I am unable to do so.

    For me search starts fine, indexes messages, and displays results.



  • This is somewhat peculiar, it works now. But I think this is an indication that something certainly was wrong:

    -rw-rw-rw- 2 kopano kopano 0 Apr 18 13:16 search.pid.lock
    srwx------ 1 kopano kopano 0 Apr 18 16:43 search.sock
    

    It apparently took kopano-search 3.5 hours to successfully create search.sock. :-/ No idea what to do about this now. It just works now.


  • Kopano

    @hpvb the socket file only get created once kopano-search has finished the initial indexing.



  • I guess the upgrade must’ve forced a reindex then?


Log in to reply
 

Looks like your connection to Kopano Community Forum was lost, please wait while we try to reconnect.