Error while creating snapshot to s3 repository

I've created s3 snapshot repository

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 :

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
      }
    }
  ]
} 

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

Executed :

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

POST _nodes/reload_secure_settings

And it worked

4 Likes

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