# Timeouts when deleting a snapshot (without curator)

**URL:** <https://discuss.elastic.co/t/timeouts-when-deleting-a-snapshot-without-curator/133569>\
**Category:** Elasticsearch\
**Created:** [May 28, 2018, 4:10pm UTC](https://discuss.elastic.co/t/timeouts-when-deleting-a-snapshot-without-curator/133569 "2018-05-28T16:10:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mrep](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@Mrep](https://discuss.elastic.co/u/Mrep)\
**Post date:** [May 28, 2018, 4:10pm UTC](https://discuss.elastic.co/t/timeouts-when-deleting-a-snapshot-without-curator/133569/1 "2018-05-28T16:10:03Z")

</div>

Hi,

I sometimes have timeout errors when deleting a snapshot using the API:  
`{ "statusCode": 504, "error": "Gateway Timeout", "message": "Client request timeout" }`

With curator, it's possible to expand the timeout...but is it possible **using the api directly**?  
(I can't use curator in my situation, so I have to create my own solution)

Thanks!

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 28, 2018, 5:27pm UTC](https://discuss.elastic.co/t/timeouts-when-deleting-a-snapshot-without-curator/133569/2 "2018-05-28T17:27:58Z")

</div>

Why can you not use Curator?

---

<div class="post-metadata">

**Author:** ![Mrep](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@Mrep](https://discuss.elastic.co/u/Mrep)\
**Post date:** [May 28, 2018, 5:31pm UTC](https://discuss.elastic.co/t/timeouts-when-deleting-a-snapshot-without-curator/133569/3 "2018-05-28T17:31:19Z")

</div>

I'm on RHEL7 and on this server, I can't make curator work properly:

```
`Unable to create client connection to Elasticsearch. Error: ConnectionError([Errno 2] No such file or directory) caused by: SSLError([Errno 2] No such file or directory`

```

It seems to be related to my version of openssl...sadly, I have no control on the packages repositories (it's a professional environment), and I can't update openssl.

I use curator on an other cluster that doesn't use SSL, and it works like a charm!

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [May 28, 2018, 6:13pm UTC](https://discuss.elastic.co/t/timeouts-when-deleting-a-snapshot-without-curator/133569/4 "2018-05-28T18:13:35Z")

</div>

Using the API directly will depend on the client library used. With Python, it's as simple as `timeout=XX`. It will be similar/different depending on the client library you're using. For Console, it's whatever it does.

However...

You're getting a 504 timeout, which is a different animal entirely. See this [older documentation](https://www.elastic.co/guide/en/elasticsearch/client/curator/4.0/faq_lb_timeout.html). No client-side timeout increase will ever compensate for a 504 happening on the server side (which is usually a load-balancer) ☹

---

<div class="post-metadata">

**Author:** ![Mrep](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@Mrep](https://discuss.elastic.co/u/Mrep)\
**Post date:** [May 29, 2018, 4:09pm UTC](https://discuss.elastic.co/t/timeouts-when-deleting-a-snapshot-without-curator/133569/5 "2018-05-29T16:09:37Z")

</div>

Thank you Aaron! I'll check it with my network team.

---

<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 26, 2018, 4:09pm UTC](https://discuss.elastic.co/t/timeouts-when-deleting-a-snapshot-without-curator/133569/6 "2018-06-26T16:09:38Z")

</div>

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