Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elasticsearch Error Failed to create blob container

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.

like image 227
Nu-ONE Avatar asked Dec 07 '18 13:12

Nu-ONE


1 Answers

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/

like image 74
Nu-ONE Avatar answered Nov 18 '22 06:11

Nu-ONE