# Error when recovering snapshot

**URL:** https://discuss.elastic.co/t/error-when-recovering-snapshot/350640
**Category:** Elasticsearch
**Created:** [January 9, 2024, 9:47am UTC](https://discuss.elastic.co/t/error-when-recovering-snapshot/350640 "2024-01-09T09:47:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Epic555](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/epic555/32/130610_2.png) [@Epic555](https://discuss.elastic.co/u/Epic555)
#### Post date: [January 9, 2024, 9:47am UTC](https://discuss.elastic.co/t/error-when-recovering-snapshot/350640/1 "2024-01-09T09:47:17Z")

</div>

I created a snapshot with curl from 1 cluster. When I try to recover a snapshot with curl on another cluster, 2nd Cluster cannot allocate all indices. Cluster 1 has 2 nodes, cluster 2 has 1 node. I have a file "snap-hb19TYAWQ1SFZvTzd-2AkA.dat" in snapshot folder. With cmd "\_cluster/allocation/explain" I can see a problem. How to solve it?

```auto
nested: IndexShardRestoreFailedException[failed to restore snapshot [05_01_24/hb19TYAWQ1SFZvTzd-2AkA]]; 
nested: SnapshotMissingException[[my_repo:05_01_24/hb19TYAWQ1SFZvTzd-2AkA] is missing]; 
nested: NoSuchFileException[blob object [snap-hb19TYAWQ1SFZvTzd-2AkA.dat] not found]; 
- manually close or delete the index [tasklist-task-8.2.3_2023-11-30] in order to retry to restore the snapshot again or use the reroute API to force the allocation of an empty primary shard

```

---

<div class="post-metadata">

### Author: ![yago82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yago82/32/97755_2.png) [@yago82](https://discuss.elastic.co/u/yago82)
#### Post date: [January 14, 2024, 9:56am UTC](https://discuss.elastic.co/t/error-when-recovering-snapshot/350640/2 "2024-01-14T09:56:49Z")

</div>

> [@Epic555](#):
>
> I created a snapshot with curl from 1 cluster. When I try to recover a snapshot with curl on another cluster, 2nd Cluster cannot allocate all indices. Cluster 1 has 2 nodes, cluster 2 has 1 node. I have a file "snap-hb19TYAWQ1SFZvTzd-2AkA.dat" in snapshot folder. With cmd "\_cluster/allocation/explain" I can see a problem. How to solve it?
> 
> ```auto
> nested: IndexShardRestoreFailedException[failed to restore snapshot [05_01_24/hb19TYAWQ1SFZvTzd-2AkA]]; 
> nested: SnapshotMissingException[[my_repo:05_01_24/hb19TYAWQ1SFZvTzd-2AkA] is missing]; 
> nested: NoSuchFileException[blob object [snap-hb19TYAWQ1SFZvTzd-2AkA.dat] not found]; 
> - manually close or delete the index [tasklist-task-8.2.3_2023-11-30] in order to retry to restore the snapshot again or use the reroute API to force the allocation of an empty primary shard
> 
> ```

Hi,

If the snapshot is complete and the file is present in the repository, there might be an issue with the second cluster's access to the repository. Make sure that the second cluster has the correct permissions to read from the repository and that the repository is correctly configured in the second cluster.

Regards

---

<div class="post-metadata">

### Author: ![Epic555](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/epic555/32/130610_2.png) [@Epic555](https://discuss.elastic.co/u/Epic555)
#### Post date: [January 15, 2024, 10:27am UTC](https://discuss.elastic.co/t/error-when-recovering-snapshot/350640/3 "2024-01-15T10:27:44Z")

</div>

everything is OK with 2nd cluster repo, it is url type, i can see a snapshot in repo

---

<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: [February 12, 2024, 10:28am UTC](https://discuss.elastic.co/t/error-when-recovering-snapshot/350640/4 "2024-02-12T10:28:10Z")

</div>

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