Elastic Search Error

JoyFreak

Well-known member
Moved hosts, installed Elastic Search and set it up via the admin cp. But get this error when trying to access posting tab on a user profile:

  • XFES\Elasticsearch\ConnectException: cURL error 7: Failed to connect to localhost port 9200: Connection refused
  • src/addons/XFES/Elasticsearch/Api.php:368
  • Generated by: Polaroid
  • Oct 11, 2018 at 9:21 PM
Stack trace
#0 src/addons/XFES/Elasticsearch/Api.php(90): XFES\Elasticsearch\Api->request('get', '/')
#1 src/addons/XFES/Elasticsearch/Api.php(107): XFES\Elasticsearch\Api->version()
#2 src/addons/XFES/Search/Source/Elasticsearch.php(226): XFES\Elasticsearch\Api->majorVersion()
#3 src/addons/XFES/Search/Source/Elasticsearch.php(145): XFES\Search\Source\Elasticsearch->getDslFromQuery(Object(XF\Search\Query\Query), '200')
#4 src/XF/Search/Search.php(164): XFES\Search\Source\Elasticsearch->search(Object(XF\Search\Query\Query), '200')
#5 src/XF/Pub/Controller/Member.php(533): XF\Search\Search->search(Object(XF\Search\Query\Query))
#6 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Member->actionRecentContent(Object(XF\Mvc\ParameterBag))
#7 src/XF/Mvc/Dispatcher.php(89): XF\Mvc\Dispatcher->dispatchClass('XF:Member', 'recent-content', 'json', Object(XF\Mvc\ParameterBag), 'members', Object(ThemeHouse\Bookmarks\XF\Pub\Controller\Member), NULL)
#8 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#10 src/XF.php(329): XF\App->run()
#11 index.php(13): XF::runApp('XF\\Pub\\App')
#12 {main}

-------------

Previous GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to localhost port 9200: Connection refused - src/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:49
#0 src/vendor/guzzlehttp/guzzle/src/RequestFsm.php(104): GuzzleHttp\Exception\RequestException::wrapException(Object(GuzzleHttp\Message\Request), Object(GuzzleHttp\Ring\Exception\ConnectException))
#1 src/vendor/guzzlehttp/guzzle/src/RequestFsm.php(132): GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
#2 src/vendor/react/promise/src/FulfilledPromise.php(25): GuzzleHttp\RequestFsm->GuzzleHttp\{closure}(Array)
#3 src/vendor/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php(55): React\Promise\FulfilledPromise->then(Object(Closure), NULL, NULL)
#4 src/vendor/guzzlehttp/guzzle/src/Message/FutureResponse.php(43): GuzzleHttp\Ring\Future\CompletedFutureValue->then(Object(Closure), NULL, NULL)
#5 src/vendor/guzzlehttp/guzzle/src/RequestFsm.php(135): GuzzleHttp\Message\FutureResponse::proxy(Object(GuzzleHttp\Ring\Future\CompletedFutureArray), Object(Closure))
#6 src/vendor/guzzlehttp/guzzle/src/Client.php(165): GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
#7 src/addons/XFES/Elasticsearch/Api.php(351): GuzzleHttp\Client->send(Object(GuzzleHttp\Message\Request))
#8 src/addons/XFES/Elasticsearch/Api.php(90): XFES\Elasticsearch\Api->request('get', '/')
#9 src/addons/XFES/Elasticsearch/Api.php(107): XFES\Elasticsearch\Api->version()
#10 src/addons/XFES/Search/Source/Elasticsearch.php(226): XFES\Elasticsearch\Api->majorVersion()
#11 src/addons/XFES/Search/Source/Elasticsearch.php(145): XFES\Search\Source\Elasticsearch->getDslFromQuery(Object(XF\Search\Query\Query), '200')
#12 src/XF/Search/Search.php(164): XFES\Search\Source\Elasticsearch->search(Object(XF\Search\Query\Query), '200')
#13 src/XF/Pub/Controller/Member.php(533): XF\Search\Search->search(Object(XF\Search\Query\Query))
#14 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Member->actionRecentContent(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(89): XF\Mvc\Dispatcher->dispatchClass('XF:Member', 'recent-content', 'json', Object(XF\Mvc\ParameterBag), 'members', Object(ThemeHouse\Bookmarks\XF\Pub\Controller\Member), NULL)
#16 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#17 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#18 src/XF.php(329): XF\App->run()
#19 index.php(13): XF::runApp('XF\\Pub\\App')
#20 {main}

