# Snapshot operation stuck IN\_PROGRESS, delete command doesn't work

**URL:** <https://discuss.elastic.co/t/snapshot-operation-stuck-in-progress-delete-command-doesnt-work/36951>\
**Category:** Elasticsearch\
**Created:** [December 11, 2015, 8:13am UTC](https://discuss.elastic.co/t/snapshot-operation-stuck-in-progress-delete-command-doesnt-work/36951 "2015-12-11T08:13:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lrt\_rmeindl](https://avatars.discourse-cdn.com/v4/letter/l/dc4da7/32.png) [@lrt\_rmeindl](https://discuss.elastic.co/u/lrt_rmeindl)\
**Post date:** [December 11, 2015, 8:13am UTC](https://discuss.elastic.co/t/snapshot-operation-stuck-in-progress-delete-command-doesnt-work/36951/1 "2015-12-11T08:13:29Z")

</div>

A snapshot process is stuck in "IN\_PROGRESS" although the status of the snapshot is already "ABORTED" ... canceling the snapshot or generating a new one is not possible any more.  
Tried already the cleanup script from [https://github.com/imotov/elasticsearch-snapshot-cleanup](https://github.com/imotov/elasticsearch-snapshot-cleanup), no change.

The error was described for versions before 1.5.x but seems still exists ... so

- is there a possibility to resolve this issue without restart?
- will be a rolling restart (first master, then data nodes) resolve that issue?

Using Elasticsearch 1.5.2

---

<div class="post-metadata">

**Author:** ![lrt\_rmeindl](https://avatars.discourse-cdn.com/v4/letter/l/dc4da7/32.png) [@lrt\_rmeindl](https://discuss.elastic.co/u/lrt_rmeindl)\
**Post date:** [December 15, 2015, 9:05am UTC](https://discuss.elastic.co/t/snapshot-operation-stuck-in-progress-delete-command-doesnt-work/36951/2 "2015-12-15T09:05:36Z")

</div>

Anyone with same issue and experience that rolling restart solves the issue (aka clean the incorrect snapshot state)?

---

<div class="post-metadata">

**Author:** ![casieowen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casieowen/32/8734_2.png) [@casieowen](https://discuss.elastic.co/u/casieowen)\
**Post date:** [November 4, 2016, 6:20pm UTC](https://discuss.elastic.co/t/snapshot-operation-stuck-in-progress-delete-command-doesnt-work/36951/3 "2016-11-04T18:20:38Z")

</div>

Hi --

I've seen this a couple of times, and have resolved it by running GET /\_snapshot/backup/\_status to get the details of the snapshot that is stuck in progress state and searching the output for "stage": "INIT". In each case, I found a shard in initializing (INIT) stage for one of the indices in the stuck snapshot. You'll see something like:

"your\_index"  
"3": {  
"stage": "INIT",  
"stats": {  
"number\_of\_files": 0,  
"processed\_files": 0,  
"total\_size\_in\_bytes": 0,  
"processed\_size\_in\_bytes": 0,  
"start\_time\_in\_millis": 1478143477100,  
"time\_in\_millis": 0  
},  
"node": "cwUM4qYuRxOpeOT51tyzkA"

You can then run Get \_nodes/stats to get the friendly name associated to that node value, and then restart only that node. That has worked twice for me.

---

<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:06pm UTC](https://discuss.elastic.co/t/snapshot-operation-stuck-in-progress-delete-command-doesnt-work/36951/4 "2017-07-05T22:06:28Z")

</div>


