# Recurring errors when backing up to GCS - FileAlreadyExistsException

**URL:** <https://discuss.elastic.co/t/recurring-errors-when-backing-up-to-gcs-filealreadyexistsexception/275205>\
**Category:** Elasticsearch\
**Tags:** slm-snapshot-lifecycle-management, snapshot-and-restore\
**Created:** [June 7, 2021, 9:07pm UTC](https://discuss.elastic.co/t/recurring-errors-when-backing-up-to-gcs-filealreadyexistsexception/275205 "2021-06-07T21:07:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hub](https://avatars.discourse-cdn.com/v4/letter/h/ea666f/32.png) [@hub](https://discuss.elastic.co/u/hub)\
**Post date:** [June 7, 2021, 9:07pm UTC](https://discuss.elastic.co/t/recurring-errors-when-backing-up-to-gcs-filealreadyexistsexception/275205/1 "2021-06-07T21:07:18Z")

</div>

Hello, I have a recurring errors when Im doing snapshot to GCS bucket:

```auto
{\"type\":\"index_shard_snapshot_failed_exception\",\"reason\":\"IndexShardSnapshotFailedException[Failed to perform snapshot (index files)]; nested: FileAlreadyExistsException[xyz/indices/tTYieIisQdCeGLfPnH6NKQ/2/__HRq6f247SmW_OPCTm2KdhA: Precondition Failed];

```

Generally I get this error sometimes - every couple of days,

I have a couple of Elastic clusters next to each other that are doing snapshot to the same bucket just different base path. Usually the error occurs for several shards during a single erroneous snapshot - for example for 3 of 1640

Cluster build - 3 master nodes, 3 client nodes, 10 data nodes.

```auto
curl -X GET "localhost:9200/_slm/policy?pretty"
{
  "dc0001" : {
    "version" : 1,
    "modified_date_millis" : 1621756086856,
    "policy" : {
      "name" : "<dc-0001-snap-{now/d}>",
      "schedule" : "0 0 0 * * ?",
      "repository" : "dc0001",
      "config" : {
        "indices" : [
          "*"
        ]
      },
      "retention" : {
        "expire_after" : "0ms",
        "min_count" : 7,
        "max_count" : 7
      }
    },

```

Repository-gcs plugin version: 7.5.1

Elasticsearch version: 7.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 5, 2021, 9:08pm UTC](https://discuss.elastic.co/t/recurring-errors-when-backing-up-to-gcs-filealreadyexistsexception/275205/2 "2021-07-05T21:08:02Z")

</div>

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