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

XenForo_Exception: Elasticsearch server returned no response.

#1
Hello,
I am testing on my localhost now and when I rebuilt search I got this:

XenForo_Exception: Elasticsearch server returned no response. Is it running? Elasticsearch indexing failed for post- - library/XenES/Search/SourceHandler/ElasticSearch.php:738
Generated By: admin, 10 minutes ago
Stack Trace
#0 /var/www/html/xen/library/XenES/Search/SourceHandler/ElasticSearch.php(765): XenES_Search_SourceHandler_ElasticSearch->_logSearchResponseError(false, true, 'Elasticsearch i...')
#1 /var/www/html/xen/library/XenES/Search/SourceHandler/ElasticSearch.php(67): XenES_Search_SourceHandler_ElasticSearch->_assertIndexSuccessful(false, 'post')
#2 /var/www/html/xen/library/XenForo/Search/Indexer.php(125): XenES_Search_SourceHandler_ElasticSearch->finalizeRebuildSet()
#3 /var/www/html/xen/library/XenForo/Deferred/SearchIndex.php(74): XenForo_Search_Indexer->finalizeRebuildSet()
#4 /var/www/html/xen/library/XenForo/Model/Deferred.php(256): XenForo_Deferred_SearchIndex->execute(Array, Array, 7.9999990463257, '')
#5 /var/www/html/xen/library/XenForo/Model/Deferred.php(390): XenForo_Model_Deferred->runDeferred(Array, 7.9999990463257, '', false)
#6 /var/www/html/xen/library/XenForo/Model/Deferred.php(335): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
#7 /var/www/html/xen/library/XenForo/ControllerAdmin/Tools.php(159): XenForo_Model_Deferred->run(true, NULL, '', false)
#8 /var/www/html/xen/library/XenForo/FrontController.php(347): XenForo_ControllerAdmin_Tools->actionRunDeferred()
#9 /var/www/html/xen/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#10 /var/www/html/xen/admin.php(13): XenForo_FrontController->run()
#11 {main}
Request State
array(3) {
["url"] => string(49) "http://localhost/xen/admin.php?tools/run-deferred"
["_GET"] => array(1) {
["tools/run-deferred"] => string(0) ""
}
["_POST"] => array(3) {
["redirect"] => string(54) "http://localhost/xen/admin.php?tools/rebuild&success=1"
["execute"] => string(1) "1"
["_xfToken"] => string(8) "********"
}
}


An exception occurred: No response returned from Elasticsearch. Is it running? in /var/www/html/xen/library/XenES/Search/SourceHandler/ElasticSearch.php on line 770

  1. XenES_Search_SourceHandler_ElasticSearch->_assertIndexSuccessful() in XenES/Search/SourceHandler/ElasticSearch.php at line 67
  2. XenES_Search_SourceHandler_ElasticSearch->finalizeRebuildSet() in XenForo/Search/Indexer.php at line 125
  3. XenForo_Search_Indexer->finalizeRebuildSet() in XenForo/Deferred/SearchIndex.php at line 74
  4. XenForo_Deferred_SearchIndex->execute() in XenForo/Model/Deferred.php at line 256
  5. XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 390
  6. XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 335
  7. XenForo_Model_Deferred->run() in XenForo/ViewRenderer/Abstract.php at line 352
  8. XenForo_ViewRenderer_Abstract::hasManualDeferredToRun() in XenForo/ViewRenderer/HtmlAdmin.php at line 130
  9. XenForo_ViewRenderer_HtmlAdmin->renderContainer() in XenForo/FrontController.php at line 618
  10. XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
  11. XenForo_FrontController->run() in /var/www/html/xen/admin.php at line 13
 
Last edited:
#2
I have read and tried this:
(http://xenforo.com/community/thread...urned-from-elasticsearch-is-it-running.27009/)
My elasticsearch working:

[root@host ~]# curl http://localhost:9200
{
"status" : 200,
"name" : "Riot Grrl",
"version" : {
"number" : "1.1.1",
"build_hash" : "f1585f096d3f3985e73456debdc1a0745f512bbc",
"build_timestamp" : "2014-04-16T14:27:12Z",
"build_snapshot" : false,
"lucene_version" : "4.7"
},
"tagline" : "You Know, for Search"
}

I have tried to disable all firewall on my server but no luck.
Is there any ways to solve this problem?