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

"Is it running?" - Worked fine on test install but fails on live site (same server)

Discussion in 'Enhanced Search Support' started by RobParker, May 4, 2012.

  1. RobParker

    RobParker Well-Known Member

    Bit of a strange problem.

    ES worked fine on our dev install (basically a full copy of our live site).

    Trying to install it on our live site (the same server) and it stops half way through giving the "is elasticsearch running" error and it definitely is running:

    ElasticSearch is running: PID:529165, Wrapper:STARTED, Java:STARTED


      "ok" : true,
      "name" : "Binary",
      "version" : {
        "number" : "0.18.7",
        "snapshot_build" : false
      "tagline" : "You Know, for Search",
      "cover" : "DON'T PANIC",
      "quote" : {
        "book" : "So Long And Thanks for All the Fish",
        "chapter" : "Chapter 21",
        "text1" : "The problem is, or rather one of the problems, for there are many, a sizeable proportion of which are continually clogging up the civil, commercial, and criminal courts in all areas of the Galaxy, and especially, where possible, the more corrupt ones, this.",
        "text2" : "The previous sentence makes sense. That is not the problem.",
        "text3" : "This is:",
        "text4" : "Change.",
        "text5" : "Read it through again and you'll get it."
    Any ideas?
  2. Slavik

    Slavik XenForo Moderator Staff Member

    Can you paste the whole error from the admin log?
  3. RobParker

    RobParker Well-Known Member

    From the ACP?

    Seeing a lot of these:

    Screen Shot 2012-05-04 at 20.46.00.png
  4. Slavik

    Slavik XenForo Moderator Staff Member

    Pick of a couple of the different ones.

    The shard failures would suggest your hitting the open file limit.
  5. RobParker

    RobParker Well-Known Member

    XenForo_Exception: Elasticsearch server returned no response. Is it running? Elasticsearch indexing failed for post- - library/XenES/Search/SourceHandler/ElasticSearch.php:721
    Generated By: Rob, A moment ago
    #0 /hsphere/local/home/library/XenES/Search/SourceHandler/ElasticSearch.php(748): XenES_Search_SourceHandler_ElasticSearch->_logSearchResponseError(false, true, 'Elasticsearch i...')
    #1 /hsphere/local/home/library/XenES/Search/SourceHandler/ElasticSearch.php(67): XenES_Search_SourceHandler_ElasticSearch->_assertIndexSuccessful(false, 'post')
    #2 /hsphere/local/home/library/XenForo/Search/Indexer.php(125): XenES_Search_SourceHandler_ElasticSearch->finalizeRebuildSet()
    #3 /hsphere/local/home/library/XenForo/CacheRebuilder/SearchIndex.php(93): XenForo_Search_Indexer->finalizeRebuildSet()
    #4 /hsphere/local/home/library/XenForo/ControllerHelper/CacheRebuild.php(26): XenForo_CacheRebuilder_SearchIndex->rebuild(0, Array, NULL)
    #5 /hsphere/local/home/library/XenForo/ControllerAdmin/Tools.php(78): XenForo_ControllerHelper_CacheRebuild->rebuildCache(Array, 'http://www.spur...', 'admin.php?tools...', true)
    #6 /hsphere/local/home/library/XenForo/FrontController.php(310): XenForo_ControllerAdmin_Tools->actionCacheRebuild()
    #7 /hsphere/local/home/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #8 /hsphere/local/home/admin.php(13): XenForo_FrontController->run()
    #9 {main}

    XenForo_Exception: Elasticsearch error: SearchPhaseExecutionException[Failed to execute phase [query], total failure; shardFailures {[_na_][sc_xf][0]: No active shards}{[_na_][sc_xf][1]: No active shards}{[_na_][sc_xf][2]: No active shards}{[_na_][sc_xf][3]: No active shards}{[_na_][sc_xf][4]: No active shards}] - library/XenES/Search/SourceHandler/ElasticSearch.php:716
    Generated By: Unknown Account, 4 minutes ago
    Stack Trace
    #0 /hsphere/local/home/library/XenES/Search/SourceHandler/ElasticSearch.php(405): XenES_Search_SourceHandler_ElasticSearch->_logSearchResponseError(Object(stdClass), true)
    #1 /hsphere/local/home/ibrary/XenForo/ControllerPublic/Member.php(507): XenES_Search_SourceHandler_ElasticSearch->executeSearchByUserId(15212, 0, 15)
    #2 /hsphere/local/home/library/XenForo/FrontController.php(310): XenForo_ControllerPublic_Member->actionRecentContent()
    #3 /hsphere/local/home/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #4 /hsphere/local/home/index.php(13): XenForo_FrontController->run()
    #5 {main}
    Request State
    array(3) {
    ["url"] => string(91) "http://qqwww.spurscommunity.co.uk/index.php?members/ohh_when_the_spurs.15212/recent-content"
    ["_GET"] => array(1) {
    ["members/ohh_when_the_spurs_15212/recent-content"] => string(0) ""
    ["_POST"] => array(0) {
  6. Slavik

    Slavik XenForo Moderator Staff Member

    The [_na_][sc_xf] suggests ES is unable to understand what it is trying to show you. The _na_ would normally be a string or query and the sc_xf I assume is your index name.

    Can you check your ES logs, usually in /elasticsearch/logs unless you moved the directory.

Share This Page