# 'Unable to revive connection' errors when running ES in Docker container

**URL:** https://discuss.elastic.co/t/unable-to-revive-connection-errors-when-running-es-in-docker-container/62374
**Category:** Elasticsearch
**Created:** [October 6, 2016, 12:06pm UTC](https://discuss.elastic.co/t/unable-to-revive-connection-errors-when-running-es-in-docker-container/62374 "2016-10-06T12:06:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Marco\_Berndsen](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@Marco\_Berndsen](https://discuss.elastic.co/u/Marco_Berndsen)
#### Post date: [October 6, 2016, 12:06pm UTC](https://discuss.elastic.co/t/unable-to-revive-connection-errors-when-running-es-in-docker-container/62374/1 "2016-10-06T12:06:22Z")

</div>

I'm creating an search application, using Docker containers and keep getting 'Unable to revive connection' and 'No living connections' errors. The setup I'm using:

- ES 2.4 image in Docker container
- elasticsearch.js based front-end in nginx container
- ubuntu container for test pruposes
- all containers in a user-defined network within docker

I feed ES using curl from the ubuntu container with some test data. Works well: data is indexed and can be queried. All from the ubuntu container. When I try to query from my js frontend, however, I get the above error messages. Running it on my Mac, works all perfect. The errors only appear when communication is between containers.

This is what I already found out, trying to solve the issue:

- I (probably?) have to turn on CORS (see [Elastic Search enable CORS](http://blog.codingtimes.com/2016/06/12/elastic-search-enable-cors/)). So I did.
- I have to something similar in my nginx configuration (see [Wide open nginx Cors configuration](https://michielkalkman.com/snippets/nginx-cors-open-configuration.html)). So I also did.

Still no effect. Has anyone a clue?  
Thanks!

---

<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 5, 2017, 10:14pm UTC](https://discuss.elastic.co/t/unable-to-revive-connection-errors-when-running-es-in-docker-container/62374/2 "2017-07-05T22:14:20Z")

</div>


