Hi,
We have recently upgraded our ES version from 5.6 to 6.0. After that we are facing issue in taking snapshot of data.
In 6.0 ES, service.account option from repository has been removed so we need to add authentication key in elastic keystore.
We have added GCS authentication key on all servers via below command-
cat /opt/elasticsearch-6.0.0/config/gcs-secure-52144da29c6e.json | /opt/elasticsearch-6.0.0/bin/elasticsearch-keystore add gcs.account
Then we tried to create repository using below command:
PUT /_snapshot/gcs_repository_new?pretty
{
"type": "gcs",
"settings": {
"bucket": "my-bucket",
"client": "gcs.account"
}
}
It is giving below error:
{
"error": {
"root_cause": [
{
"type": "repository_verification_exception",
"reason": "[gcs_repository_new] path is not accessible on master node"
}
],
"type": "repository_verification_exception",
"reason": "[gcs_repository_new] path is not accessible on master node",
"caused_by": {
"type": "i_o_exception",
"reason": "403 Forbidden\n{\n \"code\" : 403,\n \"errors\" : [ {\n \"domain\" : \"global\",\n \"message\" : \"Insufficient Permission\",\n \"reason\" : \"insufficientPermissions\"\n } ],\n \"message\" : \"Insufficient Permission\"\n}"
}
},
"status": 500
}
It would be great help if anyone can share suggestions to resolve this issue.