# Response 500 when I create a snapshot repository

**URL:** https://discuss.elastic.co/t/response-500-when-i-create-a-snapshot-repository/376478
**Category:** Kibana
**Tags:** snapshot-and-restore
**Created:** [March 27, 2025, 1:26pm UTC](https://discuss.elastic.co/t/response-500-when-i-create-a-snapshot-repository/376478 "2025-03-27T13:26:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mahendra5.kumawat](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@mahendra5.kumawat](https://discuss.elastic.co/u/mahendra5.kumawat)
#### Post date: [March 27, 2025, 1:26pm UTC](https://discuss.elastic.co/t/response-500-when-i-create-a-snapshot-repository/376478/1 "2025-03-27T13:26:08Z")

</div>

request body:

{  
"type":"s3",  
"settings":{  
"endpoint":"[xxx.com](http://xxx.com)",  
"bucket":"my\_bucket",  
"client":"oss\_dev"  
}  
}  
I have add keystore:

elasticsearch-keystore add s3.client.oss\_dev.access\_key  
elasticsearch-keystore add s3.client.oss\_dev.secret\_key

response:

{  
"error":  
{"root\_cause": [  
{  
"type":"repository\_exception",  
"reason":"[dev\_snapshot\_repository] Could not determine repository generation from root blobs"}],  
"type":"repository\_exception",  
"reason":"[dev\_snapshot\_repository] Could not determine repository generation from root blobs",  
"caused\_by":{"type":"illegal\_argument\_exception","reason":"Unknown s3 client name [oss\_dev]. Existing client configs: default"}  
},  
"status":500

---

<div class="post-metadata">

### Author: ![mahendra5.kumawat](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@mahendra5.kumawat](https://discuss.elastic.co/u/mahendra5.kumawat)
#### Post date: [March 31, 2025, 6:30am UTC](https://discuss.elastic.co/t/response-500-when-i-create-a-snapshot-repository/376478/2 "2025-03-31T06:30:34Z")

</div>

hi Teams,  
please help me regarding this.

i want to connect from same cluster with two s3 client , how can we do it? i am not able to find it on google.

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [March 31, 2025, 11:42am UTC](https://discuss.elastic.co/t/response-500-when-i-create-a-snapshot-repository/376478/3 "2025-03-31T11:42:03Z")

</div>

Did you restart all nodes after adding these settings to the keystore?

---

<div class="post-metadata">

### Author: ![mahendra5.kumawat](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@mahendra5.kumawat](https://discuss.elastic.co/u/mahendra5.kumawat)
#### Post date: [March 31, 2025, 1:58pm UTC](https://discuss.elastic.co/t/response-500-when-i-create-a-snapshot-repository/376478/4 "2025-03-31T13:58:21Z")

</div>

Yes sir i did this.

Do we need to add something in elasticsearch.yml  
like defining new clients in yml file.
