# Failed to load elasticsearch nodes

**URL:** <https://discuss.elastic.co/t/failed-to-load-elasticsearch-nodes/220107>\
**Category:** Elasticsearch\
**Created:** [February 20, 2020, 7:05am UTC](https://discuss.elastic.co/t/failed-to-load-elasticsearch-nodes/220107 "2020-02-20T07:05:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shivsandeep](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@shivsandeep](https://discuss.elastic.co/u/shivsandeep)\
**Post date:** [February 20, 2020, 7:05am UTC](https://discuss.elastic.co/t/failed-to-load-elasticsearch-nodes/220107/1 "2020-02-20T07:05:57Z")

</div>

hi,  
i have setup elasticsearch 5.6.3 using docker but when i am trying to access that using my local spring application i am getting below error:

> " failed to load elasticsearch nodes : org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{AgKeBNJlTWWIftiNKbT3GA}{127.0.0.1}{127.0.0.1:9300}]"

can anyone pls help me with this error

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [February 20, 2020, 7:53am UTC](https://discuss.elastic.co/t/failed-to-load-elasticsearch-nodes/220107/2 "2020-02-20T07:53:37Z")

</div>

only doing a wild guess here based on the sparse information without providing any configuration details (please add those for further debugging): If you are using docker, probably your elasticsearch cluster is not available at 127.0.0.1 from your application?

---

<div class="post-metadata">

**Author:** ![shivsandeep](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@shivsandeep](https://discuss.elastic.co/u/shivsandeep)\
**Post date:** [February 20, 2020, 9:37am UTC](https://discuss.elastic.co/t/failed-to-load-elasticsearch-nodes/220107/3 "2020-02-20T09:37:58Z")

</div>

Docker-compose yaml:

> version: '2.2'
> 
> services:
> 
> elasticsearch:  
> image: [docker.elastic.co/elasticsearch/elasticsearch:5.6.3](http://docker.elastic.co/elasticsearch/elasticsearch:5.6.3)  
> build:  
> context: .  
> dockerfile: ./Dockerfile  
> container\_name: elasticsearch  
> environment:  
> - bootstrap.memory\_lock=true  
> - "ES\_JAVA\_OPTS=-Xms512m -Xmx512m"  
> ulimits:  
> memlock:  
> soft: -1  
> hard: -1  
> volumes:  
> - esdata1:/usr/share/elasticsearch/data  
> ports:  
> - 9200:9200
> 
> kibana:  
> image: [docker.elastic.co/kibana/kibana:5.6.3](http://docker.elastic.co/kibana/kibana:5.6.3)  
> container\_name: kibana  
> environment:  
> ELASTICSEARCH\_URL: "[http://elasticsearch:9200](http://elasticsearch:9200)"  
> ports:  
> - 5601:5601  
> depends\_on:  
> - elasticsearch
> 
> volumes:  
> esdata1:  
> driver: local

spring application.properties:

> spring.data.elasticsearch.cluster-name=docker-cluster  
> spring.data.elasticsearch.cluster-nodes=localhost:9300  
> server.port=3333

---

<div class="post-metadata">

**Author:** ![shivsandeep](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@shivsandeep](https://discuss.elastic.co/u/shivsandeep)\
**Post date:** [February 20, 2020, 9:42am UTC](https://discuss.elastic.co/t/failed-to-load-elasticsearch-nodes/220107/4 "2020-02-20T09:42:45Z")

</div>

any other configuration file needed

---

<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:** [March 19, 2020, 9:42am UTC](https://discuss.elastic.co/t/failed-to-load-elasticsearch-nodes/220107/5 "2020-03-19T09:42:51Z")

</div>

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