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

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(
at org.apache.lucene.index.SegmentInfos.readCommit(
at org.apache.lucene.index.CheckIndex.checkIndex(
at org.apache.lucene.index.CheckIndex.doCheck(
at org.apache.lucene.index.CheckIndex.doMain(
at org.apache.lucene.index.CheckIndex.main(

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.

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
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º

Welcome to our community! :smiley:

How did the index become red?

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 :frowning:

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