# 6.2.4 upgrade causes CorruptIndexException via bin/xpack/set\_password

**URL:** https://discuss.elastic.co/t/6-2-4-upgrade-causes-corruptindexexception-via-bin-xpack-set-password/138905
**Category:** Elasticsearch
**Created:** [July 6, 2018, 11:58am UTC](https://discuss.elastic.co/t/6-2-4-upgrade-causes-corruptindexexception-via-bin-xpack-set-password/138905 "2018-07-06T11:58:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hokiegeek2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hokiegeek2/32/11076_2.png) [@hokiegeek2](https://discuss.elastic.co/u/hokiegeek2)
#### Post date: [July 6, 2018, 11:58am UTC](https://discuss.elastic.co/t/6-2-4-upgrade-causes-corruptindexexception-via-bin-xpack-set-password/138905/1 "2018-07-06T11:58:57Z")

</div>

I am attempting to upgrade our cluster to 6.2.4. Now that elastic/changeme login is disabled one has to execute bin/xpack/set\_password. When I attempt to do this, I get the following exception:

Exception in thread "main" org.elasticsearch.bootstrap.BootstrapException: org.apache.lucene.index.CorruptIndexException: codec header mismatch: actual header=-17957139 vs expected header=1071082519 (resource=BufferedChecksumIndexInput(SimpleFSIndexInput(path="/deploy/elasticsearch-6.2.4/config/elasticsearch.keystore")))  
Likely root cause: org.apache.lucene.index.CorruptIndexException: codec header mismatch: actual header=-17957139 vs expected header=1071082519 (resource=BufferedChecksumIndexInput(SimpleFSIndexInput(path="/deploy/elasticsearch-6.2.4/config/elasticsearch.keystore")))  
at org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:196)  
at org.elasticsearch.common.settings.KeyStoreWrapper.load(KeyStoreWrapper.java:206)  
at org.elasticsearch.bootstrap.Bootstrap.loadSecureSettings(Bootstrap.java:226)  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:288)  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121)  
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112)  
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:92)  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85)

Any ideas?

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [July 6, 2018, 12:31pm UTC](https://discuss.elastic.co/t/6-2-4-upgrade-causes-corruptindexexception-via-bin-xpack-set-password/138905/2 "2018-07-06T12:31:38Z")

</div>

Curious. The first four bytes of your keystore file are `0xFEEDFEED`, but they should be `0x3fd76c17`. I think this means it's a Java Key Store file, which might mean it was generated by an older version of Elasticsearch. @TimV do you know what's happened here?

---

<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: [August 3, 2018, 12:31pm UTC](https://discuss.elastic.co/t/6-2-4-upgrade-causes-corruptindexexception-via-bin-xpack-set-password/138905/3 "2018-08-03T12:31:38Z")

</div>

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