# Index RED with Error This version of Lucene only supports indexes created with release 6.0 and later

**URL:** <https://discuss.elastic.co/t/index-red-with-error-this-version-of-lucene-only-supports-indexes-created-with-release-6-0-and-later/317975>\
**Category:** Elasticsearch\
**Created:** [November 2, 2022, 10:58am UTC](https://discuss.elastic.co/t/index-red-with-error-this-version-of-lucene-only-supports-indexes-created-with-release-6-0-and-later/317975 "2022-11-02T10:58:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishalbhandari](https://avatars.discourse-cdn.com/v4/letter/v/f07891/32.png) [@vishalbhandari](https://discuss.elastic.co/u/vishalbhandari)\
**Post date:** [November 2, 2022, 10:58am UTC](https://discuss.elastic.co/t/index-red-with-error-this-version-of-lucene-only-supports-indexes-created-with-release-6-0-and-later/317975/1 "2022-11-02T10:58:06Z")

</div>

Hi  
I have Elastic search version 7.16.3, in this one index is showing RED and when i tried recover it using CheckIndex command "java -cp lucene-core-8.10.1.jar -ea:org.apache.lucene… org.apache.lucene.index.CheckIndex C:\Program Files\data\elasticsearch\data\nodes\0\indices\_NHgtxr9TCWE2bYp\_hk-nA\0\index\segments\_g60\ -verbose -exorcise" its giving following error

NOTE: testing will be more thorough if you run java with '-ea:org.apache.lucene...', so assertions are enabled

Opening index @ C:\PROGRA~1\data\elasticsearch\data\nodes\0\indices\_NHgtxr9TCWE2bYp\_hk-nA\0\index\

ERROR: could not read any segments file in directory  
org.apache.lucene.index.IndexFormatTooOldException: Format version is not supported (resource BufferedChecksumIndexInput(MMapIndexInput(path="C:\Program Files\data\elasticsearch\data\nodes\0\indices\_NHgtxr9TCWE2bYp\_hk-nA\0\index\segments\_g60"))): 1229866072 (needs to be between 1071082519 and 1071082519). This version of Lucene only supports indexes created with release 6.0 and later.  
at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:307)  
at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:291)  
at org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:522)  
at org.apache.lucene.index.CheckIndex.doCheck(CheckIndex.java:2962)  
at org.apache.lucene.index.CheckIndex.doMain(CheckIndex.java:2860)  
at org.apache.lucene.index.CheckIndex.main(CheckIndex.java:2786)

there is no Elastic upgrade performed on this setup, it was working previously on same ES version version 7.16.3.

help me to recover my index without data loss.

---

<div class="post-metadata">

**Author:** ![vishalbhandari](https://avatars.discourse-cdn.com/v4/letter/v/f07891/32.png) [@vishalbhandari](https://discuss.elastic.co/u/vishalbhandari)\
**Post date:** [November 2, 2022, 1:58pm UTC](https://discuss.elastic.co/t/index-red-with-error-this-version-of-lucene-only-supports-indexes-created-with-release-6-0-and-later/317975/2 "2022-11-02T13:58:56Z")

</div>

incorrect segment file :

INDX( ÜÜ@ß! ( 8 è Ø C Ä\<µžRÎêØ\>uÎêØ\>uÎêØ\>uÎêØ m e t a \_ d a t a C Ä\<µžRÎêØ\>uÎêØ\>uÎêØ\>uÎêØ M E T A \_ D ~ 1 µžRÎêØµžRÎêØµžRÎêØµžRÎêØ M E T A \_ D ~ 1 C Ä\<µžRÎêØµžRÎêØµžRÎêØµžRÎêØ M E T A \_ D ~ 1 C Ä\<µžRÎêØµžRÎê µžRÎêØµžRÎêØ M E T A \_ D ~ 1 µžRÎêØµžRÎêØµžRÎêØµžRÎêØ M E T A \_ D ~ 1 üÉ›u \_2jq1£êˆ÷èoR®Ó:üÉ›xLucene87ÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ £êˆ÷èoR®Ó:üÉ›z alocal\_checkpoint118349max\_unsafe\_auto\_id\_timestamp-1  
translog\_uuidhgWDoc7ySF2gLkRXXe3bcQmin\_retained\_seq\_no118313history\_uuid\_KmUz15SRJ2ug1AskMN4MQ  
es\_version7.16.3  
max\_seq\_no118349À(“è 3Í·

old correct segment file :

| ?×lsegments | öº |
| --- | --- |
| FŠé\_Tû¾é6ws =Uß× \_wl5aÈð-#æîSoÎÍÕLucene80ÿÿÿÿÿÿÿÿ P P R\_wl5\_28.fnm \_wl5\_28\_Lucene80\_0.dvm\_wl5\_28\_Lucene80\_0.dvd\_xy4JFû‹èÝ¦hYà2V·Lucene80ÿÿÿÿÿÿÿÿ |   
\_xy4\_1.fnm \_xy4\_1\_Lucene80\_0.dvm\_xy4\_1\_Lucene80\_0.dvd\_xy6öº  
FŠé\_Tû¾éLucene80ÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ local\_checkpoint47552max\_unsafe\_auto\_id\_timestamp-1translog\_uuidhgWDoc7ySF2gLkRXXe3bcQmin\_retained\_seq\_no47553history\_uuid\_KmUz15SRJ2ug1AskMN4MQtranslog\_generation4636async\_idCZixmj21SeyHhBSwc9bpGQ  
max\_seq\_no47552À(“è mXuº |

---

<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:** [November 2, 2022, 11:11pm UTC](https://discuss.elastic.co/t/index-red-with-error-this-version-of-lucene-only-supports-indexes-created-with-release-6-0-and-later/317975/3 "2022-11-02T23:11:12Z")

</div>

Welcome to our community! 😃

How did the index become red?

---

<div class="post-metadata">

**Author:** ![vishalbhandari](https://avatars.discourse-cdn.com/v4/letter/v/f07891/32.png) [@vishalbhandari](https://discuss.elastic.co/u/vishalbhandari)\
**Post date:** [November 3, 2022, 5:31am UTC](https://discuss.elastic.co/t/index-red-with-error-this-version-of-lucene-only-supports-indexes-created-with-release-6-0-and-later/317975/4 "2022-11-03T05:31:21Z")

</div>

Thanks warkolm for reply,  
System got restarted due to some Windows upgrade and after that it start showing RED, Segment file which was there have different format its starting with "INDX( " while correct one was starting with "?×lsegments", dont know how it happened but now not able to recover it ☹

---

<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:** [December 1, 2022, 5:31am UTC](https://discuss.elastic.co/t/index-red-with-error-this-version-of-lucene-only-supports-indexes-created-with-release-6-0-and-later/317975/5 "2022-12-01T05:31:40Z")

</div>

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