# Kibana Unable to revive connection. No living connections

**URL:** https://discuss.elastic.co/t/kibana-unable-to-revive-connection-no-living-connections/165745
**Category:** Kibana
**Created:** [January 25, 2019, 10:10am UTC](https://discuss.elastic.co/t/kibana-unable-to-revive-connection-no-living-connections/165745 "2019-01-25T10:10:24Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Sajawal\_Sohail](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@Sajawal\_Sohail](https://discuss.elastic.co/u/Sajawal_Sohail)
#### Post date: [January 25, 2019, 10:10am UTC](https://discuss.elastic.co/t/kibana-unable-to-revive-connection-no-living-connections/165745/1 "2019-01-25T10:10:25Z")

</div>

Im trying to host Kibana and Elasticearch on my docker. So far I have Elasticsearch up and running but the Kibana shows me "Kibana server is not ready yet" error on my browser and following log on my console

```
kibana_1 | {"type":"log","@timestamp":"2019-01-25T10:04:11Z","tags":["warning","elasticsearch","admin"],"pid":1,"message":"Unable to revive connection: http://localhost:9200/"}
kibana_1 | {"type":"log","@timestamp":"2019-01-25T10:04:11Z","tags":["warning","elasticsearch","admin"],"pid":1,"message":"No living connections"}
kibana_1 | {"type":"log","@timestamp":"2019-01-25T10:04:13Z","tags":["warning","elasticsearch","admin"],"pid":1,"message":"Unable to revive connection: http://localhost:9200/"}
kibana_1 | {"type":"log","@timestamp":"2019-01-25T10:04:13Z","tags":["warning","elasticsearch","admin"],"pid":1,"message":"No living connections"}

```

Here is my Docker code

```
version: '3.1'
services:
  elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.4
container_name: elasticsearch
environment:
- cluster.name=docker-cluster
ports:
- 9200:9200
- 9300:9300
  kibana:
image: docker.elastic.co/kibana/kibana:6.5.4
environment:
  SERVER_HOST: 0.0.0.0
  ELASTICSEARCH_URL: http://localhost:9300
ports:
- "9201:5601"

```

Here is my elasticsearch log

```
{
"_nodes": {
    "total": 1,
    "successful": 1,
    "failed": 0
},
"cluster_name": "docker-cluster",
"nodes": {
    "6o2s9Q-oRvCXxDjWCqFKlA": {
        "name": "6o2s9Q-",
        "transport_address": "172.23.0.5:9300",
        "host": "172.23.0.5",
        "ip": "172.23.0.5",
        "version": "6.5.4",
        "build_flavor": "default",
        "build_type": "tar",
        "build_hash": "d2ef93d",
        "roles": [
            "master",
            "data",
            "ingest"
        ],
        "attributes": {
            "ml.machine_memory": "2076532736",
            "xpack.installed": "true",
            "ml.max_open_jobs": "20",
            "ml.enabled": "true"
        },
        "http": {
            "bound_address": [
                "0.0.0.0:9200"
            ],
            "publish_address": "172.23.0.5:9200",
            "max_content_length_in_bytes": 104857600
        }
    }
}

```

}

I can assure that elastic search is running fine and im already connecting at localhost:9300 and creating indices and putting templates on it. So it's working fine but kibana just doest connects.

Any Help will be appreciated.  
Thanks

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [January 25, 2019, 5:56pm UTC](https://discuss.elastic.co/t/kibana-unable-to-revive-connection-no-living-connections/165745/2 "2019-01-25T17:56:02Z")

</div>

@jarpy - any help here ?

Thanks  
Rashmi

---

<div class="post-metadata">

### Author: ![jarpy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jarpy/32/51290_2.png) [@jarpy](https://discuss.elastic.co/u/jarpy)
#### Post date: [January 28, 2019, 10:56pm UTC](https://discuss.elastic.co/t/kibana-unable-to-revive-connection-no-living-connections/165745/3 "2019-01-28T22:56:01Z")

</div>

> [@Sajawal\_Sohail](#):
>
> ELASTICSEARCH\_URL: [http://localhost:9300](http://localhost:9300)

Kibana is pointing at `localhost` but since this is a container environment, `localhost` in this context is the Kibana container, not the Docker host.

I recommend declaring a network for the containers and having them refer to each other by name, like:

```auto
ELASTICSEARCH_URL: http://elasticsearch:9300

```

Also, please check the indentation of you `docker-compose.yml`, I think it was pasted incorrectly and all the indentation is messed up. Since YAML is whitespace sensitive, I can't be sure exactly what your `docker-compose.yml` contains.

---

<div class="post-metadata">

### Author: ![Sajawal\_Sohail](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@Sajawal\_Sohail](https://discuss.elastic.co/u/Sajawal_Sohail)
#### Post date: [January 29, 2019, 5:49am UTC](https://discuss.elastic.co/t/kibana-unable-to-revive-connection-no-living-connections/165745/4 "2019-01-29T05:49:25Z")

</div>

@jarpy Thanks for the reply.  
I replaced the localhost with elasticsearch but still no luck.  
And the indentation is correct on my side, it just got messed up while pasting. Sorry for that. Here is my updated yml

```
 version: '3.1'
services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:6.5.4
    container_name: elasticsearch
    environment:
    - cluster.name=docker-cluster
    ports:
    - 9200:9200
    - 9300:9300
  kibana:
    image: docker.elastic.co/kibana/kibana:6.5.4
    environment:
      SERVER_HOST: 0.0.0.0
      ELASTICSEARCH_URL: http://elasticsearch:9300
    ports:
    - "9201:5601"
```

---

<div class="post-metadata">

### Author: ![jarpy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jarpy/32/51290_2.png) [@jarpy](https://discuss.elastic.co/u/jarpy)
#### Post date: [January 29, 2019, 10:10pm UTC](https://discuss.elastic.co/t/kibana-unable-to-revive-connection-no-living-connections/165745/5 "2019-01-29T22:10:45Z")

</div>

Thanks. That's much nicer!

You also need to declare a network for the containers to talk on, like in [this example](https://docs.docker.com/get-started/part3/#your-first-docker-composeyml-file).

---

<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: [February 26, 2019, 10:10pm UTC](https://discuss.elastic.co/t/kibana-unable-to-revive-connection-no-living-connections/165745/6 "2019-02-26T22:10:47Z")

</div>

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