Response 500 when I create a snapshot repository

request body:

{
"type":"s3",
"settings":{
"endpoint":"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

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.

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

Yes sir i did this.

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