# Attempted to send a bulk request to elasticsearch, but no there are no living connections in the connection pool

**URL:** https://discuss.elastic.co/t/attempted-to-send-a-bulk-request-to-elasticsearch-but-no-there-are-no-living-connections-in-the-connection-pool/132712
**Category:** Logstash
**Created:** [May 22, 2018, 2:57am UTC](https://discuss.elastic.co/t/attempted-to-send-a-bulk-request-to-elasticsearch-but-no-there-are-no-living-connections-in-the-connection-pool/132712 "2018-05-22T02:57:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kimileonis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimileonis/32/31867_2.png) [@kimileonis](https://discuss.elastic.co/u/kimileonis)
#### Post date: [May 22, 2018, 2:57am UTC](https://discuss.elastic.co/t/attempted-to-send-a-bulk-request-to-elasticsearch-but-no-there-are-no-living-connections-in-the-connection-pool/132712/1 "2018-05-22T02:57:09Z")

</div>

[2018-05-21T07:16:47,046][ERROR][logstash.outputs.elasticsearch] Attempted to send a bulk request to elasticsearch' but Elasticsearch appears to be unreachable or down! {:error\_message=\>"Elasticsearch Unreachable: [[http://10.77.96.180:9200/](http://10.77.96.180:9200/)][Manticore::SocketTimeout] Read timed out", :class=\>"LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError", :will\_retry\_in\_seconds=\>2}  
[2018-05-21T07:16:47,932][WARN][logstash.outputs.elasticsearch] UNEXPECTED POOL ERROR {:e=\>#\<LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError: No Available connections\>}  
[2018-05-21T07:16:47,932][ERROR][logstash.outputs.elasticsearch] Attempted to send a bulk request to elasticsearch, but no there are no living connections in the connection pool. Perhaps Elasticsearch is unreachable or down? {:error\_message=\>"No Available connections", :class=\>"LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError", :will\_retry\_in\_seconds=\>4}  
[2018-05-21T07:16:48,356][WARN][logstash.outputs.elasticsearch] UNEXPECTED POOL ERROR {:e=\>#\<LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError: No Available connections\>}  
[2018-05-21T07:16:48,356][ERROR][logstash.outputs.elasticsearch] Attempted to send a bulk request to elasticsearch, but no there are no living connections in the connection pool. Perhaps Elasticsearch is unreachable or down? {:error\_message=\>"No Available connections", :class=\>"LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError", :will\_retry\_in\_seconds=\>4}  
[2018-05-21T07:16:49,077][WARN][logstash.outputs.elasticsearch] UNEXPECTED POOL ERROR {:e=\>#\<LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError: No Available connections\>}  
[2018-05-21T07:16:49,078][ERROR][logstash.outputs.elasticsearch] Attempted to send a bulk request to elasticsearch, but no there are no living connections in the connection pool. Perhaps Elasticsearch is unreachable or down? {:error\_message=\>"No Available connections", :class=\>"LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError", :will\_retry\_in\_seconds=\>4}  
[2018-05-21T07:16:49,316][WARN][logstash.outputs.elasticsearch] UNEXPECTED POOL ERROR {:e=\>#\<LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError: No Available connections\>}  
[2018-05-21T07:16:49,316][ERROR][logstash.outputs.elasticsearch] Attempted to send a bulk request to elasticsearch, but no there are no living connections in the connection pool. Perhaps Elasticsearch is unreachable or down? {:error\_message=\>"No Available connections", :class=\>"LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError", :will\_retry\_in\_seconds=\>8}  
[2018-05-21T07:16:49,768][WARN][logstash.outputs.elasticsearch] Marking url as dead. Last error: [LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError] Elasticsearch Unreachable: [[http://10.77.96.179:9200/](http://10.77.96.179:9200/)][Manticore::SocketTimeout] Read timed out {:url=\>[http://10.77.96.179:9200/](http://10.77.96.179:9200/), :error\_message=\>"Elasticsearch Unreachable: [[http://10.77.96.179:9200/](http://10.77.96.179:9200/)][Manticore::SocketTimeout] Read timed out", :error\_class=\>"LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError"}  
[2018-05-21T07:16:49,768][ERROR][logstash.outputs.elasticsearch] Attempted to send a bulk request to elasticsearch' but Elasticsearch appears to be unreachable or down! {:error\_message=\>"Elasticsearch Unreachable: [[http://10.77.96.179:9200/](http://10.77.96.179:9200/)][Manticore::SocketTimeout] Read timed out", :class=\>"LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError", :will\_retry\_in\_seconds=\>2}

Any Help?

---

<div class="post-metadata">

### Author: ![nikhil.k](https://avatars.discourse-cdn.com/v4/letter/n/5daacb/32.png) [@nikhil.k](https://discuss.elastic.co/u/nikhil.k)
#### Post date: [May 22, 2018, 4:17am UTC](https://discuss.elastic.co/t/attempted-to-send-a-bulk-request-to-elasticsearch-but-no-there-are-no-living-connections-in-the-connection-pool/132712/2 "2018-05-22T04:17:17Z")

</div>

Hi @kimileonis,

Seeing your error, it seems that your elasticsearch is not configured properly.  
Before running logstash check whether the elasticsearch is configured correctly or not.  
Steps:-

1. Start elasticsearch service
2. open the web browser of the machine
3. [http://10.77.96.180:9200/](http://10.77.96.180:9200/)  
#type the above in the browser and enter  
Note:- Considering "10.77.96.180:9200" as the IP of the system on which elasticsearch is installed

After entering, if you see the "name", "cluster\_name", "version", etc. on the browser then start the logstash.  
If "Unable to connect" is displayed on the browser then you first need to configure the elasticsearch properly.

Hope this might help you!!

Regards  
Nikhil Kapoor

---

<div class="post-metadata">

### Author: ![kimileonis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimileonis/32/31867_2.png) [@kimileonis](https://discuss.elastic.co/u/kimileonis)
#### Post date: [May 30, 2018, 2:13am UTC](https://discuss.elastic.co/t/attempted-to-send-a-bulk-request-to-elasticsearch-but-no-there-are-no-living-connections-in-the-connection-pool/132712/3 "2018-05-30T02:13:26Z")

</div>

thank you！My cluster has been running for a long time, and the problem isn't always there, only occasionally, and then comes back in a few hours. The rest of the time the cluster works normally

---

<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: [June 27, 2018, 2:25am UTC](https://discuss.elastic.co/t/attempted-to-send-a-bulk-request-to-elasticsearch-but-no-there-are-no-living-connections-in-the-connection-pool/132712/4 "2018-06-27T02:25:01Z")

</div>

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