# Kibana error in log : Unable to connect to Elasticsearch Error: master not discovered exception

**URL:** <https://forum.opensearch.org/t/kibana-error-in-log-unable-to-connect-to-elasticsearch-error-master-not-discovered-exception/3660>\
**Category:** Open Source Elasticsearch and Kibana\
**Created:** [September 1, 2020, 3:05pm UTC](https://forum.opensearch.org/t/kibana-error-in-log-unable-to-connect-to-elasticsearch-error-master-not-discovered-exception/3660 "2020-09-01T15:05:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![FREDDIE2020](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/freddie2020/32/969_2.png) [@FREDDIE2020](https://forum.opensearch.org/u/FREDDIE2020)\
**Post date:** [September 1, 2020, 3:05pm UTC](https://forum.opensearch.org/t/kibana-error-in-log-unable-to-connect-to-elasticsearch-error-master-not-discovered-exception/3660/1 "2020-09-01T15:05:15Z")

</div>

Hello All,

I am trying to execute mt Kibana UI login and it fails.

I checked the logs for the pod and this is what it shows:

[lewellf\_adm@awva-pclif03001 kibana]$ kubectl logs kibana-75f647cf75-5l5lz -n monitoring-tools  
{“type”:“log”,“@timestamp”:“2020-09-01T13:19:36Z”,“tags”:[“warning”,“plugins-discovery”],“pid”:1,“message”:“Expect plugin “id” in camelCase, but found: apm\_oss”}  
{“type”:“log”,“@timestamp”:“2020-09-01T13:19:37Z”,“tags”:[“info”,“plugins-service”],“pid”:1,“message”:“Plugin “visTypeXy” is disabled.”}

`@babel/polyfill` is deprecated. Please, use required parts of `core-js`  
and `regenerator-runtime/runtime` separately  
{“type”:“log”,“@timestamp”:“2020-09-01T13:19:40Z”,“tags”:[“warning”,“legacy-service”],“pid”:1,“message”:“Some installed third party plugin(s) [opendistro-alerting, opendistro-anomaly-detection-kibana, opendistro-sql-workbench, opendistro\_index\_management\_kibana, opendistro\_security] are using the legacy plugin format and will no longer work in a future Kibana release. Please refer to [https://ela.st/kibana-breaking-changes-8-0](https://ela.st/kibana-breaking-changes-8-0) for a list of breaking changes and [Migrating legacy plugins to the Kibana Platform | Kibana Guide [8.4] | Elastic](https://ela.st/kibana-platform-migration) for documentation on how to migrate legacy plugins.”}  
{“type”:“log”,“@timestamp”:“2020-09-01T13:19:41Z”,“tags”:[“info”,“plugins-system”],“pid”:1,“message”:“Setting up [42] plugins: [usageCollection,telemetryCollectionManager,telemetry,kibanaLegacy,devTools,uiActions,statusPage,share,newsfeed,mapsLegacy,kibanaUtils,kibanaReact,indexPatternManagement,inspector,embeddable,esUiShared,discover,charts,bfetch,expressions,data,home,console,apm\_oss,management,advancedSettings,telemetryManagementSection,visualizations,visTypeVislib,visTypeVega,visTypeTimeseries,visTypeTable,visTypeTimelion,visTypeTagcloud,visTypeMetric,visTypeMarkdown,inputControlVis,savedObjects,navigation,visualize,dashboard,savedObjectsManagement]”}  
{“type”:“log”,“@timestamp”:“2020-09-01T13:19:41Z”,“tags”:[“info”,“savedobjects-service”],“pid”:1,“message”:“Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations…”}  
{“type”:“log”,“@timestamp”:“2020-09-01T13:19:41Z”,“tags”:[“info”,“savedobjects-service”],“pid”:1,“message”:“Starting saved objects migrations”}  
{“type”:“log”,“@timestamp”:“2020-09-01T13:20:11Z”,“tags”:[“warning”,“saved objects-service”],“pid”:1,“message”:“Unable to connect to Elasticsearch. Error: [master\_not\_discovered\_exception] null”}

Can someone please help me fix this issue?

Greatly appreciated!

Freddie2020

---

<div class="post-metadata">

**Author:** ![stmx38](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/stmx38/32/4354_2.png) [@stmx38](https://forum.opensearch.org/u/stmx38)\
**Post date:** [September 1, 2020, 3:09pm UTC](https://forum.opensearch.org/t/kibana-error-in-log-unable-to-connect-to-elasticsearch-error-master-not-discovered-exception/3660/2 "2020-09-01T15:09:36Z")

</div>

Hello @FREDDIE2020, can you please check what is specified in your _/etc/kibana/kibana.yml_  
`elasticsearch.hosts: http://es.domain.tld:9200`

And try to test if from the Kibana node using curl:  
`curl http://es.domain.tld:9200`

---

<div class="post-metadata">

**Author:** ![FREDDIE2020](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/freddie2020/32/969_2.png) [@FREDDIE2020](https://forum.opensearch.org/u/FREDDIE2020)\
**Post date:** [September 2, 2020, 1:08pm UTC](https://forum.opensearch.org/t/kibana-error-in-log-unable-to-connect-to-elasticsearch-error-master-not-discovered-exception/3660/3 "2020-09-02T13:08:08Z")

</div>

@stmx38

So kibana.yml does have the elasticsearch.hosts entry defined correctly but cannot do curl from pod.

Any suggestions?

Thanks,

Freddie2020

---

<div class="post-metadata">

**Author:** ![stmx38](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/stmx38/32/4354_2.png) [@stmx38](https://forum.opensearch.org/u/stmx38)\
**Post date:** [September 2, 2020, 1:35pm UTC](https://forum.opensearch.org/t/kibana-error-in-log-unable-to-connect-to-elasticsearch-error-master-not-discovered-exception/3660/4 "2020-09-02T13:35:08Z")

</div>

Documentation - [Kibana](https://opendistro.github.io/for-elasticsearch-docs/docs/kibana/)

 ![Screenshot 2020-09-02 at 16.34.01](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/1X/3aef8decc4e17f7bdfc830da0f48387ea2a3985a.png)

---

<div class="post-metadata">

**Author:** ![FREDDIE2020](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/freddie2020/32/969_2.png) [@FREDDIE2020](https://forum.opensearch.org/u/FREDDIE2020)\
**Post date:** [September 2, 2020, 10:25pm UTC](https://forum.opensearch.org/t/kibana-error-in-log-unable-to-connect-to-elasticsearch-error-master-not-discovered-exception/3660/5 "2020-09-02T22:25:28Z")

</div>

Thanks. I was able to resolve my issue by deleteing kibana setup and re-applying using kubectl.

FREDDIE2020
