# Kibana connection failed

**URL:** <https://discuss.elastic.co/t/kibana-connection-failed/234419>\
**Category:** Kibana\
**Created:** [May 26, 2020, 9:07pm UTC](https://discuss.elastic.co/t/kibana-connection-failed/234419 "2020-05-26T21:07:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![murgocimark](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@murgocimark](https://discuss.elastic.co/u/murgocimark)\
**Post date:** [May 26, 2020, 9:07pm UTC](https://discuss.elastic.co/t/kibana-connection-failed/234419/1 "2020-05-26T21:07:31Z")

</div>

Hi.  
I'm using docker with a 3 nodes cluster with ES. I try to add kibana in docker.yml, but I cannot make it run.

**cluster state:**  
{  
"name" : "elasticsearch-1",  
"cluster\_name" : "docker-cluster",  
"cluster\_uuid" : "kb1NHdbrRteGe0H5YPX2OA",  
"version" : {  
"number" : "7.7.0",  
"build\_flavor" : "default",  
"build\_type" : "docker",  
"build\_hash" : "81a1e9eda8e6183f5237786246f6dced26a10eaf",  
"build\_date" : "2020-05-12T02:01:37.602180Z",  
"build\_snapshot" : false,  
"lucene\_version" : "8.5.1",  
"minimum\_wire\_compatibility\_version" : "6.8.0",  
"minimum\_index\_compatibility\_version" : "6.0.0-beta1"  
},  
"tagline" : "You Know, for Search"  
}

**docker-compose.yml**  
elasticsearch-1:  
image: elasticsearch:7.7.0  
container\_name: elasticsearch-1  
environment:  
- node.name=elasticsearch-1  
- cluster.initial\_master\_nodes=elasticsearch-1,elasticsearch-2,elasticsearch-3  
- discovery.seed\_hosts=elasticsearch-2:9300,elasticsearch-3:9300  
- cluster.name=docker-cluster  
- bootstrap.memory\_lock=true  
- "ES\_JAVA\_OPTS=-Xms512m -Xmx512m"  
ulimits:  
memlock:  
soft: -1  
hard: -1  
volumes:  
- esdata1:/usr/share/elasticsearch/data1  
ports:  
- 9200:9200  
networks:  
- esnet  
kibana:  
image: kibana:7.7.0  
container\_name: kibana  
environment:  
SERVER\_NAME: kibana  
ELASTICSEARCH\_URL: [http://elasticsearch-1:9200](http://elasticsearch-1:9200)  
ports:  
- '5601:5601'  
networks:  
- esnet  
................................

**kibana log**  
`{"type":"log","@timestamp":"2020-05-26T20:42:26Z","tags":["error","elasticsearch","data"],"pid":6,"message":"Request error, retrying\nHEAD http://elasticsearch:9200/.apm-custom-link => getaddrinfo ENOTFOUND elasticsearch elasticsearch:9200"}`

`{"type":"log","@timestamp":"2020-05-26T20:42:26Z","tags":["error","elasticsearch","data"],"pid":6,"message":"Request error, retrying\nHEAD http://elasticsearch:9200/.apm-agent-configuration => getaddrinfo ENOTFOUND elasticsearch elasticsearch:9200"}`

`{"type":"log","@timestamp":"2020-05-26T20:42:27Z","tags":["error","elasticsearch","monitoring"],"pid":6,"message":"Request error, retrying\nGET http://elasticsearch:9200/_xpack => getaddrinfo ENOTFOUND elasticsearch elasticsearch:9200"}`

`{"type":"log","@timestamp":"2020-05-26T20:42:28Z","tags":["warning","elasticsearch","data"],"pid":6,"message":"Unable to revive connection: http://elasticsearch:9200/"}`

`{"type":"log","@timestamp":"2020-05-26T20:42:28Z","tags":["warning","elasticsearch","data"],"pid":6,"message":"No living connections"}`

`{"type":"log","@timestamp":"2020-05-26T20:42:28Z","tags":["error","elasticsearch","data"],"pid":6,"message":"Request error, retrying\nGET http://elasticsearch:9200/_xpack => getaddrinfo ENOTFOUND elasticsearch elasticsearch:9200"}`

`{"type":"log","@timestamp":"2020-05-26T20:42:29Z","tags":["warning","elasticsearch","data"],"pid":6,"message":"Unable to revive connection: http://elasticsearch:9200/"}`

`{"type":"log","@timestamp":"2020-05-26T20:42:29Z","tags":["warning","elasticsearch","data"],"pid":6,"message":"No living connections"}`

Thanks in advance !

---

<div class="post-metadata">

**Author:** ![murgocimark](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@murgocimark](https://discuss.elastic.co/u/murgocimark)\
**Post date:** [May 28, 2020, 7:53am UTC](https://discuss.elastic.co/t/kibana-connection-failed/234419/2 "2020-05-28T07:53:42Z")

</div>

> [@murgocimark](#):
>
> ELASTICSEARCH\_URL

should be replaced by ELASTICSEARCH\_HOSTS

---

<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 25, 2020, 7:53am UTC](https://discuss.elastic.co/t/kibana-connection-failed/234419/3 "2020-06-25T07:53:51Z")

</div>

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