# Misplaced codec footer keystore

**URL:** https://discuss.elastic.co/t/misplaced-codec-footer-keystore/283493
**Category:** Elasticsearch
**Created:** [September 7, 2021, 6:45am UTC](https://discuss.elastic.co/t/misplaced-codec-footer-keystore/283493 "2021-09-07T06:45:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![itslogesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itslogesh/32/94233_2.png) [@itslogesh](https://discuss.elastic.co/u/itslogesh)
#### Post date: [September 7, 2021, 6:45am UTC](https://discuss.elastic.co/t/misplaced-codec-footer-keystore/283493/1 "2021-09-07T06:45:07Z")

</div>

```auto
org.apache.lucene.index.CorruptIndexException: misplaced codec footer (file extended?): remaining=17, expected=16, fp=183 (resource=BufferedChecksumIndexInput(SimpleFSIndexInput(path="/etc/elasticsearch/elasticsearch.keystore")))
Sep 7 06:29:54 cloud systemd-entrypoint[1289]: #011at org.apache.lucene.codecs.CodecUtil.validateFooter(CodecUtil.java:518)
Sep 7 06:29:54 cloud systemd-entrypoint[1289]: #011at org.apache.lucene.codecs.CodecUtil.checkFooter(CodecUtil.java:414)
Sep 7 06:29:54 cloud systemd-entrypoint[1289]: #011at org.elasticsearch.common.settings.KeyStoreWrapper.load(KeyStoreWrapper.java:283)
Sep 7 06:29:54 cloud systemd-entrypoint[1289]: #011at org.elasticsearch.bootstrap.Bootstrap.loadSecureSettings(Bootstrap.java:240)
Sep 7 06:29:54 cloud systemd-entrypoint[1289]: #011at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:349)
Sep 7 06:29:54 cloud systemd-entrypoint[1289]: #011at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170)
Sep 7 06:29:54 cloud systemd-entrypoint[1289]: #011at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:161)
Sep 7 06:29:54 cloud systemd-entrypoint[1289]: #011at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
Sep 7 06:29:54 cloud systemd-entrypoint[1289]: #011at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:127)
Sep 7 06:29:54 cloud systemd-entrypoint[1289]: #011at org.elasticsearch.cli.Command.main(Command.java:90)
Sep 7 06:29:54 cloud systemd-entrypoint[1289]: #011at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126)
Sep 7 06:29:54 cloud systemd-entrypoint[1289]: #011at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92)
Sep 7 06:29:54 cloud systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Sep 7 06:29:54 cloud systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Sep 7 06:29:54 cloud systemd[1]: Failed to start Elasticsearch.

```

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [September 7, 2021, 6:59am UTC](https://discuss.elastic.co/t/misplaced-codec-footer-keystore/283493/2 "2021-09-07T06:59:12Z")

</div>

Welcome to our community! 😃

Are you asking for assistance here, or posting some logs?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [October 5, 2021, 6:59am UTC](https://discuss.elastic.co/t/misplaced-codec-footer-keystore/283493/3 "2021-10-05T06:59:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
