# How to skip errors on snapshots

**URL:** <https://discuss.elastic.co/t/how-to-skip-errors-on-snapshots/302295>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [April 13, 2022, 6:41am UTC](https://discuss.elastic.co/t/how-to-skip-errors-on-snapshots/302295 "2022-04-13T06:41:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![views\_eos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/views_eos/32/104325_2.png) [@views\_eos](https://discuss.elastic.co/u/views_eos)\
**Post date:** [April 13, 2022, 6:41am UTC](https://discuss.elastic.co/t/how-to-skip-errors-on-snapshots/302295/1 "2022-04-13T06:41:12Z")

</div>

I was backing up the Snapshot data through NFS, but the NFS connection was cut off, so I received an error as below

```auto
curl -H 'content-type: application/JSON' -XPUT "http://localhost:39023/_snapshot/fs_snapshot/$TARGET_LOG?pretty=true&wait_for_completion=false" -d '{
"indices": "'"$TARGET_LOG"'",
"compress": true,
"ignore_unavailable": true,
"include_global_state": false
}'

{
  "snapshot" : {
    "snapshot" : "click_log_20220412",
    "uuid" : "eJOTYNW0123449B7uzBA",
    "version_id" : 7040099,
    "version" : "7.4.0",
    "indices" : [
      "click_log_20220412"
    ],
    "include_global_state" : false,
    "state" : "FAILED",
    "reason" : "Snapshot was aborted by deletion",
    "start_time" : "2022-04-12T23:57:41.647Z",
    "start_time_in_millis" : 1649807861647,
    "end_time" : "2022-04-13T00:15:02.015Z",
    "end_time_in_millis" : 1649808902015,
    "duration_in_millis" : 1040368,
    "failures" : [
      {
        "index" : "click_log_20220412",
        "index_uuid" : "click_log_20220412",
        "shard_id" : 0,
        "reason" : "aborted by snapshot deletion",
        "node_id" : "bdos233Svp1231qlIdw",
        "status" : "INTERNAL_SERVER_ERROR"
      }
    ],
    "shards" : {
      "total" : 1,
      "failed" : 1,
      "successful" : 0
    }
  }
}

```

**So . Elasticsearch command (other indexs insert, select) via CURL did not work**

It didn't work until the nfs-server was restarted

How to skip errors on snapshots?

Regards.

---

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [April 13, 2022, 4:23pm UTC](https://discuss.elastic.co/t/how-to-skip-errors-on-snapshots/302295/2 "2022-04-13T16:23:22Z")

</div>

In all my snapshots, when it fails the operation is terminated.  
I believe this is a way to ensure the integrity of the snapshot.

> **[Snapshot and restore | Elasticsearch Guide \[8.1\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshot-restore.html#snapshots-shard-allocation)**

---

<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:** [May 11, 2022, 4:23pm UTC](https://discuss.elastic.co/t/how-to-skip-errors-on-snapshots/302295/3 "2022-05-11T16:23:43Z")

</div>

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