# S3\_repository error

**URL:** <https://discuss.elastic.co/t/s3-repository-error/249340>\
**Category:** Elasticsearch\
**Created:** [September 21, 2020, 10:42am UTC](https://discuss.elastic.co/t/s3-repository-error/249340 "2020-09-21T10:42:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![prashanth\_sri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashanth_sri/32/75929_2.png) [@prashanth\_sri](https://discuss.elastic.co/u/prashanth_sri)\
**Post date:** [September 21, 2020, 10:42am UTC](https://discuss.elastic.co/t/s3-repository-error/249340/1 "2020-09-21T10:42:53Z")

</div>

{"error":{"root\_cause":[{"type":"repository\_exception","reason":"[s3\_repository] could not read repository data from index blob"}],  
"type":"repository\_exception","reason":"[s3\_repository] could not read repository data from index blob","caused\_by":  
{"type":"i\_o\_exception","reason":"Exception when listing blobs by prefix [index-]",  
"caused\_by":{"type":"amazon\_s3\_exception","reason":"amazon\_s3\_exception: The AWS Access Key Id you provided does not exist in our records. (Service: Amazon S3; Status Code: 403; Error Code: InvalidAccessKeyId;  
can any one help regarding this error

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [September 21, 2020, 11:40am UTC](https://discuss.elastic.co/t/s3-repository-error/249340/2 "2020-09-21T11:40:59Z")

</div>

See part of the error message

> The AWS Access Key Id you provided does not exist in our records

Seems, that your credentials are not correct tome.

---

<div class="post-metadata">

**Author:** ![prashanth\_sri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashanth_sri/32/75929_2.png) [@prashanth\_sri](https://discuss.elastic.co/u/prashanth_sri)\
**Post date:** [September 22, 2020, 3:23pm UTC](https://discuss.elastic.co/t/s3-repository-error/249340/3 "2020-09-22T15:23:43Z")

</div>

we recently changed aws access keys , before it was working fine .  
after changing my keys , i followed this steps to update keys .  
sudo bin/elasticsearch-keystore remove s3.client.default.access\_key

sudo bin/elasticsearch-keystore remove s3.client.default.secret\_key

sudo bin/elasticsearch-keystore create

sudo bin/elasticsearch-keystore add s3.client.default.access\_key

sudo bin/elasticsearch-keystore add s3.client.default.secret\_key

by using above commands i updated my keys , after that i am getting error as

org.elasticsearch.repositories.RepositoryException: [s3\_repository] could not read repository data from index blob

org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper: amazon\_s3\_exception: The AWS Access Key Id you provided does not exist in our records. (Service: Amazon S3; Status Code: 403; Error Code: InvalidAccessKeyId

can any one tell me is anything i am missing here

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [September 22, 2020, 4:18pm UTC](https://discuss.elastic.co/t/s3-repository-error/249340/4 "2020-09-22T16:18:45Z")

</div>

Have you done this on all your nodes? Have you restarted Elasticsearch on all your nodes or reloaded secure settings?

---

<div class="post-metadata">

**Author:** ![prashanth\_sri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashanth_sri/32/75929_2.png) [@prashanth\_sri](https://discuss.elastic.co/u/prashanth_sri)\
**Post date:** [September 23, 2020, 3:54am UTC](https://discuss.elastic.co/t/s3-repository-error/249340/5 "2020-09-23T03:54:57Z")

</div>

yes , i restarted all nodes , and reloaded secure settings  
POST \_nodes/reload\_secure\_settings  
i used above command also

---

<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:** [October 21, 2020, 3:55am UTC](https://discuss.elastic.co/t/s3-repository-error/249340/6 "2020-10-21T03:55:06Z")

</div>

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