Elasticsearch Failing to start

Hello I attempt to install elasticsearch on new node, but its failling to start

Any help would be great:

Jul 26 09:54:04 <> systemd-entrypoint[1933]: Exception in thread "main" org.apache.lucene.index.CorruptIndexException: codec footer mismatch (file truncated?): actual footer=680781824 vs expected footer=-1071082520 (resource=BufferedChecksumIndexInput(NIOFSIndexInput(path="/etc/elasticsearch/elasticsearch.keystore")))
Jul 26 09:54:04 <> systemd-entrypoint[1933]:         at org.apache.lucene.codecs.CodecUtil.validateFooter(CodecUtil.java:585)
Jul 26 09:54:04 <> systemd-entrypoint[1933]:         at org.apache.lucene.codecs.CodecUtil.checkFooter(CodecUtil.java:433)
Jul 26 09:54:04 <> systemd-entrypoint[1933]:         at org.elasticsearch.common.settings.KeyStoreWrapper.load(KeyStoreWrapper.java:293)
Jul 26 09:54:04 <> systemd-entrypoint[1933]:         at org.elasticsearch.server.cli.KeyStoreLoader.load(KeyStoreLoader.java:26)
Jul 26 09:54:04 <> systemd-entrypoint[1933]:         at org.elasticsearch.server.cli.ServerCli.execute(ServerCli.java:81)
Jul 26 09:54:04 <> systemd-entrypoint[1933]:         at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:54)
Jul 26 09:54:04 <> systemd-entrypoint[1933]:         at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85)
Jul 26 09:54:04 <> systemd-entrypoint[1933]:         at org.elasticsearch.cli.Command.main(Command.java:50)
Jul 26 09:54:04 <> systemd-entrypoint[1933]:         at org.elasticsearch.launcher.CliToolLauncher.main(CliToolLauncher.java:64)
Jul 26 09:54:04 <> systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE

Seems like you have a corrupt shard similar to the case reported in this thread. As outlined there it is likely due to faulty or inappropriate storage.

1 Like

okay I read this:
Troubleshooting corruption | Elasticsearch Guide [8.14] | Elastic

I don't think its that.
More context:
I was planning on making this a dedicated ingest node, it was previously a logstash node. I don't need to store data.

What is the configuration of the node (or what was it when you got the error)? What type of storage are you using?