org.apache.lucene.index.IndexFormatTooOldException: Format version is not suppor ted (resource: NIOFSIndexInput(path="/edocur40/solr/statistics/data/index/_1fa6. fdx")): 1 (needs to be between 2 and 3). This version of Lucene only supports in dexes created with release 3.0 and later.

Sakai JIRA | Humberto Blanco | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    i migrate /solr/statistics/data/index folder from Dspace 1.7.2 to Dspace 4; when i follow the steps (https://jira.duraspace.org/browse/DS-1776) and obtain this: linux-fbmu:/edocur40/solr/statistics/data/index # java -cp /instaladores/lucene- core-3.5.0.jar org.apache.lucene.index.CheckIndex /edocur40/solr/statistics/data /index/ NOTE: testing will be more thorough if you run java with '-ea:org.apache.lucene. ..', so assertions are enabled Opening index @ /edocur40/solr/statistics/data/index/ Segments file=segments_1a1p numSegments=7 version=2.x format=FORMAT_DIAGNOSTICS [Lucene 2.9] 1 of 7: name=_1fa6 docCount=9679101 compound=false hasProx=true numFiles=7 size (MB)=2.515,959 diagnostics = {optimize=true, mergeFactor=2, os.version=2.6.16.60-0.21-bigsm p, os=Linux, mergeDocStores=true, lucene.version=2.9.3 951790 - 2010-06-06 01:30 :55, source=merge, os.arch=i386, java.version=1.6.0_37, java.vendor=Sun Microsys tems Inc.} no deletions test: open reader.........OK test: fields..............OK [17 fields] test: field norms.........OK [0 fields] test: terms, freq, prox...OK [12062073 terms; 127644285 terms/docs pairs; 13 4557320 tokens] test: stored fields.......OK [134557320 total field count; avg 13,902 fields per doc] test: term vectors........OK [0 total vector count; avg 0 term/freq vector f ields per doc] 2 of 7: name=_1fbl docCount=1851 compound=false hasProx=true numFiles=7 size (MB)=0,582 diagnostics = {optimize=false, mergeFactor=10, os.version=2.6.16.60-0.21-big smp, os=Linux, mergeDocStores=true, lucene.version=2.9.3 951790 - 2010-06-06 01: 30:55, source=merge, os.arch=i386, java.version=1.6.0_37, java.vendor=Sun Micros ystems Inc.} no deletions test: open reader.........OK test: fields..............OK [15 fields] test: field norms.........OK [0 fields] test: terms, freq, prox...OK [4796 terms; 27215 terms/docs pairs; 28579 toke ns] test: stored fields.......OK [28579 total field count; avg 15,44 fields per doc] test: term vectors........OK [0 total vector count; avg 0 term/freq vector f ields per doc] 3 of 7: name=_1fbm docCount=87 compound=false hasProx=true numFiles=8 size (MB)=0,029 diagnostics = {os.version=2.6.16.60-0.21-bigsmp, os=Linux, lucene.version=2. 9.3 951790 - 2010-06-06 01:30:55, source=flush, os.arch=i386, java.version=1.6.0 _37, java.vendor=Sun Microsystems Inc.} no deletions test: open reader.........OK test: fields..............OK [15 fields] test: field norms.........OK [0 fields] test: terms, freq, prox...OK [399 terms; 1245 terms/docs pairs; 1308 tokens] test: stored fields.......OK [1308 total field count; avg 15,034 fields per doc] test: term vectors........OK [0 total vector count; avg 0 term/freq vector f ields per doc] 4 of 7: name=_1fbn docCount=119 compound=false hasProx=true numFiles=8 size (MB)=0,04 diagnostics = {os.version=2.6.16.60-0.21-bigsmp, os=Linux, lucene.version=2. 9.3 951790 - 2010-06-06 01:30:55, source=flush, os.arch=i386, java.version=1.6.0 _37, java.vendor=Sun Microsystems Inc.} no deletions test: open reader.........OK test: fields..............OK [16 fields] test: field norms.........OK [0 fields] test: terms, freq, prox...OK [505 terms; 1738 terms/docs pairs; 1832 tokens] test: stored fields.......OK [1832 total field count; avg 15,395 fields per doc] test: term vectors........OK [0 total vector count; avg 0 term/freq vector f ields per doc] 5 of 7: name=_1fbo docCount=125 compound=false hasProx=true numFiles=8 size (MB)=0,041 diagnostics = {os.version=2.6.16.60-0.21-bigsmp, os=Linux, lucene.version=2. 9.3 951790 - 2010-06-06 01:30:55, source=flush, os.arch=i386, java.version=1.6.0 _37, java.vendor=Sun Microsystems Inc.} no deletions test: open reader.........OK test: fields..............OK [15 fields] test: field norms.........OK [0 fields] test: terms, freq, prox...OK [491 terms; 1823 terms/docs pairs; 1924 tokens] test: stored fields.......OK [1924 total field count; avg 15,392 fields per doc] test: term vectors........OK [0 total vector count; avg 0 term/freq vector f ields per doc] 6 of 7: name=_1fbp docCount=109 compound=false hasProx=true numFiles=8 size (MB)=0,036 diagnostics = {os.version=2.6.16.60-0.21-bigsmp, os=Linux, lucene.version=2. 9.3 951790 - 2010-06-06 01:30:55, source=flush, os.arch=i386, java.version=1.6.0 _37, java.vendor=Sun Microsystems Inc.} no deletions test: open reader.........OK test: fields..............OK [15 fields] test: field norms.........OK [0 fields] test: terms, freq, prox...OK [502 terms; 1579 terms/docs pairs; 1671 tokens] test: stored fields.......OK [1671 total field count; avg 15,33 fields per d oc] test: term vectors........OK [0 total vector count; avg 0 term/freq vector f ields per doc] 7 of 7: name=_1fbq docCount=269 compound=false hasProx=true numFiles=8 size (MB)=0,08 diagnostics = {os.version=2.6.16.60-0.21-bigsmp, os=Linux, lucene.version=2. 9.3 951790 - 2010-06-06 01:30:55, source=flush, os.arch=i386, java.version=1.6.0 _37, java.vendor=Sun Microsystems Inc.} no deletions test: open reader.........OK test: fields..............OK [15 fields] test: field norms.........OK [0 fields] test: terms, freq, prox...OK [661 terms; 3393 terms/docs pairs; 3506 tokens] test: stored fields.......OK [3506 total field count; avg 13,033 fields per doc] test: term vectors........OK [0 total vector count; avg 0 term/freq vector f ields per doc] No problems were detected with this index. Works fine, and review the output with lucene- core-4.4.0 linux-fbmu:/edocur40/solr/statistics/data/index # java -cp /instaladores/lucene- core-4.4.0.jar org.apache.lucene.index.CheckIndex /edocur40/solr/statistics/data /index/ NOTE: testing will be more thorough if you run java with '-ea:org.apache.lucene. ..', so assertions are enabled Opening index @ /edocur40/solr/statistics/data/index/ ERROR: could not read any segments file in directory org.apache.lucene.index.IndexFormatTooOldException: Format version is not suppor ted (resource: NIOFSIndexInput(path="/edocur40/solr/statistics/data/index/_1fa6. fdx")): 1 (needs to be between 2 and 3). This version of Lucene only supports in dexes created with release 3.0 and later. at org.apache.lucene.codecs.lucene3x.Lucene3xStoredFieldsReader.checkCod eVersion(Lucene3xStoredFieldsReader.java:119) at org.apache.lucene.codecs.lucene3x.Lucene3xSegmentInfoReader.readLegac yInfos(Lucene3xSegmentInfoReader.java:74) at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:345) at org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:380) at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfo s.java:812) at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfo s.java:663) at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:376) at org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:382) at org.apache.lucene.index.CheckIndex.main(CheckIndex.java:1854) that its correct. but if i try to execute : wget http://localhost:8080/solr/statistics/update?optimize=true obtain this error: asking libproxy about url 'http://localhost:8080/solr/statistics/update?optimize=true' libproxy suggest to use 'direct://' --2014-01-24 16:29:14-- http://localhost:8080/solr/statistics/update?optimize=true Resolving localhost (localhost)... 127.0.0.1 Connecting to localhost (localhost)|127.0.0.1|:8080... connected. HTTP request sent, awaiting response... 500 Internal Server Error 2014-01-24 16:29:14 ERROR 500: Internal Server Error. I dont know if need doing another step or what other its wrong... really apreciate all help.

    Sakai JIRA | 3 years ago | Humberto Blanco
    org.apache.lucene.index.IndexFormatTooOldException: Format version is not suppor ted (resource: NIOFSIndexInput(path="/edocur40/solr/statistics/data/index/_1fa6. fdx")): 1 (needs to be between 2 and 3). This version of Lucene only supports in dexes created with release 3.0 and later.
  2. 0

    i migrate /solr/statistics/data/index folder from Dspace 1.7.2 to Dspace 4; when i follow the steps (https://jira.duraspace.org/browse/DS-1776) and obtain this: linux-fbmu:/edocur40/solr/statistics/data/index # java -cp /instaladores/lucene- core-3.5.0.jar org.apache.lucene.index.CheckIndex /edocur40/solr/statistics/data /index/ NOTE: testing will be more thorough if you run java with '-ea:org.apache.lucene. ..', so assertions are enabled Opening index @ /edocur40/solr/statistics/data/index/ Segments file=segments_1a1p numSegments=7 version=2.x format=FORMAT_DIAGNOSTICS [Lucene 2.9] 1 of 7: name=_1fa6 docCount=9679101 compound=false hasProx=true numFiles=7 size (MB)=2.515,959 diagnostics = {optimize=true, mergeFactor=2, os.version=2.6.16.60-0.21-bigsm p, os=Linux, mergeDocStores=true, lucene.version=2.9.3 951790 - 2010-06-06 01:30 :55, source=merge, os.arch=i386, java.version=1.6.0_37, java.vendor=Sun Microsys tems Inc.} no deletions test: open reader.........OK test: fields..............OK [17 fields] test: field norms.........OK [0 fields] test: terms, freq, prox...OK [12062073 terms; 127644285 terms/docs pairs; 13 4557320 tokens] test: stored fields.......OK [134557320 total field count; avg 13,902 fields per doc] test: term vectors........OK [0 total vector count; avg 0 term/freq vector f ields per doc] 2 of 7: name=_1fbl docCount=1851 compound=false hasProx=true numFiles=7 size (MB)=0,582 diagnostics = {optimize=false, mergeFactor=10, os.version=2.6.16.60-0.21-big smp, os=Linux, mergeDocStores=true, lucene.version=2.9.3 951790 - 2010-06-06 01: 30:55, source=merge, os.arch=i386, java.version=1.6.0_37, java.vendor=Sun Micros ystems Inc.} no deletions test: open reader.........OK test: fields..............OK [15 fields] test: field norms.........OK [0 fields] test: terms, freq, prox...OK [4796 terms; 27215 terms/docs pairs; 28579 toke ns] test: stored fields.......OK [28579 total field count; avg 15,44 fields per doc] test: term vectors........OK [0 total vector count; avg 0 term/freq vector f ields per doc] 3 of 7: name=_1fbm docCount=87 compound=false hasProx=true numFiles=8 size (MB)=0,029 diagnostics = {os.version=2.6.16.60-0.21-bigsmp, os=Linux, lucene.version=2. 9.3 951790 - 2010-06-06 01:30:55, source=flush, os.arch=i386, java.version=1.6.0 _37, java.vendor=Sun Microsystems Inc.} no deletions test: open reader.........OK test: fields..............OK [15 fields] test: field norms.........OK [0 fields] test: terms, freq, prox...OK [399 terms; 1245 terms/docs pairs; 1308 tokens] test: stored fields.......OK [1308 total field count; avg 15,034 fields per doc] test: term vectors........OK [0 total vector count; avg 0 term/freq vector f ields per doc] 4 of 7: name=_1fbn docCount=119 compound=false hasProx=true numFiles=8 size (MB)=0,04 diagnostics = {os.version=2.6.16.60-0.21-bigsmp, os=Linux, lucene.version=2. 9.3 951790 - 2010-06-06 01:30:55, source=flush, os.arch=i386, java.version=1.6.0 _37, java.vendor=Sun Microsystems Inc.} no deletions test: open reader.........OK test: fields..............OK [16 fields] test: field norms.........OK [0 fields] test: terms, freq, prox...OK [505 terms; 1738 terms/docs pairs; 1832 tokens] test: stored fields.......OK [1832 total field count; avg 15,395 fields per doc] test: term vectors........OK [0 total vector count; avg 0 term/freq vector f ields per doc] 5 of 7: name=_1fbo docCount=125 compound=false hasProx=true numFiles=8 size (MB)=0,041 diagnostics = {os.version=2.6.16.60-0.21-bigsmp, os=Linux, lucene.version=2. 9.3 951790 - 2010-06-06 01:30:55, source=flush, os.arch=i386, java.version=1.6.0 _37, java.vendor=Sun Microsystems Inc.} no deletions test: open reader.........OK test: fields..............OK [15 fields] test: field norms.........OK [0 fields] test: terms, freq, prox...OK [491 terms; 1823 terms/docs pairs; 1924 tokens] test: stored fields.......OK [1924 total field count; avg 15,392 fields per doc] test: term vectors........OK [0 total vector count; avg 0 term/freq vector f ields per doc] 6 of 7: name=_1fbp docCount=109 compound=false hasProx=true numFiles=8 size (MB)=0,036 diagnostics = {os.version=2.6.16.60-0.21-bigsmp, os=Linux, lucene.version=2. 9.3 951790 - 2010-06-06 01:30:55, source=flush, os.arch=i386, java.version=1.6.0 _37, java.vendor=Sun Microsystems Inc.} no deletions test: open reader.........OK test: fields..............OK [15 fields] test: field norms.........OK [0 fields] test: terms, freq, prox...OK [502 terms; 1579 terms/docs pairs; 1671 tokens] test: stored fields.......OK [1671 total field count; avg 15,33 fields per d oc] test: term vectors........OK [0 total vector count; avg 0 term/freq vector f ields per doc] 7 of 7: name=_1fbq docCount=269 compound=false hasProx=true numFiles=8 size (MB)=0,08 diagnostics = {os.version=2.6.16.60-0.21-bigsmp, os=Linux, lucene.version=2. 9.3 951790 - 2010-06-06 01:30:55, source=flush, os.arch=i386, java.version=1.6.0 _37, java.vendor=Sun Microsystems Inc.} no deletions test: open reader.........OK test: fields..............OK [15 fields] test: field norms.........OK [0 fields] test: terms, freq, prox...OK [661 terms; 3393 terms/docs pairs; 3506 tokens] test: stored fields.......OK [3506 total field count; avg 13,033 fields per doc] test: term vectors........OK [0 total vector count; avg 0 term/freq vector f ields per doc] No problems were detected with this index. Works fine, and review the output with lucene- core-4.4.0 linux-fbmu:/edocur40/solr/statistics/data/index # java -cp /instaladores/lucene- core-4.4.0.jar org.apache.lucene.index.CheckIndex /edocur40/solr/statistics/data /index/ NOTE: testing will be more thorough if you run java with '-ea:org.apache.lucene. ..', so assertions are enabled Opening index @ /edocur40/solr/statistics/data/index/ ERROR: could not read any segments file in directory org.apache.lucene.index.IndexFormatTooOldException: Format version is not suppor ted (resource: NIOFSIndexInput(path="/edocur40/solr/statistics/data/index/_1fa6. fdx")): 1 (needs to be between 2 and 3). This version of Lucene only supports in dexes created with release 3.0 and later. at org.apache.lucene.codecs.lucene3x.Lucene3xStoredFieldsReader.checkCod eVersion(Lucene3xStoredFieldsReader.java:119) at org.apache.lucene.codecs.lucene3x.Lucene3xSegmentInfoReader.readLegac yInfos(Lucene3xSegmentInfoReader.java:74) at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:345) at org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:380) at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfo s.java:812) at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfo s.java:663) at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:376) at org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:382) at org.apache.lucene.index.CheckIndex.main(CheckIndex.java:1854) that its correct. but if i try to execute : wget http://localhost:8080/solr/statistics/update?optimize=true obtain this error: asking libproxy about url 'http://localhost:8080/solr/statistics/update?optimize=true' libproxy suggest to use 'direct://' --2014-01-24 16:29:14-- http://localhost:8080/solr/statistics/update?optimize=true Resolving localhost (localhost)... 127.0.0.1 Connecting to localhost (localhost)|127.0.0.1|:8080... connected. HTTP request sent, awaiting response... 500 Internal Server Error 2014-01-24 16:29:14 ERROR 500: Internal Server Error. I dont know if need doing another step or what other its wrong... really apreciate all help.

    Sakai JIRA | 3 years ago | Humberto Blanco
    org.apache.lucene.index.IndexFormatTooOldException: Format version is not suppor ted (resource: NIOFSIndexInput(path="/edocur40/solr/statistics/data/index/_1fa6. fdx")): 1 (needs to be between 2 and 3). This version of Lucene only supports in dexes created with release 3.0 and later.

    Root Cause Analysis

    1. org.apache.lucene.index.IndexFormatTooOldException

      Format version is not suppor ted (resource: NIOFSIndexInput(path="/edocur40/solr/statistics/data/index/_1fa6. fdx")): 1 (needs to be between 2 and 3). This version of Lucene only supports in dexes created with release 3.0 and later.

      at org.apache.lucene.codecs.lucene3x.Lucene3xStoredFieldsReader.checkCodeVersion()
    2. Lucene
      CheckIndex.main
      1. org.apache.lucene.codecs.lucene3x.Lucene3xStoredFieldsReader.checkCodeVersion(Lucene3xStoredFieldsReader.java:119)
      2. org.apache.lucene.codecs.lucene3x.Lucene3xSegmentInfoReader.readLegacyInfos(Lucene3xSegmentInfoReader.java:74)
      3. org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:345)
      4. org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:380)
      5. org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:812)
      6. org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:663)
      7. org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:376)
      8. org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:382)
      9. org.apache.lucene.index.CheckIndex.main(CheckIndex.java:1854)
      9 frames