# Elasticsearch snapshot/restore to s3

**URL:** <https://discuss.elastic.co/t/elasticsearch-snapshot-restore-to-s3/357132>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [April 10, 2024, 11:24am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-restore-to-s3/357132 "2024-04-10T11:24:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kannetisiva](https://avatars.discourse-cdn.com/v4/letter/k/7bcc69/32.png) [@kannetisiva](https://discuss.elastic.co/u/kannetisiva)\
**Post date:** [April 10, 2024, 11:24am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-restore-to-s3/357132/1 "2024-04-10T11:24:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [April 11, 2024, 5:03am UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-restore-to-s3/357132/2 "2024-04-11T05:03:21Z")

</div>

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.
