# Failed to update snapshot in repository

**URL:** https://discuss.elastic.co/t/failed-to-update-snapshot-in-repository/300879
**Category:** Elasticsearch
**Tags:** snapshot-and-restore
**Created:** [March 28, 2022, 5:06pm UTC](https://discuss.elastic.co/t/failed-to-update-snapshot-in-repository/300879 "2022-03-28T17:06:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![alicango](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alicango/32/84498_2.png) [@alicango](https://discuss.elastic.co/u/alicango)
#### Post date: [March 28, 2022, 5:06pm UTC](https://discuss.elastic.co/t/failed-to-update-snapshot-in-repository/300879/1 "2022-03-28T17:06:01Z")

</div>

I have a cluster that has 3 masters, 2 hot, 2 warms, 2 colds nodes. I am trying to take a snapshot but I got this error;

```auto
"type": "snapshot_exception",
  "reason": "[cul-backup:cul-snap-2022.03.28-xxxxxxxxx/xxxxxxxxxx] failed to update snapshot in repository",
  "caused_by": {
    "type": "repository_exception",
    "reason": "[cul-backup] concurrent modification of the index-N file, expected current generation [1] but it was not found in the repository. The last cluster to write to this repository was [_na_] at generation [-1].
  "stack_trace": "RepositoryException[[cul-backup] concurrent modification of the index-N file, expected current generation [1] but it was not found in the repository. The last cluster to write to this repository was [_na_] at generation [-1].]\n\tat org.elasticsearch.repositories.blobstore.BlobStoreRepository.ensureSafeGenerationExists(BlobStoreRepository.java:2445"

```

I am using **Shared file system** that is **Type: “fs”** and snapshot data is being created under the **path.repo** successfully;

```auto
ls /mnt/data/sharing/es_backup/cul_snapshot/    
indices meta-xxxxxxxx.dat snap-xxxxxxxxxx.dat

```

Also, Repository Verification status is connected for all cluster's nodes

I have also deleted the repository and recreated again to solve this issue but it didn't work.  
How can I solve this issue?

---

<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: [April 25, 2022, 5:06pm UTC](https://discuss.elastic.co/t/failed-to-update-snapshot-in-repository/300879/2 "2022-04-25T17:06:15Z")

</div>

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