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 6.3 requires keystore file to exist #54

Open
colin-stubbs opened this issue Jul 20, 2018 · 1 comment
Open

ElasticSearch 6.3 requires keystore file to exist #54

colin-stubbs opened this issue Jul 20, 2018 · 1 comment

Comments

@colin-stubbs
Copy link

ES 6.3 won't start without a keystore file existing. On many systems the user/group/context that ES runs in does not, and should not, have permission to create files in /etc/elasticsearch. Formula should create a default keystore in default location if one does not exist.

Jul 20 14:05:11 box systemd[1]: Starting Elasticsearch...
Jul 20 14:05:12 box elasticsearch[85725]: Exception in thread "main" org.elasticsearch.bootstrap.BootstrapException: org.elasticsearch.cli.UserException: unable to create temporary keystore at [/etc/elasticsearch/elasticsearch.keystore.tmp], please check filesystem permissions
Jul 20 14:05:12 box elasticsearch[85725]: Likely root cause: java.nio.file.AccessDeniedException: /etc/elasticsearch/elasticsearch.keystore.tmp
Jul 20 14:05:12 box elasticsearch[85725]: at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
Jul 20 14:05:12 box elasticsearch[85725]: at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
Jul 20 14:05:12 box elasticsearch[85725]: at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
Jul 20 14:05:12 box elasticsearch[85725]: at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
Jul 20 14:05:12 box systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE

@phornkrit
Copy link

Push

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

2 participants