# Kibana not able to connect to elasticsearch

**URL:** <https://discuss.elastic.co/t/kibana-not-able-to-connect-to-elasticsearch/29038>\
**Category:** Kibana\
**Created:** [September 10, 2015, 2:36pm UTC](https://discuss.elastic.co/t/kibana-not-able-to-connect-to-elasticsearch/29038 "2015-09-10T14:36:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shivam\_singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shivam_singh/32/4225_2.png) [@shivam\_singh](https://discuss.elastic.co/u/shivam_singh)\
**Post date:** [September 10, 2015, 2:36pm UTC](https://discuss.elastic.co/t/kibana-not-able-to-connect-to-elasticsearch/29038/1 "2015-09-10T14:36:30Z")

</div>

Hi,

I am not able to connect to my elasticsearch instance from kibana instance. Both are on AWS EC2.  
Getting this error:

Error: Unknown error while connecting to Elasticsearch  
Error: Internal Server Error  
at respond ([http://10.0.30.xxx:5601/index.js?\_b=7562:85289:15](http://10.0.30.xxx:5601/index.js?_b=7562:85289:15))  
at checkRespForFailure ([http://10.0.30.xxx:5601/index.js?\_b=7562:85257:7](http://10.0.30.xxx:5601/index.js?_b=7562:85257:7))  
at [http://10.0.30.xxx:5601/index.js?\_b=7562:83895:7](http://10.0.30.xxx:5601/index.js?_b=7562:83895:7)  
at wrappedErrback ([http://10.0.30.xxx:5601/index.js?\_b=7562:20902:78](http://10.0.30.xxx:5601/index.js?_b=7562:20902:78))  
at wrappedErrback ([http://10.0.30.xxx:5601/index.js?\_b=7562:20902:78](http://10.0.30.xxx:5601/index.js?_b=7562:20902:78))  
at wrappedErrback ([http://10.0.30.xxx:5601/index.js?\_b=7562:20902:78](http://10.0.30.xxx:5601/index.js?_b=7562:20902:78))  
at [http://10.0.30.xxx:5601/index.js?\_b=7562:21035:76](http://10.0.30.xxx:5601/index.js?_b=7562:21035:76)  
at Scope.$eval ([http://10.0.30.xxx:5601/index.js?\_b=7562:22022:28](http://10.0.30.xxx:5601/index.js?_b=7562:22022:28))  
at Scope.$digest ([http://10.0.30.xxx:5601/index.js?\_b=7562:21834:31](http://10.0.30.xxx:5601/index.js?_b=7562:21834:31))  
at Scope.$apply ([http://10.0.30.xxx:5601/index.js?\_b=7562:22126:24](http://10.0.30.xxx:5601/index.js?_b=7562:22126:24))

My kibana.yml

port: 5601  
host: "10.0.30.xxx"  
elasticsearch\_url: "10.0.30.yyy:9200"  
elasticsearch\_preserve\_host: true  
kibana\_index: ".kibana"  
default\_app\_id: "discover"  
ping\_timeout: 15000  
request\_timeout: 900000  
shard\_timeout: 0  
bundled\_plugin\_ids:  
......

any help?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 11, 2015, 6:55am UTC](https://discuss.elastic.co/t/kibana-not-able-to-connect-to-elasticsearch/29038/2 "2015-09-11T06:55:23Z")

</div>

Can you connect to ES ok - `curl IP:9200`?

---

<div class="post-metadata">

**Author:** ![shivam\_singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shivam_singh/32/4225_2.png) [@shivam\_singh](https://discuss.elastic.co/u/shivam_singh)\
**Post date:** [September 11, 2015, 7:07am UTC](https://discuss.elastic.co/t/kibana-not-able-to-connect-to-elasticsearch/29038/3 "2015-09-11T07:07:35Z")

</div>

Yeah..!!  
Anyway I solved the problem. Not exactly solved it but downgraded the version of kibana and it worked like a charm. 4.1.2-\>4.1.1

I guess its a bug in Kibana latest version.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 11, 2015, 7:13am UTC](https://discuss.elastic.co/t/kibana-not-able-to-connect-to-elasticsearch/29038/4 "2015-09-11T07:13:35Z")

</div>

Unlikely, otherwise I'd have the same problem 😉

---

<div class="post-metadata">

**Author:** ![shivam\_singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shivam_singh/32/4225_2.png) [@shivam\_singh](https://discuss.elastic.co/u/shivam_singh)\
**Post date:** [September 11, 2015, 7:25am UTC](https://discuss.elastic.co/t/kibana-not-able-to-connect-to-elasticsearch/29038/5 "2015-09-11T07:25:24Z")

</div>

If its working for you then it should work for me too. It cannot be connection problem as firewall is off on both the machines and the both belong to the same subnet. In my post I have mentioned my config file. Is something wrong with it?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 11, 2015, 9:55am UTC](https://discuss.elastic.co/t/kibana-not-able-to-connect-to-elasticsearch/29038/6 "2015-09-11T09:55:14Z")

</div>

Looks ok from what I can see.

---

<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:** [July 6, 2017, 2:13pm UTC](https://discuss.elastic.co/t/kibana-not-able-to-connect-to-elasticsearch/29038/7 "2017-07-06T14:13:16Z")

</div>


