# Kibana cannot automatically recover when elasticsearch restarts

**URL:** <https://discuss.elastic.co/t/kibana-cannot-automatically-recover-when-elasticsearch-restarts/288194>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [November 2, 2021, 6:43am UTC](https://discuss.elastic.co/t/kibana-cannot-automatically-recover-when-elasticsearch-restarts/288194 "2021-11-02T06:43:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuaazt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nuaazt/32/96392_2.png) [@nuaazt](https://discuss.elastic.co/u/nuaazt)\
**Post date:** [November 2, 2021, 6:43am UTC](https://discuss.elastic.co/t/kibana-cannot-automatically-recover-when-elasticsearch-restarts/288194/1 "2021-11-02T06:43:07Z")

</div>

hi，I build a docker image of kibana from the code. Then I start the kibana container. I find that when I restart Elasticsearch, kibana also turns error and cannot recover. I must restart kibana manually.  
So does kibana have any fault detection and automatic recovery attempts?

---

<div class="post-metadata">

**Author:** ![rudolf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rudolf/32/51200_2.png) [@rudolf](https://discuss.elastic.co/u/rudolf)\
**Post date:** [November 2, 2021, 1:54pm UTC](https://discuss.elastic.co/t/kibana-cannot-automatically-recover-when-elasticsearch-restarts/288194/2 "2021-11-02T13:54:40Z")

</div>

Can you share the Kibana logs from before and after you restart Elasticsearch?

---

<div class="post-metadata">

**Author:** ![FALEN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/falen/32/82754_2.png) [@FALEN](https://discuss.elastic.co/u/FALEN)\
**Post date:** [November 2, 2021, 2:55pm UTC](https://discuss.elastic.co/t/kibana-cannot-automatically-recover-when-elasticsearch-restarts/288194/3 "2021-11-02T14:55:03Z")

</div>

Hi @nuaazt ,  
If your Elasticsearch downtimes takes longer than default 30 sec, it can cause those problems

can you add those to your kibana config and try again

Elasticsearch.requestTimeout: 50000  
Elasticsearch.shardTimeout: 50000

---

<div class="post-metadata">

**Author:** ![nuaazt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nuaazt/32/96392_2.png) [@nuaazt](https://discuss.elastic.co/u/nuaazt)\
**Post date:** [November 3, 2021, 2:42am UTC](https://discuss.elastic.co/t/kibana-cannot-automatically-recover-when-elasticsearch-restarts/288194/4 "2021-11-03T02:42:18Z")

</div>

Hi， @FALEN ， Thanks for you reply. But the only solution is config larger timeout value？Can kibana monitor ES， and recover automatically？

---

<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:** [December 1, 2021, 2:42am UTC](https://discuss.elastic.co/t/kibana-cannot-automatically-recover-when-elasticsearch-restarts/288194/5 "2021-12-01T02:42:37Z")

</div>

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