-------------

Previous GuzzleHttp\Ring\Exception\ConnectException: cURL error 7: Failed to connect to localhost port 9200: Connection refused - src/vendor/guzzlehttp/ringphp/src/Client/CurlFactory.php:126
#0 src/vendor/guzzlehttp/ringphp/src/Client/CurlFactory.php(91): GuzzleHttp\Ring\Client\CurlFactory::createErrorResponse(Array, Array, Array)
#1 src/vendor/guzzlehttp/ringphp/src/Client/CurlHandler.php(96): GuzzleHttp\Ring\Client\CurlFactory::createResponse(Array, Array, Array, Array, Resource id #6)
#2 src/vendor/guzzlehttp/ringphp/src/Client/CurlHandler.php(68): GuzzleHttp\Ring\Client\CurlHandler->_invokeAsArray(Array)
#3 src/vendor/guzzlehttp/ringphp/src/Client/Middleware.php(54): GuzzleHttp\Ring\Client\CurlHandler->__invoke(Array)
#4 src/vendor/guzzlehttp/ringphp/src/Client/Middleware.php(30): GuzzleHttp\Ring\Client\Middleware::GuzzleHttp\Ring\Client\{closure}(Array)
#5 src/vendor/guzzlehttp/guzzle/src/RequestFsm.php(129): GuzzleHttp\Ring\Client\Middleware::GuzzleHttp\Ring\Client\{closure}(Array)
#6 src/vendor/guzzlehttp/guzzle/src/Client.php(165): GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
#7 src/addons/XFES/Elasticsearch/Api.php(351): GuzzleHttp\Client->send(Object(GuzzleHttp\Message\Request))
#8 src/addons/XFES/Elasticsearch/Api.php(90): XFES\Elasticsearch\Api->request('get', '/')
#9 src/addons/XFES/Elasticsearch/Api.php(107): XFES\Elasticsearch\Api->version()
#10 src/addons/XFES/Search/Source/Elasticsearch.php(226): XFES\Elasticsearch\Api->majorVersion()
#11 src/addons/XFES/Search/Source/Elasticsearch.php(145): XFES\Search\Source\Elasticsearch->getDslFromQuery(Object(XF\Search\Query\Query), '200')
#12 src/XF/Search/Search.php(164): XFES\Search\Source\Elasticsearch->search(Object(XF\Search\Query\Query), '200')
#13 src/XF/Pub/Controller/Member.php(533): XF\Search\Search->search(Object(XF\Search\Query\Query))
#14 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Member->actionRecentContent(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(89): XF\Mvc\Dispatcher->dispatchClass('XF:Member', 'recent-content', 'json', Object(XF\Mvc\ParameterBag), 'members', Object(ThemeHouse\Bookmarks\XF\Pub\Controller\Member), NULL)
#16 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#17 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#18 src/XF.php(329): XF\App->run()
#19 index.php(13): XF::runApp('XF\\Pub\\App')
#20 {main}
Request state
array(4) {
["url"] => string(171) "/members/joyfreak.2091/recent-content?_xfRequestUri=%2Fmembers%2Fjoyfreak.2091%2F&_xfWithData=1&_xfToken=1539289295%2C375c13b52f6600415942d8604a8ebe24&_xfResponseType=json"
["referrer"] => string(47) "https://www.joyfreak.com/members/joyfreak.2091/"
["_GET"] => array(4) {
["_xfRequestUri"] => string(23) "/members/joyfreak.2091/"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(43) "1539289295,375c13b52f6600415942d8604a8ebe24"
["_xfResponseType"] => string(4) "json"
}
["_POST"] => array(0) {
}
}
 
Another one:

  • XFES\Elasticsearch\ConnectException: Elasticsearch indexing error (queued): cURL error 7: Failed to connect to localhost port 9200: Connection refused
  • src/addons/XFES/Elasticsearch/Api.php:368
  • Generated by: omar5bad
  • Oct 11, 2018 at 9:21 PM
