org.apache.lucene.index.CorruptIndexException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by Subho Majumdar,
  • [fcrepo-user] problems with GSearch + Solr
    via by Swithun Crowe,
  • 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.
    via by eXo SWF Team,
  • 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.
    via by eXo SWF Team,
  • wso2 EMM Could not instantiate Solr client
    via Stack Overflow by Nagarjuna
    ,
  • Comparing Documents: Result is NaN
    via by Reinald Kim Amplayo,
  • CorruptIndexException in tasklist index
    via by benjamin.muskalla,
    • 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)
    No Bugmate found.