Elasticsearch error: cURL error 28: Operation timed out after 20001 milliseconds with 0 bytes received

Nirjonadda

Well-known member
I am getting lot of error log about Elasticsearch error: cURL error 28: Operation timed out after 20001 milliseconds with 0 bytes received

Code:
Server error log

XFES\Elasticsearch\ConnectException: Elasticsearch error: cURL error 28: Operation timed out after 20001 milliseconds with 0 bytes received src/addons/XFES/Elasticsearch/Api.php:368

Generated by: Unknown account Dec 1, 2017 at 6:25 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/Pub/Controller/Member.php(527): XF\Search\Search->search(Object(XF\Search\Query\Query))
#5 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Member->actionRecentContent(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Member', 'RecentContent', 'html', Object(XF\Mvc\ParameterBag), 'members', Object(XF\Pub\Controller\Member), NULL)
#7 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#8 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()
#9 src/XF.php(328): XF\App->run()
#10 index.php(13): XF::runApp('XF\\Pub\\App')
#11 {main}

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

Previous GuzzleHttp\Exception\ConnectException: cURL error 28: Operation timed out after 20001 milliseconds with 0 bytes received - src/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:49
#0 src/vendor/guzzlehttp/guzzle/src/RequestFsm.php(103): 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(134): 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(312): XFES\Elasticsearch\Api->request('get', 'nadda_forumdata...', '{\n    "sort": [...')
#9 src/addons/XFES/Elasticsearch/Api.php(216): XFES\Elasticsearch\Api->requestFromIndex('get', '_search', Array)
#10 src/addons/XFES/Search/Source/Elasticsearch.php(149): XFES\Elasticsearch\Api->search(Array)
#11 src/XF/Search/Search.php(164): XFES\Search\Source\Elasticsearch->search(Object(XF\Search\Query\Query), '200')
#12 src/XF/Pub/Controller/Member.php(527): XF\Search\Search->search(Object(XF\Search\Query\Query))
#13 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Member->actionRecentContent(Object(XF\Mvc\ParameterBag))
#14 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Member', 'RecentContent', 'html', Object(XF\Mvc\ParameterBag), 'members', Object(XF\Pub\Controller\Member), NULL)
#15 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#16 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()
#17 src/XF.php(328): XF\App->run()
#18 index.php(13): XF::runApp('XF\\Pub\\App')
#19 {main}

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

Previous GuzzleHttp\Ring\Exception\ConnectException: cURL error 28: Operation timed out after 20001 milliseconds with 0 bytes received - 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 #194)
#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(312): XFES\Elasticsearch\Api->request('get', 'nadda_forumdata...', '{\n    "sort": [...')
#9 src/addons/XFES/Elasticsearch/Api.php(216): XFES\Elasticsearch\Api->requestFromIndex('get', '_search', Array)
#10 src/addons/XFES/Search/Source/Elasticsearch.php(149): XFES\Elasticsearch\Api->search(Array)
#11 src/XF/Search/Search.php(164): XFES\Search\Source\Elasticsearch->search(Object(XF\Search\Query\Query), '200')
#12 src/XF/Pub/Controller/Member.php(527): XF\Search\Search->search(Object(XF\Search\Query\Query))
#13 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Member->actionRecentContent(Object(XF\Mvc\ParameterBag))
#14 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Member', 'RecentContent', 'html', Object(XF\Mvc\ParameterBag), 'members', Object(XF\Pub\Controller\Member), NULL)
#15 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#16 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()
#17 src/XF.php(328): XF\App->run()
#18 index.php(13): XF::runApp('XF\\Pub\\App')
#19 {main}

Request state

