Elasticsearch snapshot/restore to s3

HTTP/1.1 500 Internal Server Error
X-elastic-product: Elasticsearch
content-type: application/json;charset=utf-8
content-length: 654

{"error":{"root_cause":[{"type":"repository_exception","reason":"[s3_repo] Could not determine repository generation from root blobs"}],"type":"repository_exception","reason":"[s3_repo] Could not determine repository generation from root blobs","caused_by":{"type":"i_o_exception","reason":"Exception when listing blobs by prefix [index-]","caused_by":{"type":"amazon_s3_exception","reason":"amazon_s3_exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: 58JE2XMAF69KGYXR; S3 Extended Request ID: iSemTy/64sOH7UQlTfWq+6ocvdrJfmlzxOj7qTW8oydrz78/Qy+Hnjpc3vlC8l916Y1ym7sa0yc=; Proxy: null)"}}},"status":500}

i am getting above issue ,could you suggest me on this.

Can you please take the time to provide more detail in your post.

  • How did you set up the repository
  • Has it ever worked, or was this the first time testing it
  • Were there any logs
  • etc.

It looks like the repository has been configured with an access id that does not have permission to do all the things that Elasticsearch needs.