Hello, my magento2.4.1 store has been working perfectly with elasticsearch but this morning out of nowhere i got below error report:
{“0”:“No alive nodes found in your cluster”,“1”:“#1 Elasticsearch\Transport->getConnection() called at [vendor/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php:94]\n#2 Elasticsearch\Transport->performRequest() called at [vendor/elasticsearch/elasticsearch/src/Elasticsearch/Client.php:1559]\n#3 Elasticsearch\Client->performRequest() called at [vendor/elasticsearch/elasticsearch/src/Elasticsearch/Client.php:1192]\n#4 Elasticsearch\Client->search() called at [vendor/magento/module-elasticsearch-7/Model/Client/Elasticsearch.php:367]\n#5 Magento\Elasticsearch7\Model\Client\Elasticsearch->query() called at [vendor/magento/module-elasticsearch/SearchAdapter/Dynamic/DataProvider.php:221]\n#6 Magento\Elasticsearch\SearchAdapter\Dynamic\DataProvider->getAggregation() called at [vendor/magento/framework/Search/Dynamic/Algorithm/Manual.php:48]\n#7 Magento\Framework\Search\Dynamic\Algorithm\Manual->getItems() called at [vendor/magento/module-elasticsearch/SearchAdapter/Aggregation/Builder/Dynamic.php:48]\n#8 Magento\Elasticsearch\SearchAdapter\Aggregation\Builder\Dynamic->build() called at [vendor/magento/module-elasticsearch/SearchAdapter/Aggregation/Builder.php:89]\n#9 Magento\Elasticsearch\SearchAdapter\Aggregation\Builder->build() called at [vendor/magento/module-elasticsearch-7/SearchAdapter/Adapter.php:128]\n#10 Magento\Elasticsearch7\SearchAdapter\Adapter->query() called at [vendor/magento/module-search/Model/SearchEngine.php:42]\n#11 Magento\Search\Model\SearchEngine->search() called at [vendor/magento/framework/Search/Search.php:85]\n#12 Magento\Framework\Search\Search->search() called at [vendor/magento/module-catalog-search/Model/ResourceModel/Fulltext/Collection.php:465]\n#13 Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection->_renderFiltersBefore() called at [vendor/magento/framework/Data/Collection/AbstractDb.php:343]\n#14 Magento\Framework\Data\Collection\AbstractDb->_renderFilters() called at [vendor/magento/module-catalog-search/Model/ResourceModel/Fulltext/Collection.php:583]\n#15 Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection->_renderFilters() called at [vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php:923]\n#16 Magento\Eav\Model\Entity\Collection\AbstractCollection->load() called at [vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php:832]\n#17 Magento\Catalog\Model\ResourceModel\Product\Collection->load() called at [vendor/magento/framework/Interception/Interceptor.php:58]\n#18 Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]\n#19 Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]\n#20 Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection\Interceptor->___callPlugins() called at [generated/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection/Interceptor.php:257]\n#21 Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection\Interceptor->load() called at [vendor/magento/framework/Data/Collection.php:839]\n#22 Magento\Framework\Data\Collection->getIterator() called at [generated/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection/Interceptor.php:1292]\n#23 Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection\Interceptor->getIterator() called at [vendor/magento/module-catalog/Block/Product/ListProduct.php:366]\n#24 Magento\Catalog\Block\Product\ListProduct->getIdentities() called at [generated/code/Magento/Catalog/Block/Product/ListProduct/Interceptor.php:113]\n#25 Magento\Catalog\Block\Product\ListProduct\Interceptor->getIdentities() called at [vendor/magento/module-page-cache/Model/Layout/LayoutPlugin.php:96]\n#26 Magento\PageCache\Model\Layout\LayoutPlugin->afterGetOutput() called at [vendor/magento/framework/Interception/Interceptor.php:146]\n#27 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]\n#28 Magento\Framework\View\Layout\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:347]\n#29 Magento\Framework\View\Layout\Interceptor->getOutput() called at [vendor/magento/framework/View/Result/Page.php:258]\n#30 Magento\Framework\View\Result\Page->render() called at [vendor/magento/framework/View/Result/Layout.php:171]\n#31 Magento\Framework\View\Result\Layout->renderResult() called at [vendor/magento/framework/Interception/Interceptor.php:58]\n#32 Magento\Framework\View\Result\Page\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]\n#33 Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]\n#34 Magento\Framework\View\Result\Page\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Result/Page/Interceptor.php:95]\n#35 Magento\Framework\View\Result\Page\Interceptor->renderResult() called at [vendor/magento/framework/App/Http.php:120]\n#36 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:23]\n#37 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:263]\n#38 Magento\Framework\App\Bootstrap->run() called at [index.php:39]\n”,“url”:“/nl/”,“script_name”:“/index.php”,“report_id”:“ce82cf2a55b29d21f770487037d8d0ed6de2a11a29ff328a5a8a927785e7f3f7”}
As I read in another answer on here, I ran
sudo journalctl -u elasticsearch.service -b -e
and got this:
elasticsearch.service: Main process exited, code=killed, status=9/KILL
elasticsearch.service: Failed with result ‘signal’.
I installed htop and got this:
I have a server with 8GB memory
Now I’m stuck… Thank you for having a look
UPDATE: I ran
sudo systemctl start elasticsearch
and then reindexed and flushed cache and then the problem was resolved. But the swap memory is still maxed out and I’m afraid the root problem is not resolved and it will reoccur…