Magento2 Reindex – Reindex Command Error (No Alive Nodes Found in Your Cluster)

magento2reindex

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

enter image description here

Best Answer

If you are using Magento and getting 'No alive nodes found in your cluster' error while reindexing.

Make sure you have updated following :

  1. Your Host and port : '[host]:[port]'. Eg: 'es-node1.fqdn:9200, es-node2.fqdn:9200' or 'localhost:9200' in System -> Configuration -> Elastic Configuration.
  2. 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.

enter image description here