Hello everyone,
I have Elasticsearch version 8.12.2 installed on Oracle OCI - OKE , I am trying to configure the snapshot to be uploaded to the Object Storage Amazon S3 Compatibility API (From oracle documentation).
now the access key/secret key configured when i run the API like the following from the Elasticsearch
curl -X PUT "localhost:9200/_snapshot/bkt-s3-snapshot?pretty" -H 'Content-Type: application/json' -d'
{
"type": "s3",
"settings": {
"bucket": "my bucket name",
"region": "my-oci-region",
"endpoint": "https://namespace.compat.objectstorage.region.oraclecloud21.com/"
}
}
'
I am getting the following error
{
"error" : {
"root_cause" : [
{
"type" : "repository_exception",
"reason" : "[my bucket name] Could not determine repository generation from root blobs"
}
],
"type" : "repository_exception",
"reason" : "[my bucket name] 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" : "sdk_client_exception",
"reason" : "sdk_client_exception: The requested metadata is not found at http://169.254.169.254/latest/meta-data/iam/security-credentials/"
}
}
},
"status" : 500
}
I tested the same secret key/access key using python code i wrote and I was able to list and upload the file to the same bucket.
any idea about this ?