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

Elastic Search on Kubernetes - AccessDeniedException #11302

Closed
1 task done
saturnism opened this issue Feb 12, 2020 · 2 comments
Closed
1 task done

Elastic Search on Kubernetes - AccessDeniedException #11302

saturnism opened this issue Feb 12, 2020 · 2 comments

Comments

@saturnism
Copy link
Member

Overview of the issue

If ES deployment starts (increasing resource restriction), then it crashes with exception:

Caused by: java.nio.file.AccessDeniedException: /usr/share/elasticsearch/data/nodes
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:90) ~[?:?]
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) ~[?:?]
	at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:389) ~[?:?]
	at java.nio.file.Files.createDirectory(Files.java:693) ~[?:?]
	at java.nio.file.Files.createAndCheckIsDirectory(Files.java:800) ~[?:?]
	at java.nio.file.Files.createDirectories(Files.java:786) ~[?:?]
	at org.elasticsearch.env.NodeEnvironment.lambda$new$0(NodeEnvironment.java:273) ~[elasticsearch-6.8.6.jar:6.8.6]
	at org.elasticsearch.env.NodeEnvironment$NodeLock.<init>(NodeEnvironment.java:206) ~[elasticsearch-6.8.6.jar:6.8.6]
	at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:270) ~[elasticsearch-6.8.6.jar:6.8.6]
	at org.elasticsearch.node.Node.<init>(Node.java:296) ~[elasticsearch-6.8.6.jar:6.8.6]
	at org.elasticsearch.node.Node.<init>(Node.java:266) ~[elasticsearch-6.8.6.jar:6.8.6]
	at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:212) ~[elasticsearch-6.8.6.jar:6.8.6]
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.8.6.jar:6.8.6]
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.8.6.jar:6.8.6]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-6.8.6.jar:6.8.6]
	... 6 more
Motivation for or Use Case

ES should work on Kubernetes.

Reproduce the error

https://github.com/jhipster/jdl-samples/blob/master/microservices-blog-store.jh

Related issues

#11301

Suggest a Fix

TBD

JHipster Version(s)

6.7.0

JHipster configuration

https://github.com/jhipster/jdl-samples/blob/master/microservices-blog-store.jh

Entity configuration(s) entityName.json files generated in the .jhipster directory

https://github.com/jhipster/jdl-samples/blob/master/microservices-blog-store.jh

Browsers and Operating System
  • Checking this box is mandatory (this is just to show you read everything)
@saturnism
Copy link
Member Author

elastic/helm-charts#137

@pascalgrimaud
Copy link
Member

fixed by #11303

@pascalgrimaud pascalgrimaud added this to the 6.8.0 milestone Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants