# How can I Recover from Snapshot Exception?

**URL:** <https://discuss.elastic.co/t/how-can-i-recover-from-snapshot-exception/76170>\
**Category:** Elasticsearch\
**Created:** [February 23, 2017, 8:21am UTC](https://discuss.elastic.co/t/how-can-i-recover-from-snapshot-exception/76170 "2017-02-23T08:21:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![crickes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crickes/32/18009_2.png) [@crickes](https://discuss.elastic.co/u/crickes)\
**Post date:** [February 23, 2017, 8:21am UTC](https://discuss.elastic.co/t/how-can-i-recover-from-snapshot-exception/76170/1 "2017-02-23T08:21:35Z")

</div>

I take a snapshot of a cluster every night using Curator to snapshot the last 7 days of indices. I am doing this in preparation for an upgrade from ES2.3 to ES5.2 which is scheduled for this evening so wanted to have a back up in case it goes wrong. This morning I check the snapshot and get the following error when trying to list the snapshots:

```
{
   "error": {
  "root_cause": [
     {
        "type": "snapshot_exception",
        "reason": "[sip_cdr:sip-cdr-20170223031001] Snapshot could not be read"
     }
  ],
  "type": "snapshot_exception",
  "reason": "[sip_cdr:sip-cdr-20170223031001] Snapshot could not be read",
  "caused_by": {
     "type": "illegal_state_exception",
     "reason": "class org.apache.lucene.store.BufferedChecksumIndexInput cannot seek backwards (pos=-16 getFilePointer()=0)"
  }
   },
   "status": 500
}

```

It looks like there was an issue with the last snapshot attempt this morning. How can I recover from this without trashing the 'good' snapshots in my repository?

---

<div class="post-metadata">

**Author:** ![crickes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crickes/32/18009_2.png) [@crickes](https://discuss.elastic.co/u/crickes)\
**Post date:** [February 23, 2017, 8:25am UTC](https://discuss.elastic.co/t/how-can-i-recover-from-snapshot-exception/76170/2 "2017-02-23T08:25:26Z")

</div>

Sorry, I panicked. Turns put I can just delete the effected snapshot.

---

<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:** [March 23, 2017, 8:25am UTC](https://discuss.elastic.co/t/how-can-i-recover-from-snapshot-exception/76170/3 "2017-03-23T08:25:33Z")

</div>

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