# None of the configured nodes are available

**URL:** <https://discuss.elastic.co/t/none-of-the-configured-nodes-are-available/272935>\
**Category:** Elasticsearch\
**Created:** [May 13, 2021, 4:36pm UTC](https://discuss.elastic.co/t/none-of-the-configured-nodes-are-available/272935 "2021-05-13T16:36:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![111474](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111474/32/80928_2.png) [@111474](https://discuss.elastic.co/u/111474)\
**Post date:** [May 13, 2021, 4:36pm UTC](https://discuss.elastic.co/t/none-of-the-configured-nodes-are-available/272935/1 "2021-05-13T16:36:16Z")

</div>

I launch spring boot app that should connect with elasticsearch 5.6.1 on macos catalina with globally installed java 14 .

Elasticsearch 5.6.1 run as docker container via next command :

`docker run -d --rm --name elastic_5_6_1 -p 9200:9200 -p 9300:9300 -v /Users/user1/Desktop/mcat_elastic/es:/es -e "ES_PATH_CONF=/es/config" -e "discovery.type=single-node" -e "ELASTIC_PASSWORD=test1234" -e "cluster.name=my-cluster" -e "xpack.security.enabled=false" docker.elastic.co/elasticsearch/elasticsearch:5.6.1`

/Users/user1/Desktop/mcat\_elastic/es contains folder with name config which store elasticsearch.yml. elasticsearch.yml content is next :

> cluster.name: my-cluster

> http.port: 9200

> path: data: /es/data logs: /es/logs

After start up container in browser on port localhost:9200 I view next :

> { name: "AUaTApX", cluster\_name: "my-cluster", cluster\_uuid: "yaCjhne4Ry27Ua3Xo2fQVg", version: { number: "5.6.1", build\_hash: "667b497", build\_date: "2017-09-14T19:22:05.189Z", build\_snapshot: false, lucene\_version: "6.6.1" }, tagline: "You Know, for Search" }

Then I launch Spring Boot App with version of parent starter 2.2.7.RELEASE.application.yaml properties for connection with elastick container is next :

> elasticsearch.clustername=my-cluster

> elasticsearch.host=localhost
> 
> elasticsearch.port=9300

During execution I get error in console :

> org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{VBF0z8OiRYqBpuoNcqI5NQ}{localhost}{127.0.0.1:9300}]

I dont understand how to fix it.Please help.

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [May 13, 2021, 10:32pm UTC](https://discuss.elastic.co/t/none-of-the-configured-nodes-are-available/272935/2 "2021-05-13T22:32:19Z")

</div>

According to the Spring Boot [documentation](https://docs.spring.io/spring-boot/docs/2.2.7.RELEASE/reference/html/appendix-dependency-versions.html) version 2.2.7 is using Elasticsearch version 6.8.8. While this is not a recommended setup, this setup should theoretically work. I just tried it on my machine with a normal transport client and it was able to connect to the cluster. I think the problem is most likely with how the client is getting created in Spring Boot App. So I would need to take a look at the app itself to provide any help here.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 14, 2021, 1:39am UTC](https://discuss.elastic.co/t/none-of-the-configured-nodes-are-available/272935/3 "2021-05-14T01:39:01Z")

</div>

Adding to Igor's answer that, as it seems you are starting here a new project, you should use 7.12.1 which is the latest version we released.

5.x is no longer supported.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 11, 2021, 1:39am UTC](https://discuss.elastic.co/t/none-of-the-configured-nodes-are-available/272935/4 "2021-06-11T01:39:55Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
