# Curator snapshot list is not accessible after deletion of some files accidentally

**URL:** <https://discuss.elastic.co/t/curator-snapshot-list-is-not-accessible-after-deletion-of-some-files-accidentally/191371>\
**Category:** Elasticsearch\
**Tags:** curator\
**Created:** [July 19, 2019, 10:32am UTC](https://discuss.elastic.co/t/curator-snapshot-list-is-not-accessible-after-deletion-of-some-files-accidentally/191371 "2019-07-19T10:32:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![amruta.mohite](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@amruta.mohite](https://discuss.elastic.co/u/amruta.mohite)\
**Post date:** [July 19, 2019, 10:32am UTC](https://discuss.elastic.co/t/curator-snapshot-list-is-not-accessible-after-deletion-of-some-files-accidentally/191371/1 "2019-07-19T10:32:14Z")

</div>

> [@Elasticsearch Snapshot Error](https://discuss.elastic.co/t/elasticsearch-snapshot-error/149738):
>
> Questions is similar to Error [Missing Snapshot Error](https://discuss.elastic.co/t/missing-snapshot-error/134485/4) We investigated into this, looks like upgrade Elasticsearch from 5 to 6 broke it. Is there any way to fix this now? If not able to fix it, we want to use curator to delete some of those old snapshots but unable to do so. Error: Snapshot does not exist. Is there solution to skip it?

> [@Missing Snapshot Error](https://discuss.elastic.co/t/missing-snapshot-error/134485):
>
> I'm trying to use curator to delete all snapshots older then a 100 days in my repository. I noticed it was failing with the error message: Failed to complete action: delete\_snapshots. \<class 'curator.exceptions.FailedExecution'\>: Unable to get snapshot information from repository: dcselasticsnapshot. Error: TransportError(500, 'snapshot\_exception', '[dcselasticsnapshot:citydirectory\_ocrpages/XGftDvzIRPGe\_wMfN6FsSw] is missing') Looking into this further, I went and tried to list all snapshots …

I am currently facing same issue in my ELK cluster. The cause which made this happen is I accidentally deleted some files(applied glacier life-cycle policy to delete data after some interval) from S3 bucket and then my curator repository stopped working and hence I am not able to list the snapshots and restore indices as well.  
I can't afford to start afresh with new bucket as my application is on production environment and I need data now and then.

Please give me a way so that I could be able to access my repository without losing data.  
I tried every possible way to access it like trying to delete that specific snapshot and installing curator cli and adding delete\_snapshot in action file but none of this helping.

Please help me as soon as possible.

---

<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:** [July 19, 2019, 10:40am UTC](https://discuss.elastic.co/t/curator-snapshot-list-is-not-accessible-after-deletion-of-some-files-accidentally/191371/2 "2019-07-19T10:40:08Z")

</div>

> [@amruta.mohite](#):
>
> I accidentally deleted some files(applied glacier life-cycle policy to delete data after some interval) from S3 bucket

I hate to be the bearer of bad news here, but if you accidentally deleted repository metadata, there is no way to get it back of which I am aware.

The metadata that was deleted (not knowing everything missing, but guessing) contained the information concerning which indices contained which segments, and which snapshots contained which indices (and their associated segments). **If that data is gone, there is no way to re-create it.** Even if the snapshotted data (the index segments themselves) is intact, it is useless without the metadata that allows Elasticsearch to reconstruct them into a viable index.

Now, based on what I'm seeing in this message:

> [@amruta.mohite](#):
>
> ```auto
> Error: TransportError(500, 'snapshot_exception', '[dcselasticsnapshot:citydirectory_ocrpages/XGftDvzIRPGe_wMfN6FsSw] is missing'
> 
> ```

You appear to have deleted some of your segment data. The snapshot metadata may actually be intact, but files it requires to be able to reconstruct certain indices are gone. You can still restore from this repository, but it will be missing some data (how much depends on what, exactly, was deleted). You only need to set `partial: true` during a restore for this to work. Unfortunately, you will not likely be able to snapshot to this repository in this state. It won't let you because it's not healthy.

Potential solutions include restoring what data you have to a temporary cluster and re-snapshotting it to a re-made repository.

---

<div class="post-metadata">

**Author:** ![amruta.mohite](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@amruta.mohite](https://discuss.elastic.co/u/amruta.mohite)\
**Post date:** [July 22, 2019, 6:21am UTC](https://discuss.elastic.co/t/curator-snapshot-list-is-not-accessible-after-deletion-of-some-files-accidentally/191371/3 "2019-07-22T06:21:51Z")

</div>

Thank you for the responding @theuntergeek.  
I will create a new repository and the data available will use in next one.

Still one last question, Can we manually delete snapshot metadata of certain age so that it doesn't look for those data anymore?

I have tried with delete snapshot older than specific date but same error I was getting with command, but if any other way manually or through commands, it will be a great help.

---

<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:** [July 23, 2019, 6:55am UTC](https://discuss.elastic.co/t/curator-snapshot-list-is-not-accessible-after-deletion-of-some-files-accidentally/191371/4 "2019-07-23T06:55:05Z")

</div>

> [@amruta.mohite](#):
>
> Can we manually delete snapshot metadata of certain age so that it doesn't look for those data anymore?

Only by deleting old snapshots will older metadata also be deleted. In your case, because of the missing data, this does not appear to be possible using the approved methods (API calls).

---

<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 20, 2019, 6:59am UTC](https://discuss.elastic.co/t/curator-snapshot-list-is-not-accessible-after-deletion-of-some-files-accidentally/191371/5 "2019-08-20T06:59:15Z")

</div>

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