Kibana not able to connect to elasticsearch

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)
at checkRespForFailure (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
at wrappedErrback (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)
at wrappedErrback (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
at Scope.$eval (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)
at Scope.$apply (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?

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

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.

Unlikely, otherwise I'd have the same problem :wink:

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?

Looks ok from what I can see.