cancel
Showing results for 
Search instead for 
Did you mean: 

Could not validate a connection to Elasticsearch. No alive nodes found in your cluster

Could not validate a connection to Elasticsearch. No alive nodes found in your cluster

envirament

    win10

    elasticsearch-7.12.1-windows-x86_64

    magento-ce-2.4.2-p1_sample_data-2021-04-23-01-13-20

     xampp-windows-x64-7.4.18-0-VC15-installer_3

    composer 2.0.13

questions: 

     when   installing elasticsearch configuaration in magento installing process," Could not validate a connection to Elasticsearch. No alive nodes found in your cluster" appears. i don't how to solve it.who know this, help.

  localhost:9200

{
  "name" : "DESKTOP-QC5U3TN",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "mT2bx0_CShe_xQ1JLeoZaA",
  "version" : {
    "number" : "7.12.1",
    "build_flavor" : "default",
    "build_type" : "zip",
    "build_hash" : "3186837139b9c6b6d23c3200870651f10d3343b7",
    "build_date" : "2021-04-20T20:56:39.040728659Z",
    "build_snapshot" : false,
    "lucene_version" : "8.8.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

    the elasticsearch install successfully,and work well 

   magento install command:

   

php bin/magento setup:install --base-url="http://localhost/magento/" --db-host="localhost" --db-name="cstg_en" --db-user="root" --db-password="dd123" --admin-firstname="admin" --admin-lastname="admin" --admin-email="user@example.com" --admin-user="admin" --admin-password="admin123" --language="en_US" --currency="USD" --timezone="America/Chicago" --use-rewrites="1" --backend-frontname="admin" --search-engine=elasticsearch7 --elasticsearch-host="localhost" --elasticsearch-port=9200