Mounting a nfs drive for snapshot

Hi all
i have a case that i really dont know how to solve.
I have a nfs share server that i mount an external drive in, and then i share that specific drive for my elastic cluster to takke snapshot in. The problems is that whenever i try to verify the repo it doesnot work, it keep saying "failed to create blob container" and "access denied"
I think it is a permission problems but i dont know how to fix it.
Please help me.
Thanks for your time.

Please post;

  • The entire errors you are seeing
  • The version of Elasticsearch you are using
  • The relevant config sections showing the repo setup
  • This is the error that it show:
{
  "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": "/data/tests-ksVsTSHWQFqnhW2ljrGWdg"
    }
  },
  "status": 500
}
  • The version of elatic that i am using is 7.6
  • I config them just like the doc say so i dont know what to give you

Is /data directory writable to user running Elasticsearch?

This is not data directory for elasticsearch (path.data) right?

/data dir has 777 right and yes it is not the path.data

What did you specify for location while registering repository?

elasticsearch logs may have more details on error and stacktrace.

NFS permissions are messy - make sure you can sudo to the Elasticsearch user and write a file to that mount/dir path; you might be surprised. Solve or verify that likely problem goes away.

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