Hi everybody,
I am trying to user the elasticsearch connector (8.x-7.0-alpha3) on my Drupal 9 site.
The elastic server is correctly running on my MAC with Docker, but if I create a new cluster I obtain the error:
No alive nodes found in your cluster

$ curl http://localhost:9200
{
"name" : "a1e5249f7832",
"cluster_name" : "docker-cluster",
"cluster_uuid" : "ldYLGMXMRVG0yZyu_5vlXQ",
"version" : {
"number" : "7.12.1",
"build_flavor" : "default",
"build_type" : "docker",
"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"
}

Can somebody help me? What I am doing wrong?
Thanks,
Francesco

CommentFileSizeAuthor
elastic-2.png37.81 KBfra_ore_90
elastic-1.png55.65 KBfra_ore_90
docker-cluster.png57.18 KBfra_ore_90

Comments

fra_ore_90 created an issue. See original summary.

sokru’s picture

Status: Active » Postponed (maintainer needs more info)

The Server URL should be most likely "http://elasticsearch:9200", depending on your docker setup.

sokru’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I believe the author of the issue has figured out what was wrong on the Docker setup.

marcgr’s picture

I am having the same problem. Local docker elasticsearch (http://localhost:9200) returns results when hit from a browser/curl, but I get the no alive nodes warning in drupal 9.5 with the elasticsearch_connector module config. I tried http://elasticsearch:9200 but that didn't work.

Marc

dtech34’s picture

Can we have the solution on the configuration?
I too am using Docker and an Elasticsearch image for my Drupal 9.5.5 and I have the same error...Thanks

sanjay.maharjan’s picture

Having - http://elasticsearch as server url resolved the issue for me.

antonioluqueparlon’s picture

The comment #6 working for me!