org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on path "/.index/" in repository "new-repo"!

Sonatype JIRA | Rich Seddon | 6 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    This is in nexus-onboarding-webapp-1.9-20101229.172727-19-bundle.zip (which has Indexer Lucene SVN #7683). After adding a new hosted Maven 2 repository there is an exception in the log: {noformat} 2010-12-29 14:49:33 INFO [p-1355010146-22] - org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry - Added repository ID='new-repo' (contentClass='maven2', mainFacet='org.sonatype.nexus.proxy.maven.MavenHostedRepository') 2010-12-29 14:49:33 INFO [p-1355010146-22] - org.sonatype.nexus.configuration.application.DefaultNexusConfiguration - Applying Nexus Configuration... 2010-12-29 14:49:33 INFO [p-1355010146-22] - org.sonatype.nexus.configuration.validator.DefaultApplicationConfigurationValidator - Nexus configuration validated succesfully. 2010-12-29 14:49:33 INFO [p-1355010146-22] - org.sonatype.nexus.configuration.application.DefaultNexusConfiguration - Applying Nexus Configuration... 2010-12-29 14:49:33 INFO [p-1355010146-22] - org.sonatype.nexus.configuration.validator.DefaultApplicationConfigurationValidator - Nexus configuration validated succesfully. 2010-12-29 14:49:33 INFO [ool-1-thread-10] - org.sonatype.nexus.feeds.DefaultFeedRecorder - Reparing repository index new-repo from path null and below. : Process started on Wed Dec 29 14:49:33 CST 2010, not yet finished. 2010-12-29 14:49:33 ERROR [ool-1-thread-10] - org.sonatype.nexus.index.DefaultIndexerManager - Cannot delete index items! org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on path "/.index/" in repository "new-repo"! at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.retrieveItemFromFile(DefaultFSLocalRepositoryStorage.java:289) at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.retrieveItem(DefaultFSLocalRepositoryStorage.java:312) at org.sonatype.nexus.proxy.repository.AbstractRepository.deleteItem(AbstractRepository.java:931) at org.sonatype.nexus.index.DefaultIndexerManager.deleteIndexItems(DefaultIndexerManager.java:1297) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:865) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:805) at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:55) at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:54) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:187) 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:206) 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:680) 2010-12-29 14:49:33 INFO [ool-1-thread-10] - org.sonatype.nexus.index.DefaultIndexerManager - Publishing best index for repository new-repo 2010-12-29 14:49:33 INFO [ool-1-thread-10] - org.apache.maven.index.packer.DefaultIndexPacker - Unable to read properties file, will force index regeneration 2010-12-29 14:49:33 INFO [ool-1-thread-10] - org.sonatype.nexus.feeds.DefaultFeedRecorder - Reparing repository index new-repo from path null and below. : Process started on Wed Dec 29 14:49:33 CST 2010, finished successfully on Wed Dec 29 14:49:33 CST 2010 {noformat}

    Sonatype JIRA | 6 years ago | Rich Seddon
    org.sonatype.nexus.proxy.ItemNotFoundException: Item not found on path "/.index/" in repository "new-repo"!

    Root Cause Analysis

    1. org.sonatype.nexus.proxy.ItemNotFoundException

      Item not found on path "/.index/" in repository "new-repo"!

      at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.retrieveItemFromFile()
    2. ${project.groupId}:${project.artifactId}
      AbstractRepository.deleteItem
      1. org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.retrieveItemFromFile(DefaultFSLocalRepositoryStorage.java:289)
      2. org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.retrieveItem(DefaultFSLocalRepositoryStorage.java:312)
      3. org.sonatype.nexus.proxy.repository.AbstractRepository.deleteItem(AbstractRepository.java:931)
      3 frames
    3. Sonatype Nexus Indexer
      DefaultIndexerManager.reindexRepository
      1. org.sonatype.nexus.index.DefaultIndexerManager.deleteIndexItems(DefaultIndexerManager.java:1297)
      2. org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:865)
      3. org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:805)
      3 frames
    4. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:55)
      2. org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:54)
      3. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:187)
      3 frames
    5. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338)
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      7. java.lang.Thread.run(Thread.java:680)
      7 frames