Stack trace
#0 src/addons/XFES/Elasticsearch/Api.php(90): XFES\Elasticsearch\Api->request('get', '/')
#1 src/addons/XFES/Elasticsearch/Api.php(107): XFES\Elasticsearch\Api->version()
#2 src/addons/XFES/Elasticsearch/Api.php(134): XFES\Elasticsearch\Api->majorVersion()
#3 src/addons/XFES/Elasticsearch/Api.php(317): XFES\Elasticsearch\Api->isTypelessIndex()
#4 src/addons/XFES/Elasticsearch/Api.php(152): XFES\Elasticsearch\Api->requestById('put', 'thread', 18487, Array)
#5 src/addons/XFES/Search/Source/Elasticsearch.php(66): XFES\Elasticsearch\Api->index('thread', 18487, Array)
#6 src/XF/Search/Search.php(40): XFES\Search\Source\Elasticsearch->index(Object(XF\Search\IndexRecord))
#7 src/XF/Behavior/Indexable.php(46): XF\Search\Search->index('post', Object(ThemeHouse\Bookmarks\XF\Entity\Post), false)
#8 src/XF.php(245): XF\Behavior\Indexable->XF\Behavior\{closure}()
#9 src/XF/Mvc/Dispatcher.php(137): XF::triggerRunOnce(true)
#10 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#12 src/XF.php(329): XF\App->run()
#13 index.php(13): XF::runApp('XF\\Pub\\App')
#14 {main}

-------------

Previous GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to localhost port 9200: Connection refused - src/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:49
#0 src/vendor/guzzlehttp/guzzle/src/RequestFsm.php(104): GuzzleHttp\Exception\RequestException::wrapException(Object(GuzzleHttp\Message\Request), Object(GuzzleHttp\Ring\Exception\ConnectException))
#1 src/vendor/guzzlehttp/guzzle/src/RequestFsm.php(132): GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
#2 src/vendor/react/promise/src/FulfilledPromise.php(25): GuzzleHttp\RequestFsm->GuzzleHttp\{closure}(Array)
#3 src/vendor/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php(55): React\Promise\FulfilledPromise->then(Object(Closure), NULL, NULL)
#4 src/vendor/guzzlehttp/guzzle/src/Message/FutureResponse.php(43): GuzzleHttp\Ring\Future\CompletedFutureValue->then(Object(Closure), NULL, NULL)
#5 src/vendor/guzzlehttp/guzzle/src/RequestFsm.php(135): GuzzleHttp\Message\FutureResponse::proxy(Object(GuzzleHttp\Ring\Future\CompletedFutureArray), Object(Closure))
#6 src/vendor/guzzlehttp/guzzle/src/Client.php(165): GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
#7 src/addons/XFES/Elasticsearch/Api.php(351): GuzzleHttp\Client->send(Object(GuzzleHttp\Message\Request))
#8 src/addons/XFES/Elasticsearch/Api.php(90): XFES\Elasticsearch\Api->request('get', '/')
#9 src/addons/XFES/Elasticsearch/Api.php(107): XFES\Elasticsearch\Api->version()
#10 src/addons/XFES/Elasticsearch/Api.php(134): XFES\Elasticsearch\Api->majorVersion()
#11 src/addons/XFES/Elasticsearch/Api.php(317): XFES\Elasticsearch\Api->isTypelessIndex()
#12 src/addons/XFES/Elasticsearch/Api.php(152): XFES\Elasticsearch\Api->requestById('put', 'thread', 18487, Array)
#13 src/addons/XFES/Search/Source/Elasticsearch.php(66): XFES\Elasticsearch\Api->index('thread', 18487, Array)
#14 src/XF/Search/Search.php(40): XFES\Search\Source\Elasticsearch->index(Object(XF\Search\IndexRecord))
#15 src/XF/Behavior/Indexable.php(46): XF\Search\Search->index('post', Object(ThemeHouse\Bookmarks\XF\Entity\Post), false)
#16 src/XF.php(245): XF\Behavior\Indexable->XF\Behavior\{closure}()
#17 src/XF/Mvc/Dispatcher.php(137): XF::triggerRunOnce(true)
#18 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#19 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#20 src/XF.php(329): XF\App->run()
#21 index.php(13): XF::runApp('XF\\Pub\\App')
#22 {main}

-------------

