I ran out of space so i'm trying to set up a repository so i can snapshot then delete some indices until I can add more nodes.
I setup the following in my elasticsearch.yml
cloud: aws: access_key: XXXXX secret_key: YYYYY read_timeout: 80s protocol: http repositories: s3: bucket: "snapshots" path_style_access: true region: "" endpoint: "123.456.789.012" protocol: http
From here I added a snapshot repo and tried to start my first snapshot.
`lacadmin@kh21-57:~$ curl -XPUT 'localhost:9200/_snapshot/my_s3_repository?pretty' -H 'Content-Type: application/json' -d'
{
"type": "s3",
"settings": {
"bucket": "snapshots",
"region": "",
"access_key": "XXXXX",
"secret_key": "YYYYYYYYY",
"path_style_access": true,
"endpoint": "123.456.789.012",
"signer": "S3SignerType"
}
}'
{
"acknowledged" : true
}
lacadmin@kh21-57:~$ curl -XPUT 'localhost:9200/_snapshot/my_s3_repository/firstsnap?pretty'
{
"error" : {
"root_cause" : [
{
"type" : "amazon_s3_exception",
"reason" : "null (Service: Amazon S3; Status Code: 400; Error Code: InvalidArgument; Request ID: null)"
}
],
"type" : "amazon_s3_exception",
"reason" : "null (Service: Amazon S3; Status Code: 400; Error Code: InvalidArgument; Request ID: null)"
},
"status" : 500
}`
The Ceph S3 gateway log shows ES is trying to get index.latest which doesn't exist in that bucket. I tried creating an empty key with that name but that doesn't seem to have helped. Any tips on how to get this working?