# Snapshot fails if previously unknown index exists?

**URL:** <https://discuss.elastic.co/t/snapshot-fails-if-previously-unknown-index-exists/25792>\
**Category:** Elasticsearch\
**Created:** [July 17, 2015, 11:27am UTC](https://discuss.elastic.co/t/snapshot-fails-if-previously-unknown-index-exists/25792 "2015-07-17T11:27:48Z")\
**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:** [July 17, 2015, 11:27am UTC](https://discuss.elastic.co/t/snapshot-fails-if-previously-unknown-index-exists/25792/1 "2015-07-17T11:27:48Z")

</div>

Trying to create a new snapshot (not first) from an existing ES 1.5.2 cluster, but snapshot mechanism failed on two indexes which were previously not existing with FileNotFoundException ... is this intentionally or an error? If this means it is intentionally, does this mean that snapshots cannot be created for newly added indexes in the same repository?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 18, 2015, 3:35am UTC](https://discuss.elastic.co/t/snapshot-fails-if-previously-unknown-index-exists/25792/2 "2015-07-18T03:35:35Z")

</div>

Can you provide the complete response you got?

---

<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:** [July 20, 2015, 8:41am UTC](https://discuss.elastic.co/t/snapshot-fails-if-previously-unknown-index-exists/25792/3 "2015-07-20T08:41:11Z")

</div>

Sure (just changed index name):

{  
"node\_id": "8uMlgYS0R1OSya9\_H5xotg",  
"index": "my\_new\_index",  
"reason": "IndexShardSnapshotFailedException[[my\_new\_index][4] Failed to perform snapshot (index files)]; nested: FileNotFoundException[/snapshots/backup/indices/my\_new\_index/4/\_\_0 (Permission denied)]; ",  
"shard\_id": 4,  
"status": "INTERNAL\_SERVER\_ERROR"  
}

- /snapshot/backup exists and is writable from all nodes (Data & Master) (including my\_new\_index/4/ which makes the Permission denied a bit curious), same failure on all shards
- /snapshots/backup/indices/my\_new\_index/4/ was created (with correct permissions), just file does not exist (or was not write able)
- All already existing indexes were correctly handled

First new index since some time, last snapshot before was done with 1.5.1.

---

<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 6, 2017, 12:00am UTC](https://discuss.elastic.co/t/snapshot-fails-if-previously-unknown-index-exists/25792/4 "2017-07-06T00:00:25Z")

</div>


