# Error 500 while creating s3 snapshot repo

**URL:** <https://discuss.elastic.co/t/error-500-while-creating-s3-snapshot-repo/267239>\
**Category:** Elasticsearch\
**Created:** [March 15, 2021, 9:27am UTC](https://discuss.elastic.co/t/error-500-while-creating-s3-snapshot-repo/267239 "2021-03-15T09:27:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aditiparnami](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@aditiparnami](https://discuss.elastic.co/u/aditiparnami)\
**Post date:** [March 15, 2021, 9:27am UTC](https://discuss.elastic.co/t/error-500-while-creating-s3-snapshot-repo/267239/1 "2021-03-15T09:27:39Z")

</div>

I'm getting HTTP 500 status whenever I try to create the snapshot repository on an AWS S3 bucket.

I have updated the AWS access key, secret key, and session token into the elasticsearch-keystore and reloaded the secure setting too.

**Request:**  
curl -XPUT '[http://localhost:9200/\_snapshot/XXX](http://localhost:9200/_snapshot/XXX)' -H 'Content-Type: application/json' -d '  
{  
"type": "S3",  
"settings": {  
"bucket" : "XXX",  
"endpoint" : "XXX",  
"base\_path" : "XXX",  
"server\_side\_encryption" : "true"  
}  
}'

**Response:**  
{  
"error": {  
"root\_cause": [  
{  
"type": "repository\_verification\_exception",  
"reason": "[XXX] path [XXX] is not accessible on master node"  
}  
],  
"type": "repository\_verification\_exception",  
"reason": "[XXX] path [XXX] is not accessible on master node",  
"caused\_by": {  
"type": "i\_o\_exception",  
"reason": "Unable to upload object [] using a single upload",  
"caused\_by": {  
"type": "amazon\_s3\_exception",  
"reason": "amazon\_s3\_exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: XXX; S3 Extended Request ID: XXX)"  
}  
}  
},  
"status": 500  
}

Do you have any idea, what is the problem?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 17, 2021, 8:16am UTC](https://discuss.elastic.co/t/error-500-while-creating-s3-snapshot-repo/267239/2 "2021-03-17T08:16:59Z")

</div>

Did you install and configure the S3 plugin on ALL nodes in the cluster, including dedicated master nodes?

---

<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:** [April 14, 2021, 8:17am UTC](https://discuss.elastic.co/t/error-500-while-creating-s3-snapshot-repo/267239/3 "2021-04-14T08:17:41Z")

</div>

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