Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error deploying ELK on kubernetes #196476

Closed
anishagoyal0504 opened this issue Oct 16, 2024 · 2 comments
Closed

Error deploying ELK on kubernetes #196476

anishagoyal0504 opened this issue Oct 16, 2024 · 2 comments
Labels
needs-team Issues missing a team label

Comments

@anishagoyal0504
Copy link

I was following the Elasticsearch documentation (Deploy an Elasticsearch cluster | Elastic Cloud on Kubernetes [2.14] | Elastic)

I am getting the below error while deploying the elasticsearch cluster on kubernetes:

Defaulted container "elasticsearch" out of: elasticsearch, elastic-internal-init-filesystem (init), elastic-internal-suspend (init)
java.nio.file.AccessDeniedException: /usr/share/elasticsearch/data
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
at java.base/sun.nio.fs.UnixException.asIOException(UnixException.java:115)
at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:477)
at java.base/java.nio.file.Files.newDirectoryStream(Files.java:481)
at java.base/java.nio.file.Files.list(Files.java:3777)
at org.elasticsearch.xpack.security.cli.AutoConfigureNode.isDirEmpty(AutoConfigureNode.java:1151)
at org.elasticsearch.xpack.security.cli.AutoConfigureNode.execute(AutoConfigureNode.java:166)
at org.elasticsearch.server.cli.ServerCli.autoConfigureSecurity(ServerCli.java:174)
at org.elasticsearch.server.cli.ServerCli.execute(ServerCli.java:87)
at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:54)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:94)
at org.elasticsearch.cli.Command.main(Command.java:51)
at org.elasticsearch.launcher.CliToolLauncher.main(CliToolLauncher.java:64)

It looks like it is a bug and it is not working on on-prem kubernetes, did someone has tried this?
I tried to post this as a question on ELK community page but no one knows how to fix this?

Can you please fix this and documentation as well with proper steps with required information.

Thanks

@botelastic botelastic bot added the needs-team Issues missing a team label label Oct 16, 2024
@bhavyarm
Copy link
Contributor

Please post this query here https://discuss.elastic.co/c/elastic-stack/81 with all the details. Thanks!

@anishagoyal0504
Copy link
Author

anishagoyal0504 commented Oct 22, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-team Issues missing a team label
Projects
None yet
Development

No branches or pull requests

2 participants