I am trying to restore a snapshot to elasticsearch. and as the first step need to create a repository.
when trying to execute
PUT /_snapshot/nuwan-backup
{
"type": "fs",
"settings": {
"location": "/mnt/nfs/esbackup/"
}
}
Got following error
"reason": "failed to create blob container"
Environment: Elasticsearch v6.3.0, 3 node cluster is used and mounted to a shared folder.
The fix was to add elasticuser folder as the owner at source server not at the client. I was trying to execute chown -R elasticsearch:elasticsearch /mnt/nfs/esbackup/ on client server which didn't succeed.
chown -R elasticsearch:elasticsearch /esbackup/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With