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

Elasticsearch file permission issue #32

Open
Darcon11 opened this issue Jul 6, 2022 · 0 comments
Open

Elasticsearch file permission issue #32

Darcon11 opened this issue Jul 6, 2022 · 0 comments

Comments

@Darcon11
Copy link

Darcon11 commented Jul 6, 2022

Hi,

when composing docker stack im getting below error msg:

elasticsearch | Exception in thread "main" org.elasticsearch.bootstrap.BootstrapException: org.elasticsearch.cli.UserException: will not overwrite keystore at [/usr/share/elasticsearch/config/elasticsearch.keystore], because this incurs changing the file owner elasticsearch | Likely root cause: org.elasticsearch.cli.UserException: will not overwrite keystore at [/usr/share/elasticsearch/config/elasticsearch.keystore], because this incurs changing the file owner elasticsearch | at org.elasticsearch.common.settings.KeyStoreWrapper.save(KeyStoreWrapper.java:608) elasticsearch | at org.elasticsearch.common.settings.KeyStoreWrapper.save(KeyStoreWrapper.java:540) elasticsearch | at org.elasticsearch.common.settings.KeyStoreWrapper.upgrade(KeyStoreWrapper.java:339) elasticsearch | at org.elasticsearch.common.settings.KeyStoreWrapper.bootstrap(KeyStoreWrapper.java:225) elasticsearch | at org.elasticsearch.bootstrap.BootstrapUtil.loadSecureSettings(BootstrapUtil.java:60) elasticsearch | at org.elasticsearch.bootstrap.BootstrapUtil.loadSecureSettings(BootstrapUtil.java:55) elasticsearch | at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:301) elasticsearch | at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:166) elasticsearch | at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:157) elasticsearch | at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:81) elasticsearch | at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112) elasticsearch | at org.elasticsearch.cli.Command.main(Command.java:77) elasticsearch | at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:122) elasticsearch | at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80

Due to that elastisearch container is restarting. Didn't changed any values in .env or in setup.sh file. Using example .env file with no Stagging.

Any ideas how to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant