I have been trying to configure snapshot on my cluster. But I am stumped at this error.
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: Unable to access 'path.repo' (/home/elastic/mount/backups) at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:125) ~[elasticsearch-5.2.2.jar:5.2.2] ...... ...... at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82) ~[elasticsearch-5.2.2.jar:5.2.2] Caused by: java.lang.IllegalStateException: Unable to access 'path.repo' (/home/elastic/mount/backups) at org.elasticsearch.bootstrap.Security.addPath(Security.java:379) ~[elasticsearch-5.2.2.jar:5.2.2] ...... ...... ... 6 more Caused by: java.nio.file.AccessDeniedException: /home/elastic/mount ...... ......
The elasticsearch is running as a service on my RHEL cluster.
The user used is elasticsearch belonging to group elasticsearch.
Just for sake of trying out I have given full permissions on the mount folder and changed the owner to elasticsearch too on each of the nodes.
drwxrwxrwx 3 elasticsearch elasticsearch 20 Aug 1 11:55 mount
Entry in elasticsearch.yml is:
I have create a nfs based shared filestore. And it is mounted on each of the nodes at this location
Even the nfs shared filestore location which I have configured on one of the nodes only (uat cluster and hence the experimenting) is
is now owned by elasticsearch with full permissions.
drwxrwxrwx 2 elasticsearch elasticsearch 6 Aug 1 15:22 backups
What I am missing here? Any thing else to check?