Previous GuzzleHttp\Ring\Exception\ConnectException: cURL error 7: Failed to connect to localhost port 9200: Connection refused - src/vendor/guzzlehttp/ringphp/src/Client/CurlFactory.php:126
#0 src/vendor/guzzlehttp/ringphp/src/Client/CurlFactory.php(91): GuzzleHttp\Ring\Client\CurlFactory::createErrorResponse(Array, Array, Array)
#1 src/vendor/guzzlehttp/ringphp/src/Client/CurlHandler.php(96): GuzzleHttp\Ring\Client\CurlFactory::createResponse(Array, Array, Array, Array, Resource id #29)
#2 src/vendor/guzzlehttp/ringphp/src/Client/CurlHandler.php(68): GuzzleHttp\Ring\Client\CurlHandler->_invokeAsArray(Array)
#3 src/vendor/guzzlehttp/ringphp/src/Client/Middleware.php(54): GuzzleHttp\Ring\Client\CurlHandler->__invoke(Array)
#4 src/vendor/guzzlehttp/ringphp/src/Client/Middleware.php(30): GuzzleHttp\Ring\Client\Middleware::GuzzleHttp\Ring\Client\{closure}(Array)
#5 src/vendor/guzzlehttp/guzzle/src/RequestFsm.php(129): GuzzleHttp\Ring\Client\Middleware::GuzzleHttp\Ring\Client\{closure}(Array)
#6 src/vendor/guzzlehttp/guzzle/src/Client.php(165): GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
#7 src/addons/XFES/Elasticsearch/Api.php(351): GuzzleHttp\Client->send(Object(GuzzleHttp\Message\Request))
#8 src/addons/XFES/Elasticsearch/Api.php(90): XFES\Elasticsearch\Api->request('get', '/')
#9 src/addons/XFES/Elasticsearch/Api.php(107): XFES\Elasticsearch\Api->version()
#10 src/addons/XFES/Elasticsearch/Api.php(134): XFES\Elasticsearch\Api->majorVersion()
#11 src/addons/XFES/Elasticsearch/Api.php(317): XFES\Elasticsearch\Api->isTypelessIndex()
#12 src/addons/XFES/Elasticsearch/Api.php(152): XFES\Elasticsearch\Api->requestById('put', 'thread', 18487, Array)
#13 src/addons/XFES/Search/Source/Elasticsearch.php(66): XFES\Elasticsearch\Api->index('thread', 18487, Array)
#14 src/XF/Search/Search.php(40): XFES\Search\Source\Elasticsearch->index(Object(XF\Search\IndexRecord))
#15 src/XF/Behavior/Indexable.php(46): XF\Search\Search->index('post', Object(ThemeHouse\Bookmarks\XF\Entity\Post), false)
#16 src/XF.php(245): XF\Behavior\Indexable->XF\Behavior\{closure}()
#17 src/XF/Mvc/Dispatcher.php(137): XF::triggerRunOnce(true)
#18 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#19 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#20 src/XF.php(329): XF\App->run()
#21 index.php(13): XF::runApp('XF\\Pub\\App')
#22 {main}
Request state
array(4) {
["url"] => string(36) "/forums/xeon-support.157/post-thread"
["referrer"] => string(60) "https://www.joyfreak.com/forums/xeon-support.157/post-thread"
["_GET"] => array(0) {
}
["_POST"] => array(15) {
["title"] => string(28) "proplem in my char need help"
["message_html"] => string(533) "<p>hello Mr XEON today i buy angel spirit FB and used it but nothing happend i was wear my angel like u write on how to use i teleported but there is nothing and now i waste 1K xeon coin and this more than 15 days of quest and when i told EM my proplem they ignore me and this my bot log &nbsp;my char name is Fire_Element u r our GM and i need ur help Thanks</p><p><img src="/attachments/untitled-png.2686/?hash=2ec54ec6a865460a08b6c3c4e4651aeb" style="width: auto;" class="fr-fic fr-dii" data-attachment="full:2686" alt="2686"></p>"
["attachment_hash"] => string(32) "2ec54ec6a865460a08b6c3c4e4651aeb"
["attachment_hash_combined"] => string(83) "{"type":"post","context":{"node_id":157},"hash":"2ec54ec6a865460a08b6c3c4e4651aeb"}"
["tokens_select"] => string(6) "MrXeon"
["tags"] => string(6) "MrXeon"
["watch_thread"] => string(1) "1"
["watch_thread_email"] => string(1) "1"
["_xfSet"] => array(1) {
["watch_thread"] => string(1) "1"
}
["th_is_qa_qaforum"] => string(1) "1"
["poll"] => array(5) {
["question"] => string(0) ""
["new_responses"] => array(1) {
[0] => string(0) ""
}
["max_votes_type"] => string(6) "single"
["change_vote"] => string(1) "1"
["view_results_unvoted"] => string(1) "1"
}
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(36) "/forums/xeon-support.157/post-thread"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
 
This is really just a network connection-level issue. The connection to your Elasticsearch server was rejected. This could be because the service isn't running, it could be a firewall involved, or it could be something else. Unfortunately, this is not really something XenForo has any control over.
 
Top Bottom