reindex command error (No alive nodes found in your cluster)
Domanda
hi whenever i run reindex command in my console it keeps giving me following error : pleaae give me suggestion how can i resolve it ,
Elasticsearch\Common\Exceptions\NoNodesAvailableException: No alive nodes found in your cluster in C:\xampp\htdocs\chase\vendor\elasticsearch\elasticsearch\src\Elasticsearch\ConnectionPool\StaticNoPingConnectionPool.php:51
Soluzione
If you are using Magento and getting 'No alive nodes found in your cluster' error while reindexing.
Make sure you have updated following :
- Your Host and port :
'[host]:[port]'
. Eg: 'es-node1.fqdn:9200, es-node2.fqdn:9200' or 'localhost:9200' inSystem -> Configuration -> Elastic Configuration
. - Update your indices alias name and indices name pattern in admin configuration same as above.
Try this, and clear cache and reindex. It will solve your issue.
Altri suggerimenti
If you are using Magento and getting 'No alive nodes found in your cluster' error while reindexing
Please make sure you have install Elastic Search into your system.
if you are using ubantu then please run following command
sudo apt-get install elasticsearch
Then Goto Admin -> Store -> configuration -> catalog -> catalog
then configure as follow
I have found the perfect solution for this issue.
Edit config/elasticsearch.yml
Please, change the network.host: 0.0.0.0
After changing the config pls restart the apps
Don't forget to uncomment network host
Enjoy!