Path to repo not working

Hello there. I'm experiencing some issues with backing up my documents - when the path.repo points to a fileshare location, ES won't start as a service.

My setups is the following: 3 Windows Server 2012 R2 machines, one act as a load balancer, and the other two have Elastic Search data on them.

I followed the official documentation, so I modified on all machines the elasticsearch.yml file to include the path repo:

path.repo: ['\\\\Path\\To\\FileShare']

Then I try to restart each machine.
When I start as a service, ES stops immediately. I check the logs and get this error:

[2016-11-08 06:45:58,576][WARN ][bootstrap ] unable to install syscall filter: syscall filtering not supported for OS: 'Windows Server 2012 R2'
[2016-11-08 06:46:00,060][ERROR][bootstrap ] Exception
java.lang.IllegalStateException: Unable to access 'path.repo' (\\Path\To\FileShare)
at org.elasticsearch.bootstrap.Security.addPath(
at org.elasticsearch.bootstrap.Security.addFilePermissions(
at org.elasticsearch.bootstrap.Security.createPermissions(
at org.elasticsearch.bootstrap.Security.configure(
at org.elasticsearch.bootstrap.Bootstrap.setupSecurity(
at org.elasticsearch.bootstrap.Bootstrap.setup(
at org.elasticsearch.bootstrap.Bootstrap.init(
at org.elasticsearch.bootstrap.Elasticsearch.main(
Caused by: java.nio.file.NotDirectoryException: \\Path\To\FileShare
at org.elasticsearch.bootstrap.Security.ensureDirectoryExists(
at org.elasticsearch.bootstrap.Security.addPath(
... 7 more
Suppressed: java.nio.file.FileAlreadyExistsException: \\Path\To\FileShare
at sun.nio.fs.WindowsException.translateToIOException(
at sun.nio.fs.WindowsException.rethrowAsIOException(
at sun.nio.fs.WindowsException.rethrowAsIOException(
at sun.nio.fs.WindowsFileSystemProvider.createDirectory(
at java.nio.file.Files.createDirectory(
at java.nio.file.Files.createAndCheckIsDirectory(
at java.nio.file.Files.createDirectories(
at org.elasticsearch.bootstrap.Security.ensureDirectoryExists(
... 8 more

It only happens when ES starts as a service. Does anybody else experience this issue?
Thank you!

path.repo must be a dir not a file.

Thanks for your reply, although it is a directory. It works just fine when I start elasticsearch.bat instead of using the service manager, so I'm guessing it's a permissions issue.

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