Hi all,
I'm having an issue deploying ELK on k8s. The error is shown below, any assistance is v. appreciated.
java.lang.IllegalStateException: Unable to access 'path.logs' (/data/log)
Likely root cause: java.nio.file.AccessDeniedException: /data/log
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:389)
at java.base/java.nio.file.Files.createDirectory(Files.java:690)
at java.base/java.nio.file.Files.createAndCheckIsDirectory(Files.java:797)
at java.base/java.nio.file.Files.createDirectories(Files.java:783)
at org.opensearch.bootstrap.Security.ensureDirectoryExists(Security.java:424)
at org.opensearch.bootstrap.FilePermissionUtils.addDirectoryPath(FilePermissionUtils.java:88)
at org.opensearch.bootstrap.Security.addFilePermissions(Security.java:320)
at org.opensearch.bootstrap.Security.createPermissions(Security.java:274)
at org.opensearch.bootstrap.Security.configure(Security.java:137)
at org.opensearch.bootstrap.Bootstrap.setup(Bootstrap.java:237)
at org.opensearch.bootstrap.Bootstrap.init(Bootstrap.java:412)
at org.opensearch.bootstrap.OpenSearch.init(OpenSearch.java:178)
at org.opensearch.bootstrap.OpenSearch.execute(OpenSearch.java:169)
at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:100)
at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
at org.opensearch.cli.Command.main(Command.java:101)
at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:135)
at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:101)
For complete error details, refer to the log at /data/log/default-nokiainfra.log
OpenSearch exited with code 1