XF 2.1 Elastic Search Error

OakleyForum

Well-known member
Seeing the below error out of nowhere - upgraded to 2.1.5a earlier this week but this appears to have started last night out of nowhere.

XFES\Elasticsearch\ConnectException: Elasticsearch indexing error (queued): cURL error 7: Failed to connect to 127.0.0.1 port 9200: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
  • src/addons/XFES/Elasticsearch/Api.php:390

  • 11/22/19 at 1:02 AM
Stack trace
#0 src/addons/XFES/Elasticsearch/Api.php(330): XFES\Elasticsearch\Api->request('put', 'elasticsearch/c...', '{
"title": ...')
#1 src/addons/XFES/Elasticsearch/Api.php(348): XFES\Elasticsearch\Api->requestFromIndex('put', 'conversation_me...', Array)
#2 src/addons/XFES/Elasticsearch/Api.php(152): XFES\Elasticsearch\Api->requestById('put', 'conversation_me...', 1529262, Array)
#3 src/addons/XFES/Search/Source/Elasticsearch.php(66): XFES\Elasticsearch\Api->index('conversation_me...', 1529262, Array)
#4 src/XF/Search/Search.php(40): XFES\Search\Source\Elasticsearch->index(Object(XF\Search\IndexRecord))
#5 src/XF/Behavior/Indexable.php(46): XF\Search\Search->index('conversation_me...', Object(SV\ConversationEssentials\XF\Entity\ConversationMessage), false)
#6 src/XF.php(291): XF\Behavior\Indexable->XF\Behavior\{closure}()
#7 [internal function]: XF::triggerRunOnce()
#8 {main}

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

Previous GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to 127.0.0.1 port 9200: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) - src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:185
#0 src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(149): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(102): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 src/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#3 src/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#4 src/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#5 src/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(66): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#6 src/vendor/guzzlehttp/guzzle/src/Middleware.php(30): GuzzleHttp\PrepareBodyMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#7 src/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(70): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#8 src/vendor/guzzlehttp/guzzle/src/Middleware.php(58): GuzzleHttp\RedirectMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#9 src/vendor/guzzlehttp/guzzle/src/HandlerStack.php(67): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#10 src/vendor/guzzlehttp/guzzle/src/Client.php(277): GuzzleHttp\HandlerStack->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#11 src/vendor/guzzlehttp/guzzle/src/Client.php(98): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
#12 src/vendor/guzzlehttp/guzzle/src/Client.php(106): GuzzleHttp\Client->sendAsync(Object(GuzzleHttp\Psr7\Request), Array)
#13 src/addons/XFES/Elasticsearch/Api.php(373): GuzzleHttp\Client->send(Object(GuzzleHttp\Psr7\Request))
#14 src/addons/XFES/Elasticsearch/Api.php(330): XFES\Elasticsearch\Api->request('put', 'elasticsearch/c...', '{
"title": ...')
#15 src/addons/XFES/Elasticsearch/Api.php(348): XFES\Elasticsearch\Api->requestFromIndex('put', 'conversation_me...', Array)
#16 src/addons/XFES/Elasticsearch/Api.php(152): XFES\Elasticsearch\Api->requestById('put', 'conversation_me...', 1529262, Array)
#17 src/addons/XFES/Search/Source/Elasticsearch.php(66): XFES\Elasticsearch\Api->index('conversation_me...', 1529262, Array)
#18 src/XF/Search/Search.php(40): XFES\Search\Source\Elasticsearch->index(Object(XF\Search\IndexRecord))
#19 src/XF/Behavior/Indexable.php(46): XF\Search\Search->index('conversation_me...', Object(SV\ConversationEssentials\XF\Entity\ConversationMessage), false)
#20 src/XF.php(291): XF\Behavior\Indexable->XF\Behavior\{closure}()
#21 [internal function]: XF::triggerRunOnce()
#22 {main}
Request state
array(4) {
["url"] => string(36) "/index.php?method=reply_conversation"
["referrer"] => bool(false)
["_GET"] => array(1) {
["method"] => string(18) "reply_conversation"
}
["_POST"] => array(1) {
["TapatalkParamsLog"] => array(4) {
[0] => string(6) "310475"
[1] => string(14) "F&F? Sure, go!"
[2] => string(0) ""
["useragent"] => string(39) "Mozilla/5.0 Firefox/3.5.6 Tapatalk/2434"
}
}
}
 
Hi @Brogan,

The next time it happens I'll report the error message and stack trace here. Since elasticsearch runs on Java and separately from XenForo, it is extremely likely NOT a XenForo-related issue, in my opinion. It may be a memory leak or other Java-related problem.

What I see happen is that as with above, the connection to the elasticsearch server is being rejected at the server level. This has happened three times since the March/April time frame when I installed everything.
 
Back
Top Bottom