Using elasticsearch docker image 7.2.0, in a kubernetes cluster:
ES describe:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Created 45m elasticsearch-controller Created pod quickstart-es-9smrn67vmv
Normal StateChange 44m elasticsearch-controller Master node is now quickstart-es-9smrn67vmv
Warning Unhealthy 32m elasticsearch-controller Elasticsearch cluster health degraded
Pod logs:
{"level":"info","ts":1561636379.3319728,"logger":"keystore-updater","msg":"Waiting for
Elasticsearch to be ready"}
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version
9.0 and will likely be removed in a future release.
Exception in thread "main" org.elasticsearch.bootstrap.BootstrapException:
java.nio.file.FileAlreadyExistsException:
/usr/share/elasticsearch/config/elasticsearch.keystore.tmp
Likely root cause: java.nio.file.FileAlreadyExistsException:
/usr/share/elasticsearch/config/elasticsearch.keystore.tmp
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:94)
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.newByteChannel(UnixFileSystemProvider.java:219)
at
java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:478)
at java.base/java.nio.file.Files.newOutputStream(Files.java:222)
at org.apache.lucene.store.FSDirectory$FSIndexOutput.<init>(FSDirectory.java:411)
at org.apache.lucene.store.FSDirectory$FSIndexOutput.<init>(FSDirectory.java:407)
at org.apache.lucene.store.FSDirectory.createOutput(FSDirectory.java:255)
at org.elasticsearch.common.settings.KeyStoreWrapper.save(KeyStoreWrapper.java:462)
at org.elasticsearch.bootstrap.Bootstrap.loadSecureSettings(Bootstrap.java:242)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:305)
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159)
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
at org.elasticsearch.cli.Command.main(Command.java:90)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92)
Refer to the log for complete error details.
{"level":"info","ts":1561636381.358021,"logger":"process-manager","msg":"Update process
state","action":"terminate","id":"es","state":"failed","pid":14}
{"level":"info","ts":1561636381.3581822,"logger":"process -
manager","msg":"Exit","reason":"process failed","code":1}