# Snapshot in progress for long time. How do I delete it?

**URL:** <https://discuss.elastic.co/t/snapshot-in-progress-for-long-time-how-do-i-delete-it/17199>\
**Category:** Elasticsearch\
**Created:** [April 25, 2014, 1:21pm UTC](https://discuss.elastic.co/t/snapshot-in-progress-for-long-time-how-do-i-delete-it/17199 "2014-04-25T13:21:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dipesh\_Patel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dipesh_patel/32/1579_2.png) [@Dipesh\_Patel](https://discuss.elastic.co/u/Dipesh_Patel)\
**Post date:** [April 25, 2014, 1:21pm UTC](https://discuss.elastic.co/t/snapshot-in-progress-for-long-time-how-do-i-delete-it/17199/1 "2014-04-25T13:21:35Z")

</div>

Hi

We've been using the snapshot feature for a while. Yesterday we hit the  
endpoint to create a snapshot however it has been in progress for nearly 24  
hours now - this has never happened they generally tend to finish quite  
quick. We can't seem to kill it having tried to delete it via the snapshot  
api. Our main concern right now is to kill the snapshot and take another  
one just so we can back it up. Any help appreciated.

We are using Elasticsearch 1.1.1 running on centos6, java7. We currently  
have 6 data nodes and 3 eligible master nodes, one of which is the master.

Dip

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/844966ed-a4da-4595-95f9-e80e45343603%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/844966ed-a4da-4595-95f9-e80e45343603%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Dipesh\_Patel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dipesh_patel/32/1579_2.png) [@Dipesh\_Patel](https://discuss.elastic.co/u/Dipesh_Patel)\
**Post date:** [April 25, 2014, 5:00pm UTC](https://discuss.elastic.co/t/snapshot-in-progress-for-long-time-how-do-i-delete-it/17199/2 "2014-04-25T17:00:27Z")

</div>

Bit more info. We are using the AWS plugin to write to an s3 location. In  
this location I can see the metadata for this snapshot but it's permanently  
saying 'IN\_PROGRESS'

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3b328fac-5821-4bb7-aef1-06a92595b41c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3b328fac-5821-4bb7-aef1-06a92595b41c%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Paulo\_Correa](https://avatars.discourse-cdn.com/v4/letter/p/bb73d2/32.png) [@Paulo\_Correa](https://discuss.elastic.co/u/Paulo_Correa)\
**Post date:** [April 25, 2014, 10:23pm UTC](https://discuss.elastic.co/t/snapshot-in-progress-for-long-time-how-do-i-delete-it/17199/3 "2014-04-25T22:23:25Z")

</div>

I think you can safely delete the snapshot. It will cancel the  
still-running process.

From their docs (

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

):  
"When a snapshot is deleted from a repository, Elasticsearch deletes all  
files that are associated with the deleted snapshot and not used by any  
other snapshots. If the deleted snapshot operation is executed while the  
snapshot is being created the snapshotting process will be aborted and all  
files created as part of the snapshotting process will be cleaned.  
Therefore, the delete snapshot operation can be used to cancel long running  
snapshot operations that were started by mistake."

Em sexta-feira, 25 de abril de 2014 10h21min35s UTC-3, Dipesh Patel  
escreveu:

> Hi
> 
> We've been using the snapshot feature for a while. Yesterday we hit the  
> endpoint to create a snapshot however it has been in progress for nearly 24  
> hours now - this has never happened they generally tend to finish quite  
> quick. We can't seem to kill it having tried to delete it via the snapshot  
> api. Our main concern right now is to kill the snapshot and take another  
> one just so we can back it up. Any help appreciated.
> 
> We are using Elasticsearch 1.1.1 running on centos6, java7. We currently  
> have 6 data nodes and 3 eligible master nodes, one of which is the master.
> 
> Dip

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5c9b2899-d289-4d67-8ce4-a6c00456f673%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5c9b2899-d289-4d67-8ce4-a6c00456f673%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Dipesh\_Patel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dipesh_patel/32/1579_2.png) [@Dipesh\_Patel](https://discuss.elastic.co/u/Dipesh_Patel)\
**Post date:** [April 28, 2014, 9:04am UTC](https://discuss.elastic.co/t/snapshot-in-progress-for-long-time-how-do-i-delete-it/17199/4 "2014-04-28T09:04:16Z")

</div>

Hi

We've tried using the delete api but it just hangs and doesn't seem to  
complete. There isn't anything useful in the log messages.

Dip

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8780ba8e-75bc-4419-abc7-76a0abe4c521%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8780ba8e-75bc-4419-abc7-76a0abe4c521%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Dipesh\_Patel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dipesh_patel/32/1579_2.png) [@Dipesh\_Patel](https://discuss.elastic.co/u/Dipesh_Patel)\
**Post date:** [April 28, 2014, 9:38am UTC](https://discuss.elastic.co/t/snapshot-in-progress-for-long-time-how-do-i-delete-it/17199/5 "2014-04-28T09:38:01Z")

</div>

Bit more info, the cluster state api is listing the troublesome snapshot as  
being 'ABORTED'. So localhost:9200:\_cluster/state:  
...

"snapshots": {"snapshots": [{  
"repository": "s3\_repository",  
"snapshot": "custom\_snapshot\_24\_04\_2014\_17:27"  
"include\_global\_state": true,  
"state": "ABORTED",  
"indices": [  
...

On Monday, April 28, 2014 10:04:16 AM UTC+1, Dipesh Patel wrote:

> Hi
> 
> We've tried using the delete api but it just hangs and doesn't seem to  
> complete. There isn't anything useful in the log messages.
> 
> Dip

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/96646385-5d4d-4f09-9146-8d1287ddabc8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/96646385-5d4d-4f09-9146-8d1287ddabc8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Preeti\_Raj\_Buchhada](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/preeti_raj_buchhada/32/8971_2.png) [@Preeti\_Raj\_Buchhada](https://discuss.elastic.co/u/Preeti_Raj_Buchhada)\
**Post date:** [June 20, 2016, 5:25am UTC](https://discuss.elastic.co/t/snapshot-in-progress-for-long-time-how-do-i-delete-it/17199/6 "2016-06-20T05:25:52Z")

</div>

hi Dipesh, we are facing the same issue. How did you overcome it (if at all) ?

---

<div class="post-metadata">

**Author:** ![Preeti\_Raj\_Buchhada](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/preeti_raj_buchhada/32/8971_2.png) [@Preeti\_Raj\_Buchhada](https://discuss.elastic.co/u/Preeti_Raj_Buchhada)\
**Post date:** [June 20, 2016, 6:48am UTC](https://discuss.elastic.co/t/snapshot-in-progress-for-long-time-how-do-i-delete-it/17199/7 "2016-06-20T06:48:21Z")

</div>

Rolling restart as suggested in [Snapshot operation stuck IN\_PROGRESS, delete command doesn't work](https://discuss.elastic.co/t/snapshot-operation-stuck-in-progress-delete-command-doesnt-work/36951) solved the issue.

---

<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:42pm UTC](https://discuss.elastic.co/t/snapshot-in-progress-for-long-time-how-do-i-delete-it/17199/8 "2017-07-05T22:42:27Z")

</div>


