Elasticstack in k8s

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

OpenSearch/OpenDistro are AWS run products and differ from the original Elasticsearch and Kibana products that Elastic builds and maintains. You may need to contact them directly for further assistance.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

Hi ..can you share your elasticsearch yaml file over here ..Because i am also trying to install elasticsearch on k8s by using helm ..

As you are running Opensearch I would recommend you reach out to the Opensearch community.

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