# Getting "Unable to revive connection" error when running bat file in Windows

**URL:** <https://discuss.elastic.co/t/getting-unable-to-revive-connection-error-when-running-bat-file-in-windows/24686>\
**Category:** Kibana\
**Created:** [July 1, 2015, 7:14am UTC](https://discuss.elastic.co/t/getting-unable-to-revive-connection-error-when-running-bat-file-in-windows/24686 "2015-07-01T07:14:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohan\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohan_kumar/32/3528_2.png) [@Mohan\_Kumar](https://discuss.elastic.co/u/Mohan_Kumar)\
**Post date:** [July 1, 2015, 7:14am UTC](https://discuss.elastic.co/t/getting-unable-to-revive-connection-error-when-running-bat-file-in-windows/24686/1 "2015-07-01T07:14:37Z")

</div>

I am getting the below error while running bat file.. Can anybody help me on this?

{"@timestamp":"2015-07-01T07:12:13.408Z","level":"error","node\_env":""productio  
n"","error":"Request error, retrying -- connect ECONNREFUSED"}  
{"@timestamp":"2015-07-01T07:12:14.414Z","level":"warn","message":"Unable to rev  
ive connection: [http://10.237.172.230:9200/","node\_env":""production"](http://10.237.172.230:9200/%22,%22node_env%22:%22%22production%22)"}  
{"@timestamp":"2015-07-01T07:12:14.415Z","level":"warn","message":"No living con  
nections","node\_env":""production""}  
{"@timestamp":"2015-07-01T07:12:14.418Z","level":"info","message":"Unable to con  
nect to elasticsearch at [http://10.237.172.230:9200](http://10.237.172.230:9200). Retrying in 2.5 seconds.","  
node\_env":""production""}

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [July 1, 2015, 4:19pm UTC](https://discuss.elastic.co/t/getting-unable-to-revive-connection-error-when-running-bat-file-in-windows/24686/2 "2015-07-01T16:19:09Z")

</div>

"Unable to revive connection" is an Elasticsearch error message. Are you able to connect to your cluster via that IP and port outside of Kibana, via curl or something else?

---

<div class="post-metadata">

**Author:** ![Mohan\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohan_kumar/32/3528_2.png) [@Mohan\_Kumar](https://discuss.elastic.co/u/Mohan_Kumar)\
**Post date:** [July 2, 2015, 4:47am UTC](https://discuss.elastic.co/t/getting-unable-to-revive-connection-error-when-running-bat-file-in-windows/24686/3 "2015-07-02T04:47:08Z")

</div>

No Joe.. I am not able to connect to that IP address and port via curl or otherthing.. I am getting "Connection Refused" message.. Can you help on this?

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [July 2, 2015, 4:22pm UTC](https://discuss.elastic.co/t/getting-unable-to-revive-connection-error-when-running-bat-file-in-windows/24686/4 "2015-07-02T16:22:17Z")

</div>

My initial thought is that it's a networking issue. Maybe the IP you're using isn't right from the point of the machine you're connecting from, or the port is being blocked or something, you'll have to figure out what it is. It's definitely not limited to kibana though if you can't connect to it.

What other details can you provide? As in, what does your setup look like? Is the ES server on the same box? If not, what is the IP of the box you are connecting from? If it's two different boxes, can you ping that IP from the machine that's running Kibana?

---

<div class="post-metadata">

**Author:** ![Mohan\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohan_kumar/32/3528_2.png) [@Mohan\_Kumar](https://discuss.elastic.co/u/Mohan_Kumar)\
**Post date:** [July 3, 2015, 5:40am UTC](https://discuss.elastic.co/t/getting-unable-to-revive-connection-error-when-running-bat-file-in-windows/24686/5 "2015-07-03T05:40:13Z")

</div>

I too thought of the same network issue or inaccessible port issue.. Both ES server are on the same box.. Ping also working fine.. I guess the port I am using might be blocked.. And I used other ports also instead of 9200 and 5601, that too is not working.. Any other suggestion?

---

<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 6, 2017, 2:17pm UTC](https://discuss.elastic.co/t/getting-unable-to-revive-connection-error-when-running-bat-file-in-windows/24686/6 "2017-07-06T14:17:09Z")

</div>


