Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-1207

After remote index download fails, reindex of repo continues to fail

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.2, 1.3
    • Component/s: Search
    • Labels:
      None

      Description

      I was testing some proxy server settings, and blocked central on my local proxy server, i then launched nexus, and marked central to download remote indexes, which then failed as i would expect. I then attempted to reindex, and all reindex attempts from this point forward, result in the following error

      s Strack trace: java.io.IOException: Cannot delete C:\Development\Code\nexus-commercial\nexus-enterprise-webapp\target\sonatype-work\nexus\indexer\central-local_4.cfs
      jvm 1 | at org.apache.lucene.store.FSDirectory.deleteFile(FSDirectory.java:357)
      jvm 1 | at org.sonatype.nexus.index.context.DefaultIndexingContext.deleteIndexFiles(DefaultIndexingContext.java:283)
      jvm 1 | at org.sonatype.nexus.index.context.DefaultIndexingContext.replace(DefaultIndexingContext.java:501)
      jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:978)
      jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:922)
      jvm 1 | at org.sonatype.nexus.DefaultNexus.reindexRepository(DefaultNexus.java:1399)
      jvm 1 | at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:47)
      jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:147)
      jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345)
      jvm 1 | at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      jvm 1 | at java.util.concurrent.FutureTask.run(Unknown Source)
      jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
      jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
      jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      jvm 1 | at java.lang.Thread.run(Unknown Source)
      jvm 1 |
      jvm 1 | java.io.IOException: Cannot delete C:\Development\Code\nexus-commercial\nexus-enterprise-webapp\target\sonatype-work\nexus\indexer\central-local_4.cfs
      jvm 1 | at org.apache.lucene.store.FSDirectory.deleteFile(FSDirectory.java:357)
      jvm 1 | at org.sonatype.nexus.index.context.DefaultIndexingContext.deleteIndexFiles(DefaultIndexingContext.java:283)
      jvm 1 | at org.sonatype.nexus.index.context.DefaultIndexingContext.replace(DefaultIndexingContext.java:501)
      jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:978)
      jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:922)
      jvm 1 | at org.sonatype.nexus.DefaultNexus.reindexRepository(DefaultNexus.java:1399)
      jvm 1 | at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:47)
      jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:147)
      jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345)
      jvm 1 | at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      jvm 1 | at java.util.concurrent.FutureTask.run(Unknown Source)
      jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
      jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
      jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      jvm 1 | at java.lang.Thread.run(Unknown Source)

        Attachments

          Activity

            People

            • Assignee:
              dbradicich Damian Bradicich
              Reporter:
              bdemers Brian Demers
              Last Updated By:
              Rich Seddon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: