# Kibana can't connect to elasticsearch in linux

**URL:** <https://discuss.elastic.co/t/kibana-cant-connect-to-elasticsearch-in-linux/255429>\
**Category:** Kibana\
**Created:** [November 15, 2020, 8:20am UTC](https://discuss.elastic.co/t/kibana-cant-connect-to-elasticsearch-in-linux/255429 "2020-11-15T08:20:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ehsan\_sarshar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ehsan_sarshar/32/78444_2.png) [@Ehsan\_sarshar](https://discuss.elastic.co/u/Ehsan_sarshar)\
**Post date:** [November 15, 2020, 8:20am UTC](https://discuss.elastic.co/t/kibana-cant-connect-to-elasticsearch-in-linux/255429/1 "2020-11-15T08:20:48Z")

</div>

I have a docker-compose file with a kibana.yml  
everything is working correctly in macos but in linux it throw this error  
`"Unable to revive connection: http://es01:9200/"`

---

<div class="post-metadata">

**Author:** ![Ehsan\_sarshar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ehsan_sarshar/32/78444_2.png) [@Ehsan\_sarshar](https://discuss.elastic.co/u/Ehsan_sarshar)\
**Post date:** [November 15, 2020, 9:37am UTC](https://discuss.elastic.co/t/kibana-cant-connect-to-elasticsearch-in-linux/255429/2 "2020-11-15T09:37:17Z")

</div>

Ok fixed the problem was with auth.  
after adding password to kibana.yml I should "docker-compose down" or manually stop kibana container and then "docker-compose up -d" or start it manually.

---

<div class="post-metadata">

**Author:** ![Aniket\_Pant](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Aniket\_Pant](https://discuss.elastic.co/u/Aniket_Pant)\
**Post date:** [November 15, 2020, 5:17pm UTC](https://discuss.elastic.co/t/kibana-cant-connect-to-elasticsearch-in-linux/255429/3 "2020-11-15T17:17:36Z")

</div>

its up to you **docker-compose down** will stop all containers specified in the compose file and to stop kibana you can run **docker stop container\_name**

---

<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 13, 2020, 5:17pm UTC](https://discuss.elastic.co/t/kibana-cant-connect-to-elasticsearch-in-linux/255429/4 "2020-12-13T17:17:42Z")

</div>

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