array(4) {
  ["url"] => string(38) "/members/awmunshi.13248/recent-content"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
This is telling you that Elasticsearch didn't respond in 20 seconds. That would generally indicate that your server is having performance issues.
 
What does your ES status say? admin -->> setup -->> Enhanced search - indexes
it's doesn't say because I am trying to rebuild the search indexes

What is the reply? SSH terminal -->> systemctl status elasticsearch
here a screenshot
Screenshot 2024-05-30 at 6.50.24 PM.webp


What is the reply? SSH terminal -->> curl -XGET 'localhost:9200'
here a screenshot
Screenshot 2024-05-30 at 6.51.35 PM.webp
here the error code

Code:
XFES\Elasticsearch\ConnectException: cURL error 28: Operation timed out after 20001 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://citiesmods:%40Kcin4797Kcin4797@localhost:9200/citiesmods_mods src/addons/XFES/Elasticsearch/Api.php:445
Generated by: NICK97 May 30, 2024 at 7:01 PM
Stack trace
#0 src/addons/XFES/Elasticsearch/Api.php(361): XFES\Elasticsearch\Api->request('put', 'citiesmods_mods', '{
    "mappings...')
#1 src/addons/XFES/Service/Optimizer.php(74): XFES\Elasticsearch\Api->createIndex(Array)
#2 src/addons/XFES/Search/Source/Elasticsearch.php(138): XFES\Service\Optimizer->optimize(Array, true)
#3 src/XF/Search/Search.php(170): XFES\Search\Source\Elasticsearch->truncate('')
#4 src/XF/Job/SearchRebuild.php(27): XF\Search\Search->truncate('')
#5 src/XF/Job/Manager.php(272): XF\Job\SearchRebuild->run(8)
#6 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#7 src/XF/Job/Manager.php(118): XF\Job\Manager->runJobEntry(Array, 8)
#8 src/XF/Admin/Controller/Tools.php(124): XF\Job\Manager->runByIds(Array, 8)
#9 src/XF/Mvc/Dispatcher.php(352): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(258): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(X0815\ChkTables\XF\Admin\Controller\Tools), NULL)
#11 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(X0815\ChkTables\XF\Admin\Controller\Tools), NULL)
#12 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2607): XF\Mvc\Dispatcher->run()
#14 src/XF.php(533): XF\App->run()
#15 admin.php(13): XF::runApp('XF\\Admin\\App')
#16 {main}

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

Previous GuzzleHttp\Exception\ConnectException: cURL error 28: Operation timed out after 20001 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://citiesmods:%40Kcin4797Kcin4797@localhost:9200/citiesmods_mods - src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:210
#0 src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(158): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(110): 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(47): 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(48): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#5 src/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(64): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#6 src/vendor/guzzlehttp/guzzle/src/Middleware.php(31): GuzzleHttp\PrepareBodyMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#7 src/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(71): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#8 src/vendor/guzzlehttp/guzzle/src/Middleware.php(63): GuzzleHttp\RedirectMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#9 src/vendor/guzzlehttp/guzzle/src/HandlerStack.php(75): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#10 src/vendor/guzzlehttp/guzzle/src/Client.php(333): GuzzleHttp\HandlerStack->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#11 src/vendor/guzzlehttp/guzzle/src/Client.php(106): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
#12 src/vendor/guzzlehttp/guzzle/src/Client.php(124): GuzzleHttp\Client->sendAsync(Object(GuzzleHttp\Psr7\Request), Array)
#13 src/addons/XFES/Elasticsearch/Api.php(428): GuzzleHttp\Client->send(Object(GuzzleHttp\Psr7\Request))
#14 src/addons/XFES/Elasticsearch/Api.php(361): XFES\Elasticsearch\Api->request('put', 'citiesmods_mods', '{
    "mappings...')
#15 src/addons/XFES/Service/Optimizer.php(74): XFES\Elasticsearch\Api->createIndex(Array)
#16 src/addons/XFES/Search/Source/Elasticsearch.php(138): XFES\Service\Optimizer->optimize(Array, true)
#17 src/XF/Search/Search.php(170): XFES\Search\Source\Elasticsearch->truncate('')
#18 src/XF/Job/SearchRebuild.php(27): XF\Search\Search->truncate('')
#19 src/XF/Job/Manager.php(272): XF\Job\SearchRebuild->run(8)
#20 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#21 src/XF/Job/Manager.php(118): XF\Job\Manager->runJobEntry(Array, 8)
#22 src/XF/Admin/Controller/Tools.php(124): XF\Job\Manager->runByIds(Array, 8)
#23 src/XF/Mvc/Dispatcher.php(352): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
#24 src/XF/Mvc/Dispatcher.php(258): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(X0815\ChkTables\XF\Admin\Controller\Tools), NULL)
#25 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(X0815\ChkTables\XF\Admin\Controller\Tools), NULL)
#26 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#27 src/XF/App.php(2607): XF\Mvc\Dispatcher->run()
#28 src/XF.php(533): XF\App->run()
#29 admin.php(13): XF::runApp('XF\\Admin\\App')
#30 {main}
Request state
array(4) {
  ["url"] => string(24) "/admin.php?tools/run-job"
  ["referrer"] => string(119) "https://cities-mods.com/admin.php?tools/run-job&only_id=271636&_xfRedirect=%2Fadmin.php%3Ftools%2Frebuild%26success%3D1"
  ["_GET"] => array(1) {
    ["tools/run-job"] => string(0) ""
  }
  ["_POST"] => array(3) {
    ["_xfRedirect"] => string(57) "https://cities-mods.com/admin.php?tools/rebuild&success=1"
    ["_xfToken"] => string(8) "********"
    ["only_ids"] => string(6) "271636"
  }
}

Screenshot 2024-05-30 at 7.04.04 PM.webp
 
Last edited:
Back
Top Bottom