Below is the steps that I followed ..Not sure what is happening ..Please take a look & advice
STEP 1 : Add the access key & secret key to keystore
[root@XXXX elasticsearch]# bin/elasticsearch-keystore add s3.client.default.access_key
Enter value for s3.client.default.access_key:
[root@XXXXX elasticsearch]#
[root@XXXXX elasticsearch]#
[root@XXXXX elasticsearch]# bin/elasticsearch-keystore add s3.client.default.secret_key
Enter value for s3.client.default.secret_key:
[root@x01gnwatesr7a elasticsearch]#
Error : No error
STEP 2: Create a new REPO
PUT _snapshot/Fw_Repository
{
"type": "s3",
"settings": {
"bucket": "XXXXXX",
"endpoint": "XXXXXX",
"max_retries": "20",
"chunk_size": "5G",
"buffer_size": "5G"
}
}
Error:
{
"error": {
"root_cause": [
{
"type": "repository_exception",
"reason": "[Fw_Repository] cannot create blob store"
}
],
"type": "repository_exception",
"reason": "[Fw_Repository] cannot create blob store",
"caused_by": {
"type": "sdk_client_exception",
"reason": "Unable to load credentials from service endpoint",
"caused_by": {
"type": "socket_timeout_exception",
"reason": "connect timed out"
}
}
},
"status": 500
}
Note : No connection issue with S3 endpoint
Step 3 : verification of S3 repo created
GET /_snapshot/Fw_Repository
It seems like Repo is created eventhough error was seen is step 2
Output:
{
"Fw_Repository": {
"type": "s3",
"settings": {
"bucket": "sg00tsimnwtsg",
"chunk_size": "5G",
"endpoint": "s3.sgp.dbs.com",
"max_retries": "20",
"buffer_size": "5G"
}
}
}
Step 4: Trying to create a snapshot
PUT /_snapshot/Fw_Repository/snapshot_test?wait_for_completion=true
{
"indices": "logstash-nts-2018.12.18",
"ignore_unavailable": true,
"include_global_state": false
}
Output:
{
"error": {
"root_cause": [
{
"type": "repository_exception",
"reason": "[Fw_Repository] cannot create blob store"
}
],
"type": "repository_exception",
"reason": "[Fw_Repository] cannot create blob store",
"caused_by": {
"type": "sdk_client_exception",
"reason": "Unable to load credentials from service endpoint",
"caused_by": {
"type": "socket_timeout_exception",
"reason": "connect timed out"
}
}
},
"status": 500
}