org.apache.lucene.index.CorruptIndexException: Unknown format version: -9

Sonatype JIRA | Subho Majumdar | 5 years ago
  1. 0

    We are using Nexus 1.2.1. Recently while doing a re-index of the proxy repository(for Maven Central )in Nexus, it showed the following error in log and from then on the maven builds are failing to download artifacts from this proxy repository - 2011-12-12 11:32:27,000 INFO [org.sonatype.nexus.index.IndexerManager:default] - Trying to get remote index for repository central 2011-12-12 11:32:36,777 WARN [org.sonatype.nexus.index.IndexerManager:default] - Cannot fetch remote index: org.apache.lucene.index.CorruptIndexException: Unknown format version: -9 at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:211) at org.apache.lucene.index.DirectoryIndexReader$1.doBody(DirectoryIndexReader.java:68) at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:636) at org.apache.lucene.index.DirectoryIndexReader.open(DirectoryIndexReader.java:63) at org.apache.lucene.index.IndexReader.open(IndexReader.java:209) at org.apache.lucene.index.IndexReader.open(IndexReader.java:192) at org.sonatype.nexus.index.IndexUtils.filterDirectory(IndexUtils.java:281) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:166) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:89) at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:977) at org.sonatype.nexus.index.DefaultIndexerManager.updateIndexForRemoteRepository(DefaultIndexerManager.java:860) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:750) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:692) at org.sonatype.nexus.DefaultNexus.reindexRepository(DefaultNexus.java:1397) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:47) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:147) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) 2011-12-12 11:32:36,779 INFO [org.sonatype.nexus.index.IndexerManager:default] - Cascading merge of group indexes for group 'public', where repository 'central' is member. Please note that we use Nexus behind our corporate proxy and the urls - http://repo1.maven.org/maven2/ , http://mirrors.ibiblio.org/pub/mirrors/maven2/dot-index/ are whitelisted in the corporate proxy, so there should not be any problem downloading artifacts from Maven Central. Appreciate an early solution on this.

    Sonatype JIRA | 5 years ago | Subho Majumdar
    org.apache.lucene.index.CorruptIndexException: Unknown format version: -9
  2. 0

    It seems that Nexus didn't received the index from jfrog (or it was corrupted) : 2010-01-02 10:09:17 INFO [pool-1-thread-4] - o.s.n.i.IndexerMana~ - Trying to get remote index for repository jfrog-releases 2010-01-02 10:09:17 INFO [pool-1-thread-4] - o.s.n.p.r.Repository:maven2 - Expiring local cache in repository ID='jfrog-releases' from path='/.index' 2010-01-02 10:09:17 INFO [pool-1-thread-4] - o.s.n.p.r.Repository:maven2 - Clearing NFC cache in repository ID='jfrog-releases' from path='/.index' 2010-01-02 10:09:18 WARN [pool-1-thread-4] - o.s.n.i.IndexerMana~ - Cannot fetch remote index for repository jfrog-releases org.apache.lucene.index.CorruptIndexException: Unknown format version: -7 at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:211) at org.apache.lucene.index.DirectoryIndexReader$1.doBody(DirectoryIndexReader.java:68) at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:636) at org.apache.lucene.index.DirectoryIndexReader.open(DirectoryIndexReader.java:63) at org.apache.lucene.index.IndexReader.open(IndexReader.java:209) at org.apache.lucene.index.IndexReader.open(IndexReader.java:192) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.copyUpdatedDocuments(DefaultIndexUpdater.java:388) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.unpackIndexArchive(DefaultIndexUpdater.java:325) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:251) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:157) at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1234) at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:1115) at org.sonatype.nexus.index.DefaultIndexerManager.downloadAllIndex(DefaultIndexerManager.java:1036) at org.sonatype.nexus.tasks.DownloadIndexesTask.doRun(DownloadIndexesTask.java:54) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) I don't know if it can damage Nexus and our own index.

    Sonatype JIRA | 7 years ago | eXo SWF Team
    org.apache.lucene.index.CorruptIndexException: Unknown format version: -7
  3. 0

    It seems that Nexus didn't received the index from jfrog (or it was corrupted) : 2010-01-02 10:09:17 INFO [pool-1-thread-4] - o.s.n.i.IndexerMana~ - Trying to get remote index for repository jfrog-releases 2010-01-02 10:09:17 INFO [pool-1-thread-4] - o.s.n.p.r.Repository:maven2 - Expiring local cache in repository ID='jfrog-releases' from path='/.index' 2010-01-02 10:09:17 INFO [pool-1-thread-4] - o.s.n.p.r.Repository:maven2 - Clearing NFC cache in repository ID='jfrog-releases' from path='/.index' 2010-01-02 10:09:18 WARN [pool-1-thread-4] - o.s.n.i.IndexerMana~ - Cannot fetch remote index for repository jfrog-releases org.apache.lucene.index.CorruptIndexException: Unknown format version: -7 at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:211) at org.apache.lucene.index.DirectoryIndexReader$1.doBody(DirectoryIndexReader.java:68) at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:636) at org.apache.lucene.index.DirectoryIndexReader.open(DirectoryIndexReader.java:63) at org.apache.lucene.index.IndexReader.open(IndexReader.java:209) at org.apache.lucene.index.IndexReader.open(IndexReader.java:192) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.copyUpdatedDocuments(DefaultIndexUpdater.java:388) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.unpackIndexArchive(DefaultIndexUpdater.java:325) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:251) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:157) at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1234) at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:1115) at org.sonatype.nexus.index.DefaultIndexerManager.downloadAllIndex(DefaultIndexerManager.java:1036) at org.sonatype.nexus.tasks.DownloadIndexesTask.doRun(DownloadIndexesTask.java:54) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) I don't know if it can damage Nexus and our own index.

    Sonatype JIRA | 7 years ago | eXo SWF Team
    org.apache.lucene.index.CorruptIndexException: Unknown format version: -7
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    wso2 EMM Could not instantiate Solr client

    Stack Overflow | 1 year ago | Nagarjuna
    java.lang.RuntimeException: org.apache.lucene.index.CorruptIndexException: doc counts differ for segment _44: fieldsReader shows 33 but segmentInfo shows 11
  6. 0

    Migrate from 2.4.4 to 2.6.4: Unknown format version: -11

    jackrabbit-users | 3 years ago | Robert Haycock
    javax.jcr.RepositoryException: Unable to initialize query handler: com.artisol.teneobackend.search.TeneoSearchIndex@651f684

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.lucene.index.CorruptIndexException

      Unknown format version: -9

      at org.apache.lucene.index.SegmentInfos.read()
    2. Lucene
      IndexReader.open
      1. org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:211)
      2. org.apache.lucene.index.DirectoryIndexReader$1.doBody(DirectoryIndexReader.java:68)
      3. org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:636)
      4. org.apache.lucene.index.DirectoryIndexReader.open(DirectoryIndexReader.java:63)
      5. org.apache.lucene.index.IndexReader.open(IndexReader.java:209)
      6. org.apache.lucene.index.IndexReader.open(IndexReader.java:192)
      6 frames
    3. Sonatype Nexus Indexer
      DefaultIndexerManager.reindexRepository
      1. org.sonatype.nexus.index.IndexUtils.filterDirectory(IndexUtils.java:281)
      2. org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:166)
      3. org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:89)
      4. org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:977)
      5. org.sonatype.nexus.index.DefaultIndexerManager.updateIndexForRemoteRepository(DefaultIndexerManager.java:860)
      6. org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:750)
      7. org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:692)
      7 frames
    4. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.DefaultNexus.reindexRepository(DefaultNexus.java:1397)
      2. org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:47)
      3. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:147)
      3 frames
    5. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345)
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:123)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      7. java.lang.Thread.run(Thread.java:595)
      7 frames