# Error while creating snapshot to s3 repository

**URL:** <https://discuss.elastic.co/t/error-while-creating-snapshot-to-s3-repository/176731>\
**Category:** Elasticsearch\
**Created:** [April 13, 2019, 11:08am UTC](https://discuss.elastic.co/t/error-while-creating-snapshot-to-s3-repository/176731 "2019-04-13T11:08:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranay\_sankpal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pranay_sankpal/32/44084_2.png) [@pranay\_sankpal](https://discuss.elastic.co/u/pranay_sankpal)\
**Post date:** [April 13, 2019, 11:08am UTC](https://discuss.elastic.co/t/error-while-creating-snapshot-to-s3-repository/176731/1 "2019-04-13T11:08:14Z")

</div>

I've created s3 snapshot repository

```auto
PUT _snapshot/s3_repository/snap1

{
   "indices": "pe-queue-jobs-new1-2019.03.30",
   "ignore_unavailable": true,
   "include_global_state": false
}

```

I'm getting the following error :

```auto
Error ::
{
  "snapshots" : [
    {
      "snapshot" : "snap1",
      "uuid" : "jlv_9oXURl6ke1cjvrujtw",
      "version_id" : 6060299,
      "version" : "6.6.2",
      "indices" : [
        "pe-queue-jobs-new1-2019.03.30"
      ],
      "include_global_state" : false,
      "state" : "PARTIAL",
      "start_time" : "2019-04-13T10:57:47.302Z",
      "start_time_in_millis" : 1555153067302,
      "end_time" : "2019-04-13T10:58:31.761Z",
      "end_time_in_millis" : 1555153111761,
      "duration_in_millis" : 44459,
      "failures" : [
        {
          "index" : "pe-queue-jobs-new1-2019.03.30",
          "index_uuid" : "pe-queue-jobs-new1-2019.03.30",
          "shard_id" : 0,
          "reason" : "IndexShardSnapshotFailedException[failed to list blobs]; nested: IOException[Exception when listing blobs by prefix [null]]; nested: SdkClientException[The requested metadata is not found at http://169.254.169.254/latest/meta-data/iam/security-credentials/]; ",
          "node_id" : "q2E54MiNS6WirPkdsMTqdw",
          "status" : "INTERNAL_SERVER_ERROR"
        },
        {
          "index" : "pe-queue-jobs-new1-2019.03.30",
          "index_uuid" : "pe-queue-jobs-new1-2019.03.30",
          "shard_id" : 2,
          "reason" : "IndexShardSnapshotFailedException[failed to list blobs]; nested: IOException[Exception when listing blobs by prefix [null]]; nested: SdkClientException[The requested metadata is not found at http://169.254.169.254/latest/meta-data/iam/security-credentials/]; ",
          "node_id" : "q2E54MiNS6WirPkdsMTqdw",
          "status" : "INTERNAL_SERVER_ERROR"
        },
        {
          "index" : "pe-queue-jobs-new1-2019.03.30",
          "index_uuid" : "pe-queue-jobs-new1-2019.03.30",
          "shard_id" : 1,
          "reason" : "IndexShardSnapshotFailedException[failed to list blobs]; nested: IOException[Exception when listing blobs by prefix [null]]; nested: SdkClientException[The requested metadata is not found at http://169.254.169.254/latest/meta-data/iam/security-credentials/]; ",
          "node_id" : "q2E54MiNS6WirPkdsMTqdw",
          "status" : "INTERNAL_SERVER_ERROR"
        }
      ],
      "shards" : {
        "total" : 5,
        "failed" : 3,
        "successful" : 2
      }
    }
  ]
} 

```

---

<div class="post-metadata">

**Author:** ![pranay\_sankpal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pranay_sankpal/32/44084_2.png) [@pranay\_sankpal](https://discuss.elastic.co/u/pranay_sankpal)\
**Post date:** [April 13, 2019, 11:41am UTC](https://discuss.elastic.co/t/error-while-creating-snapshot-to-s3-repository/176731/2 "2019-04-13T11:41:07Z")

</div>

Worked... seems like issue while setting AWS secret key and access key.

Executed :

```auto
bin/elasticsearch-keystore remove s3.client.default.access_key
bin/elasticsearch-keystore remove s3.client.default.secret_key

bin/elasticsearch-keystore add s3.client.default.access_key
bin/elasticsearch-keystore add s3.client.default.secret_key

```

and

```auto
POST _nodes/reload_secure_settings

```

And it worked

---

<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, 2019, 11:41am UTC](https://discuss.elastic.co/t/error-while-creating-snapshot-to-s3-repository/176731/3 "2019-05-11T11:41:07Z")

</div>

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