1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

error while rebuilding search index

Discussion in 'Enhanced Search Support' started by PeterChen, Apr 8, 2016.

  1. PeterChen

    PeterChen Member

    Hello, i have this error while rebuilding search index in elasticsearch 2.3 and 2.3.1 too.

    What would be the problem and how to fix it?

    Server Error Log
    Error Info
    XenForo_Exception: Elasticsearch indexing failed. See the server error log for more details. - library/XenES/Search/SourceHandler/ElasticSearch.php:1003
    Generated By: ADMIN, 17 minutes ago
    Stack Trace
    #0 /home/mydomain.abc/public_html/forum/library/XenES/Search/SourceHandler/ElasticSearch.php(76): XenES_Search_SourceHandler_ElasticSearch->_triggerFailedIndexError(Object(stdClass), Array)
    #1 /home/mydomain.abc/public_html/forum/library/XenForo/Search/Indexer.php(125): XenES_Search_SourceHandler_ElasticSearch->finalizeRebuildSet()
    #2 /home/mydomain.abc/public_html/forum/library/XenForo/Deferred/SearchIndex.php(76): XenForo_Search_Indexer->finalizeRebuildSet()
    #3 /home/mydomain.abc/public_html/forum/library/XenForo/Model/Deferred.php(295): XenForo_Deferred_SearchIndex->execute(Array, Array, 7.8833940029144, '')
    #4 /home/mydomain.abc/public_html/forum/library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.8833940029144, '', false)
    #5 /home/mydomain.abc/public_html/forum/library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, 7.8833940029144, '', false)
    #6 /home/mydomain.abc/public_html/forum/library/XenForo/ViewRenderer/Abstract.php(352): XenForo_Model_Deferred->run(true, 7.8833940029144)
    #7 /home/mydomain.abc/public_html/forum/library/XenForo/ViewRenderer/HtmlAdmin.php(131): XenForo_ViewRenderer_Abstract::hasManualDeferredToRun(true)
    #8 /home/mydomain.abc/public_html/forum/library/XenForo/FrontController.php(637): XenForo_ViewRenderer_HtmlAdmin->renderContainer(Object(XenForo_Template_Admin), Array)
    #9 /home/mydomain.abc/public_html/forum/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_Error), Object(XenForo_ViewRenderer_HtmlAdmin), Array)
    #10 /home/mydomain.abc/public_html/forum/admin.php(13): XenForo_FrontController->run()
    #11 {main}
    Request State
    array(3) {
      ["url"] => string(56) "http://mydomain.abc/forum/admin.php?tools/run-deferred"
      ["_GET"] => array(1) {
        ["tools/run-deferred"] => string(0) ""
      ["_POST"] => array(3) {
        ["redirect"] => string(61) "http://mydomain.abc/forum/admin.php?tools/rebuild&success=1"
        ["execute"] => string(1) "1"
        ["_xfToken"] => string(8) "********"
  2. Mike

    Mike XenForo Developer Staff Member

    There would normally be another log entry about it. Is there?

    If not, is there anything in the raw Elasticsearch error log?

    What version of XF Enhanced Search are you using?
  3. PeterChen

    PeterChen Member

    here is some log from /var/log/elasticsearch

    Attached Files:

  4. Mike

    Mike XenForo Developer Staff Member

    Looks like you have some empty posts, which isn't something that's possible in XF, so I'm guessing these are from an import using a non-standard importer (the big board importer?).

    You may be able to find them via a query (SELECT * FROM xf_post WHERE message = ''; I think). They'll need contents or to be removed.
  5. PeterChen

    PeterChen Member

    I have removed all empty posts as you suggest ( there were 17 of them).

    but when i tried rebulding search index, i still get the same error.

    What should i try next?

    Attached Files:

    Last edited: Apr 10, 2016
  6. Mike

    Mike XenForo Developer Staff Member

    I suppose it could be another content type, potentially even one from an add-on, though the error does seem to indicate a post. If you can submit a ticket with ACP and FTP access details, I'll see if I can get some more specific details.
  7. PeterChen

    PeterChen Member

    ticket opened.

Share This Page