Unable to create the repository for snapshots after mounting nfs share in the container

curl -k -u elastic:password -XPUT "http://localhost:9200/_snapshot/backupes?pretty" -H 'Content-Type: application/json' -d'{"type": "fs","settings":{"location": "/es_snapshots"}}'
{
"error" : {
"root_cause" : [
{
"type" : "exception",
"reason" : "failed to create blob container"
}
],
"type" : "exception",
"reason" : "failed to create blob container",
"caused_by" : {
"type" : "access_denied_exception",
"reason" : "/es_snapshots/tests-uV-VWrk0QMGZgOY6KwPjgg"
}
},
"status" : 500
}

Here is reason.

I have given the full permissions for /es_snapshots with root as an owner still unable to create the registry with the curl command

.

Most likely, elasticsearch is not running as root as this would refuse to start.

Note that all nodes must be able to write to this dir.

yeah i understand but how will i identify the with what user it is running
and i am using only single node as the data,ingest for elasticsearch

I believe that depending on how you installed elasticsearch, the user might be elasticsearch.

okay got it i have created the user as elastic and after deployment i exec into the pod and run the /passwords

so , if change to chown like below will it work

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.