Elasticsearch error: all shards failed

Nirjonadda

Well-known member
#1
I am getting error about Elasticsearch error: all shards failed. Does this bug or not?

Code:
XFES\Elasticsearch\RequestException: Elasticsearch error: all shards failed src/addons/XFES/Elasticsearch/Api.php:387

Generated by: Unknown account Mar 8, 2018 at 9:02 PM

Stack trace

#0 src/addons/XFES/Elasticsearch/Api.php(312): XFES\Elasticsearch\Api->request('get', 'nadda_forumdata...', '{\n    "sort": [...')
#1 src/addons/XFES/Elasticsearch/Api.php(216): XFES\Elasticsearch\Api->requestFromIndex('get', '_search', Array)
#2 src/addons/XFES/Search/Source/Elasticsearch.php(149): XFES\Elasticsearch\Api->search(Array)
#3 src/XF/Search/Search.php(164): XFES\Search\Source\Elasticsearch->search(Object(XF\Search\Query\Query), '200')
#4 src/XF/Repository/Search.php(34): XF\Search\Search->search(Object(XF\Search\Query\Query))
#5 src/XF/Pub/Controller/Search.php(381): XF\Repository\Search->runSearch(Object(XF\Search\Query\Query), Array, true)
#6 src/XF/Pub/Controller/Search.php(110): XF\Pub\Controller\Search->runSearch(Object(XF\Search\Query\Query), Array)
#7 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Search->actionSearch(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Search', 'Search', 'html', Object(XF\Mvc\ParameterBag), '', Object(XF\Pub\Controller\Search), NULL)
#9 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(1889): XF\Mvc\Dispatcher->run()
#11 src/XF.php(328): XF\App->run()
#12 index.php(13): XF::runApp('XF\\Pub\\App')
#13 {main}

Request state

array(4) {
  ["url"] => string(83) "/search/search?_xfToken=&date=&keywords=If+Apps+were+People%21+Niki+and+Gabi&users="
  ["referrer"] => bool(false)
  ["_GET"] => array(4) {
    ["_xfToken"] => string(0) ""
    ["date"] => string(0) ""
    ["keywords"] => string(34) "If Apps were People! Niki and Gabi"
    ["users"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 

S Thomas

Well-known member
#2
If you recently upgraded or if the health status of the shards stays red, you'll have to rebuild the index. This will override your old index data, tho.
 
Top