# Cannot connect to the Elasticsearch cluster currently configured for Kibana

**URL:** https://discuss.elastic.co/t/cannot-connect-to-the-elasticsearch-cluster-currently-configured-for-kibana/148860
**Category:** Kibana
**Created:** [September 17, 2018, 4:06pm UTC](https://discuss.elastic.co/t/cannot-connect-to-the-elasticsearch-cluster-currently-configured-for-kibana/148860 "2018-09-17T16:06:04Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![jprat](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@jprat](https://discuss.elastic.co/u/jprat)
#### Post date: [September 17, 2018, 4:06pm UTC](https://discuss.elastic.co/t/cannot-connect-to-the-elasticsearch-cluster-currently-configured-for-kibana/148860/1 "2018-09-17T16:06:04Z")

</div>

I am not able to connect Kibana with elasticsearch. Here is my elasticsearch file config:

```
cluster.name: laboratori
node.name: node-1
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch

```

and my kibana.yml has nothing (everything is commented).

If I try a curl to the elastisearch url, it responds:  
{  
"name" : "node-1",  
"cluster\_name" : "laboratori",  
"cluster\_uuid" : "fNCQ7ByMRfaDLqe0wyQv6g",  
"version" : {  
"number" : "6.4.0",  
"build\_flavor" : "default",  
"build\_type" : "rpm",  
"build\_hash" : "595516e",  
"build\_date" : "2018-08-17T23:18:47.308994Z",  
"build\_snapshot" : false,  
"lucene\_version" : "7.4.0",  
"minimum\_wire\_compatibility\_version" : "5.6.0",  
"minimum\_index\_compatibility\_version" : "5.0.0"  
},  
"tagline" : "You Know, for Search"  
}

but the Kibana says "Cannot connect to the Elasticsearch cluster currently configured for Kibana."

And if I check the kibana.stdout I see the message:

```
{"type":"log","@timestamp":"2018-09-17T18:17:05Z","tags":["warning","elasticsearch","admin"],"pid":3768,"message":"Unable to revive connection: http://localhost:9200/"}
{"type":"log","@timestamp":"2018-09-17T18:17:05Z","tags":["warning","elasticsearch","admin"],"pid":3768,"message":"No living connections"}

```

Could someone help me?

Regards,  
Joan

---

<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: [September 18, 2018, 4:37pm UTC](https://discuss.elastic.co/t/cannot-connect-to-the-elasticsearch-cluster-currently-configured-for-kibana/148860/3 "2018-09-18T16:37:23Z")

</div>

I see this post was withdrawn...if still an issue..plz report back..

Thanks  
Rashmi

---

<div class="post-metadata">

### Author: ![jprat](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@jprat](https://discuss.elastic.co/u/jprat)
#### Post date: [September 20, 2018, 8:49am UTC](https://discuss.elastic.co/t/cannot-connect-to-the-elasticsearch-cluster-currently-configured-for-kibana/148860/4 "2018-09-20T08:49:27Z")

</div>

withdrawn? Why? It is still and issue

---

<div class="post-metadata">

### Author: ![popa](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@popa](https://discuss.elastic.co/u/popa)
#### Post date: [September 20, 2018, 8:52am UTC](https://discuss.elastic.co/t/cannot-connect-to-the-elasticsearch-cluster-currently-configured-for-kibana/148860/5 "2018-09-20T08:52:22Z")

</div>

Can you post your entire elasticsearch.yml and kibana.yml configurations? Also, are they both on the same host (single node)?

---

<div class="post-metadata">

### Author: ![jprat](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@jprat](https://discuss.elastic.co/u/jprat)
#### Post date: [September 20, 2018, 9:17am UTC](https://discuss.elastic.co/t/cannot-connect-to-the-elasticsearch-cluster-currently-configured-for-kibana/148860/6 "2018-09-20T09:17:56Z")

</div>

Yes, they are on the same node.

```
[root@demo ~]# grep -v ^# /etc/elasticsearch/elasticsearch.yml
cluster.name: laboratori
node.name: node-1
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch

```

The kibana.yml is all commented, so no parameter setted.

Thanks and regards

---

<div class="post-metadata">

### Author: ![jprat](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@jprat](https://discuss.elastic.co/u/jprat)
#### Post date: [September 20, 2018, 12:44pm UTC](https://discuss.elastic.co/t/cannot-connect-to-the-elasticsearch-cluster-currently-configured-for-kibana/148860/7 "2018-09-20T12:44:58Z")

</div>

Hi all!

I checked the /var/log/kibana/kibana.stdout and I found the following error

```
{"type":"log","@timestamp":"2018-09-20T14:24:40Z","tags":["error","elasticsearch","admin"],"pid":10119,"message":"Request error, retrying\nHEAD http://loc
alhost:9200/ => connect ECONNREFUSED 172.22.249.102:9200"}

```

I did not understand why the localhost was translated to my IP 172.22.249.102. I went to **/etc/hosts** and **changed** the resolution to **127.0.0.1**. **Now it works like a charm**

---

<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: [October 18, 2018, 12:45pm UTC](https://discuss.elastic.co/t/cannot-connect-to-the-elasticsearch-cluster-currently-configured-for-kibana/148860/8 "2018-10-18T12:45:10Z")

</div>

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