Magento 2 Show this exception " Could not validate a connection to Elasticsearch. No alive nodes found in your cluster"

Samsul Hoque
5

 


Step-1:Check the Elastic Search Version on your machine.

        curl 'localhost:9200'
The output will be like this:
{
  "name" : "***********",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "******",
  "version" : {
    "number" : "7.10.2",      //  << ----- version
    "build_flavor" : "default",
    "build_type" : "deb",
    "build_hash" : "747e1cc71def077253878a59143c1f785afa92b9",
    "build_date" : "2021-01-13T00:42:12.435326Z",
    "build_snapshot" : false,
    "lucene_version" : "8.7.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

Step-2:For Elastic Search 6: execute the below command.
php bin/magento setup:install --search-engine=elasticsearch6 --elasticsearch-host="localhost" --elasticsearch-port=9200
for Elastic Search 7 (just update the version)
php bin/magento setup:install --search-engine=elasticsearch7 --elasticsearch-host="localhost" --elasticsearch-port=9200

Post a Comment

5Comments
  1. Thank you for sharing lot of information. Very informative post. Covered almost everything. Please Keep sharing such a useful content for us. please continue this work, also refer some informative blogs on Product Engineering Services for more contents about the product service based knowledge

    ReplyDelete
  2. Really helpfull and easiest way to understand the concepts. Thanks for sharing please continue this wonderfull Work. If you want to know Anything about mendix Dont hesitate to Visit Mendix Certified developers | Mendix License or Reach out me @ +18882075969

    ReplyDelete
  3. Thank you for sharing this valuable information.

    Apparrant is the leading UX UI Design agency having experienced designers and developers working throughout the year on important and life changing products. We have been awarded as top UI UX Design agency in India by multiple agencies. If you are looking for best UX Design Agency in Noida, UI UX Design Agency in Faridabad, and UX UI Design Company in Delhi then Apparrant is best for you.

    ReplyDelete
  4. Nice Information. I really liked it and admire you for posting it on the internet for the benefit of a larger Audience.

    If you are looking for best App design and development company in Noida, Delhi NCR, Gurgaon, Faridabad and India then Apparrant is Awesome. We have been known as leading Mobile and web application development company in Noida, India. Work of Apparrant can be checked on our website along with the processes we follow in to the web or App design and technologies we use at Apparrant.

    ReplyDelete
  5. Thanks for sharing such an astounding set of information with us. To begin freelancing as a career, it is important to get the right opportunity. I got this opportunity via Eiliana.com, which helped me become the Best coder in India. And, now I feel I am practically commencing to ace my skills and approach my dream.

    ReplyDelete
Post a Comment