Elasticsearch Unable to access 'path.repo' shared folder

Hi Team, I have Elasticsearch installed to my windows server. And I have another windows server with file system shared with the first one. I have map network drive to "I" letter and path "I:\Elasticsearch-Snapshot-v2" also i have network location path "\\192.168.2.50\d\Elasticsearch-Snapshot-v2" .

After that i have added both the location in path.repo one by one but i am getting same error Unable to access 'path.repo' (\\192.168.2.50\d\Elasticsearch-Snapshot-v2)" or " Unable to access 'path.repo' (I:\Elasticsearch-Snapshot-v2) .

I think this error is because the shared folder have username and password to access the shared folder using SMB.

Please help me to add username and password along with the shared location path. I have both the windows server.

[2023-11-03T20:14:23,984][ERROR][o.e.b.Bootstrap          ] [Node_03] Exception
java.lang.IllegalStateException: Unable to access 'path.repo' (\\192.168.2.50\d\Elasticsearch-Snapshot-v2)
	at org.elasticsearch.bootstrap.FilePermissionUtils.addDirectoryPath(FilePermissionUtils.java:61) ~[elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:224) ~[elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.Security.createPermissions(Security.java:155) ~[elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.Security.configure(Security.java:105) ~[elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:214) ~[elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:399) [elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:167) [elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:158) [elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75) [elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:114) [elasticsearch-cli-7.15.2.jar:7.15.2]
	at org.elasticsearch.cli.Command.main(Command.java:79) [elasticsearch-cli-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:123) [elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81) [elasticsearch-7.15.2.jar:7.15.2]
Caused by: java.nio.file.FileSystemException: \\192.168.2.50\d\: The filename, directory name, or volume label syntax is incorrect
	at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92) ~[?:?]
	at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) ~[?:?]
	at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108) ~[?:?]
	at sun.nio.fs.WindowsFileSystemProvider.checkReadAccess(WindowsFileSystemProvider.java:351) ~[?:?]
	at sun.nio.fs.WindowsFileSystemProvider.checkAccess(WindowsFileSystemProvider.java:380) ~[?:?]
	at java.nio.file.Files.createDirectories(Files.java:772) ~[?:?]
	at org.elasticsearch.bootstrap.Security.ensureDirectoryExists(Security.java:300) ~[elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.FilePermissionUtils.addDirectoryPath(FilePermissionUtils.java:59) ~[elasticsearch-7.15.2.jar:7.15.2]
	... 12 more
[2023-11-03T20:14:24,003][WARN ][stderr                   ] [Node_03] java.lang.IllegalStateException: Unable to access 'path.repo' (\\192.168.2.50\d\Elasticsearch-Snapshot-v2)
[2023-11-03T20:14:24,003][WARN ][stderr                   ] [Node_03] Likely root cause: java.nio.file.FileSystemException: \\192.168.2.50\d\: The filename, directory name, or volume label syntax is incorrect
[2023-11-03T20:14:24,004][WARN ][stderr                   ] [Node_03] 	at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
[2023-11-03T20:14:24,005][WARN ][stderr                   ] [Node_03] 	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
[2023-11-03T20:14:24,005][WARN ][stderr                   ] [Node_03] 	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
[2023-11-03T20:14:24,006][WARN ][stderr                   ] [Node_03] 	at java.base/sun.nio.fs.WindowsFileSystemProvider.checkReadAccess(WindowsFileSystemProvider.java:351)
[2023-11-03T20:14:24,006][WARN ][stderr                   ] [Node_03] 	at java.base/sun.nio.fs.WindowsFileSystemProvider.checkAccess(WindowsFileSystemProvider.java:380)
[2023-11-03T20:14:24,006][WARN ][stderr                   ] [Node_03] 	at java.base/java.nio.file.Files.createDirectories(Files.java:772)
[2023-11-03T20:14:24,007][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Security.ensureDirectoryExists(Security.java:300)
[2023-11-03T20:14:24,007][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.FilePermissionUtils.addDirectoryPath(FilePermissionUtils.java:59)
[2023-11-03T20:14:24,007][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:224)
[2023-11-03T20:14:24,008][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Security.createPermissions(Security.java:155)
[2023-11-03T20:14:24,008][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Security.configure(Security.java:105)
[2023-11-03T20:14:24,008][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:214)
[2023-11-03T20:14:24,009][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:399)
[2023-11-03T20:14:24,009][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:167)
[2023-11-03T20:14:24,010][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:158)
[2023-11-03T20:14:24,010][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75)
[2023-11-03T20:14:24,010][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:114)
[2023-11-03T20:14:24,011][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.cli.Command.main(Command.java:79)
[2023-11-03T20:14:24,011][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:123)
[2023-11-03T20:14:24,012][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81)
[2023-11-03T20:14:24,012][WARN ][stderr                   ] [Node_03] For complete error details, refer to the log at D:\Elasticsearch_Production_v3\Logs\Node_03\Market_Inside.log
[2023-11-03T20:18:04,499][ERROR][o.e.b.Bootstrap          ] [Node_03] Exception
java.lang.IllegalStateException: Unable to access 'path.repo' (I:\Elasticsearch-Snapshot-v2)
	at org.elasticsearch.bootstrap.FilePermissionUtils.addDirectoryPath(FilePermissionUtils.java:61) ~[elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:224) ~[elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.Security.createPermissions(Security.java:155) ~[elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.Security.configure(Security.java:105) ~[elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:214) ~[elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:399) [elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:167) [elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:158) [elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75) [elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:114) [elasticsearch-cli-7.15.2.jar:7.15.2]
	at org.elasticsearch.cli.Command.main(Command.java:79) [elasticsearch-cli-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:123) [elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81) [elasticsearch-7.15.2.jar:7.15.2]
Caused by: java.nio.file.FileSystemException: I:\Elasticsearch-Snapshot-v2: Unable to determine if root directory exists
	at java.nio.file.Files.createDirectories(Files.java:782) ~[?:?]
	at org.elasticsearch.bootstrap.Security.ensureDirectoryExists(Security.java:300) ~[elasticsearch-7.15.2.jar:7.15.2]
	at org.elasticsearch.bootstrap.FilePermissionUtils.addDirectoryPath(FilePermissionUtils.java:59) ~[elasticsearch-7.15.2.jar:7.15.2]
	... 12 more
[2023-11-03T20:18:04,519][WARN ][stderr                   ] [Node_03] java.lang.IllegalStateException: Unable to access 'path.repo' (I:\Elasticsearch-Snapshot-v2)
[2023-11-03T20:18:04,520][WARN ][stderr                   ] [Node_03] Likely root cause: java.nio.file.FileSystemException: I:\Elasticsearch-Snapshot-v2: Unable to determine if root directory exists
[2023-11-03T20:18:04,521][WARN ][stderr                   ] [Node_03] 	at java.base/java.nio.file.Files.createDirectories(Files.java:782)
[2023-11-03T20:18:04,521][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Security.ensureDirectoryExists(Security.java:300)
[2023-11-03T20:18:04,522][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.FilePermissionUtils.addDirectoryPath(FilePermissionUtils.java:59)
[2023-11-03T20:18:04,522][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:224)
[2023-11-03T20:18:04,523][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Security.createPermissions(Security.java:155)
[2023-11-03T20:18:04,523][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Security.configure(Security.java:105)
[2023-11-03T20:18:04,524][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:214)
[2023-11-03T20:18:04,525][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:399)
[2023-11-03T20:18:04,525][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:167)
[2023-11-03T20:18:04,526][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:158)
[2023-11-03T20:18:04,526][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75)
[2023-11-03T20:18:04,527][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:114)
[2023-11-03T20:18:04,527][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.cli.Command.main(Command.java:79)
[2023-11-03T20:18:04,528][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:123)
[2023-11-03T20:18:04,528][WARN ][stderr                   ] [Node_03] 	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81)
[2023-11-03T20:18:04,529][WARN ][stderr                   ] [Node_03] For complete error details, refer to the log at D:\Elasticsearch_Production_v3\Logs\Node_03\Market_Inside.log

How many nodes, do you have? For Windows you need to use the "log on" in the "elasticsearch" service properties to add your account. The path.repo location does not look like the correct format.

We have total 9 nodes (3 master nodes and 6 data nodes) and we are applied path.repo to all nodes.

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