Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
astronaute77 opened this issue Jan 16, 2025 · 1 comment

Comments

@astronaute77
Copy link

astronaute77 commented Jan 16, 2025

Description

I followed the steps in the readme to enable elasticsearch, but at the end I get this error:

In SearchConfig.php line 81:
                                                                               
  Could not validate a connection to Elasticsearch. No alive nodes found in y  
  our cluster

Exact steps followed:

Step 1:
curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash

Step 2:
Deleted opensearch and uncomment elasticsearch container lines:

  • in compose.yaml also uncommented the line - "xpack.security.enabled=false"
  • in compose.healthcheck.yaml phpfhmd depends_on set to elasticsearch

In bin/setup-install:

  --elasticsearch-host="$ES_HOST" \
  --elasticsearch-port="$ES_PORT" \
  --search-engine=elasticsearch8 \

Step 3:
bin/download community 2.4.7-p3

Step 4:
bin/setup magento.test

@astronaute77
Copy link
Author

http://localhost:9200/ returns this:

{
  "name" : "2f14f4b35e91",
  "cluster_name" : "docker-cluster",
  "cluster_uuid" : "YPIPTRO3QV6Og6vqdXilyA",
  "version" : {
    "number" : "8.13.0",
    "build_flavor" : "default",
    "build_type" : "docker",
    "build_hash" : "09df99393193b2c53d92899662a8b8b3c55b45cd",
    "build_date" : "2024-03-22T03:35:46.757803203Z",
    "build_snapshot" : false,
    "lucene_version" : "9.10.0",
    "minimum_wire_compatibility_version" : "7.17.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "You Know, for Search"
}

@astronaute77 astronaute77 changed the title Search engine 'elasticsearch' is not an available search engine Could not validate a connection to Elasticsearch. No alive nodes found in your cluster Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant