# Elasticsearch timeout error on operations

**URL:** <https://discuss.elastic.co/t/elasticsearch-timeout-error-on-operations/280239>\
**Category:** Elasticsearch\
**Created:** [August 2, 2021, 4:09pm UTC](https://discuss.elastic.co/t/elasticsearch-timeout-error-on-operations/280239 "2021-08-02T16:09:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![iuryfukuda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iuryfukuda/32/92436_2.png) [@iuryfukuda](https://discuss.elastic.co/u/iuryfukuda)\
**Post date:** [August 2, 2021, 4:09pm UTC](https://discuss.elastic.co/t/elasticsearch-timeout-error-on-operations/280239/1 "2021-08-02T16:09:20Z")

</div>

We have timeout error on worker clients who use ES

go client:

```
time="2021-08-02T16:04:45Z" level=error msg="error handling connection with queue: error saving bulk: error making bulk request dial tcp 20.96.122.135:9200: connect: connection timed out" queue=***

```

c# client:

```auto
FAILED TO CHECK ELASTIC INDEXES: Elasticsearch.Net.UnexpectedElasticsearchClientException: The operation was canceled. ---> System.OperationCanceledException: The operation was canceled.
   at System.Net.Http.HttpClient.HandleFinishSendAsyncError(Exception e, CancellationTokenSource cts)
   at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
   at Elasticsearch.Net.HttpConnection.RequestAsync[TResponse](RequestData requestData, CancellationToken cancellationToken)
   at Elasticsearch.Net.RequestPipeline.CallElasticsearchAsync[TResponse](RequestData requestData, CancellationToken cancellationToken)
   at Elasticsearch.Net.Transport`1.RequestAsync[TResponse](HttpMethod method, String path, CancellationToken cancellationToken, PostData data, IRequestParameters requestParameters)
   --- End of inner exception stack trace ---
   at Elasticsearch.Net.Transport`1.RequestAsync[TResponse](HttpMethod method, String path, CancellationToken cancellationToken, PostData data, IRequestParameters requestParameters)
   at ***.Handle(CancellationToken cancellationToken) in /src/***.cs:line 42
FAILED TO CHECK ELASTIC INDEXES: Elasticsearch.Net.UnexpectedElasticsearchClientException: The operation was canceled. ---> System.OperationCanceledException: The operation was canceled.

```

I don't understand what is occouring. Can you help us with it?

Tried without success: OS:

- sysctl -w net.ipv4.tcp\_keepalive\_time=20
- sysctl -w net.ipv4.tcp\_keepalive\_intvl=20

ES:

- xpack.watcher.bulk.size: 5mb
- xpack.http.default\_connection\_timeout: 60s

---

<div class="post-metadata">

**Author:** ![iuryfukuda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iuryfukuda/32/92436_2.png) [@iuryfukuda](https://discuss.elastic.co/u/iuryfukuda)\
**Post date:** [August 2, 2021, 5:51pm UTC](https://discuss.elastic.co/t/elasticsearch-timeout-error-on-operations/280239/2 "2021-08-02T17:51:58Z")

</div>

I tried increase xpack.http.timeout and xpack.watcher.bulk.size without success

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 2, 2021, 10:48pm UTC](https://discuss.elastic.co/t/elasticsearch-timeout-error-on-operations/280239/3 "2021-08-02T22:48:07Z")

</div>

Welcome to our community! 😃

What do your Elasticsearch logs show?  
What version are you running?

> [@iuryfukuda](#):
>
> - xpack.watcher.bulk.size: 5mb

That's unlikely to be of much use.

---

<div class="post-metadata">

**Author:** ![iuryfukuda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iuryfukuda/32/92436_2.png) [@iuryfukuda](https://discuss.elastic.co/u/iuryfukuda)\
**Post date:** [August 2, 2021, 11:10pm UTC](https://discuss.elastic.co/t/elasticsearch-timeout-error-on-operations/280239/4 "2021-08-02T23:10:41Z")

</div>

Hello, my logs on server side show nothing.  
my ES version is 7.13.4  
Many thank's for attention

---

<div class="post-metadata">

**Author:** ![iuryfukuda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iuryfukuda/32/92436_2.png) [@iuryfukuda](https://discuss.elastic.co/u/iuryfukuda)\
**Post date:** [August 2, 2021, 11:22pm UTC](https://discuss.elastic.co/t/elasticsearch-timeout-error-on-operations/280239/5 "2021-08-02T23:22:46Z")

</div>

tried use a coordinate node, and increase recurses without success

---

<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:** [August 30, 2021, 11:23pm UTC](https://discuss.elastic.co/t/elasticsearch-timeout-error-on-operations/280239/6 "2021-08-30T23:23:30Z")

</div>

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