java.io.IOException: File C:\Documents and Settings\Kristine\sonatype-work\nexus-work\trash\central_rso\.index\nexus-maven-repository-index.zip unable to be deleted.

Sonatype JIRA | Kristine O'Connor | 8 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

    Using the war, execute a task of Empty Trash => Although the system feed shows that the empty trash task starts and successfully finishes, the scheduled task page shows a status of Broken. In looking at the Trash folder for the war structure, the files and folders are removed successfully. From the nexus.log: 2008-11-05 15:29:13.281 INFO [pxpool-1-thread-3:] - org.sonatype.nexus.feeds.FeedRecorder:default: Emptying Trash. : Process started on Wed Nov 05 15:29:13 MST 2008, not yet finished. 2008-11-05 15:29:14.343 DEBUG [http--8080-5:] - org.sonatype.nexus.security.filter.authz.HttpVerbMappingAuthorizationFilter: MAPPED 'read' action to permission: nexus:repositories:read 2008-11-05 15:29:14.406 INFO [pxpool-1-thread-3:] - org.sonatype.nexus.feeds.FeedRecorder:default: Emptying Trash. : Process started on Wed Nov 05 15:29:13 MST 2008, finished on Wed Nov 05 15:29:14 MST 2008 with error. Error message is: java.io.IOException, File C:\Documents and Settings\Kristine\sonatype-work\nexus-work\trash\central_rso\.index\nexus-maven-repository-index.zip unable to be deleted. Strack trace: java.io.IOException: File C:\Documents and Settings\Kristine\sonatype-work\nexus-work\trash\central_rso\.index\nexus-maven-repository-index.zip unable to be deleted. at org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1279) at org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java:1507) at org.codehaus.plexus.util.FileUtils.deleteDirectory(FileUtils.java:1458) at org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1272) at org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java:1507) at org.codehaus.plexus.util.FileUtils.deleteDirectory(FileUtils.java:1458) at org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1272) at org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java:1507) at org.sonatype.nexus.proxy.wastebasket.DefaultFSWastebasket.purge(DefaultFSWastebasket.java:110) at org.sonatype.nexus.tasks.EmptyTrashTask.doRun(EmptyTrashTask.java:48) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:142) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345) 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:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) java.io.IOException: File C:\Documents and Settings\Kristine\sonatype-work\nexus-work\trash\central_rso\.index\nexus-maven-repository-index.zip unable to be deleted. at org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1279) at org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java:1507) at org.codehaus.plexus.util.FileUtils.deleteDirectory(FileUtils.java:1458) at org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1272) at org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java:1507) at org.codehaus.plexus.util.FileUtils.deleteDirectory(FileUtils.java:1458) at org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1272) at org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java:1507) at org.sonatype.nexus.proxy.wastebasket.DefaultFSWastebasket.purge(DefaultFSWastebasket.java:110) at org.sonatype.nexus.tasks.EmptyTrashTask.doRun(EmptyTrashTask.java:48) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:142) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345) 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:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) 2008-11-05 15:29:24.890 INFO [pxpool-1-thread-4:] - org.sonatype.nexus.feeds.FeedRecorder:default: Removing folder with repository ID: central_rso : Process started on Wed Nov 05 15:29:08 MST 2008, finished successfu

    Sonatype JIRA | 8 years ago | Kristine O'Connor
    java.io.IOException: File C:\Documents and Settings\Kristine\sonatype-work\nexus-work\trash\central_rso\.index\nexus-maven-repository-index.zip unable to be deleted.
  2. 0

    Using the war, execute a task of Empty Trash => Although the system feed shows that the empty trash task starts and successfully finishes, the scheduled task page shows a status of Broken. In looking at the Trash folder for the war structure, the files and folders are removed successfully. From the nexus.log: 2008-11-05 15:29:13.281 INFO [pxpool-1-thread-3:] - org.sonatype.nexus.feeds.FeedRecorder:default: Emptying Trash. : Process started on Wed Nov 05 15:29:13 MST 2008, not yet finished. 2008-11-05 15:29:14.343 DEBUG [http--8080-5:] - org.sonatype.nexus.security.filter.authz.HttpVerbMappingAuthorizationFilter: MAPPED 'read' action to permission: nexus:repositories:read 2008-11-05 15:29:14.406 INFO [pxpool-1-thread-3:] - org.sonatype.nexus.feeds.FeedRecorder:default: Emptying Trash. : Process started on Wed Nov 05 15:29:13 MST 2008, finished on Wed Nov 05 15:29:14 MST 2008 with error. Error message is: java.io.IOException, File C:\Documents and Settings\Kristine\sonatype-work\nexus-work\trash\central_rso\.index\nexus-maven-repository-index.zip unable to be deleted. Strack trace: java.io.IOException: File C:\Documents and Settings\Kristine\sonatype-work\nexus-work\trash\central_rso\.index\nexus-maven-repository-index.zip unable to be deleted. at org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1279) at org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java:1507) at org.codehaus.plexus.util.FileUtils.deleteDirectory(FileUtils.java:1458) at org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1272) at org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java:1507) at org.codehaus.plexus.util.FileUtils.deleteDirectory(FileUtils.java:1458) at org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1272) at org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java:1507) at org.sonatype.nexus.proxy.wastebasket.DefaultFSWastebasket.purge(DefaultFSWastebasket.java:110) at org.sonatype.nexus.tasks.EmptyTrashTask.doRun(EmptyTrashTask.java:48) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:142) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345) 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:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) java.io.IOException: File C:\Documents and Settings\Kristine\sonatype-work\nexus-work\trash\central_rso\.index\nexus-maven-repository-index.zip unable to be deleted. at org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1279) at org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java:1507) at org.codehaus.plexus.util.FileUtils.deleteDirectory(FileUtils.java:1458) at org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1272) at org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java:1507) at org.codehaus.plexus.util.FileUtils.deleteDirectory(FileUtils.java:1458) at org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1272) at org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java:1507) at org.sonatype.nexus.proxy.wastebasket.DefaultFSWastebasket.purge(DefaultFSWastebasket.java:110) at org.sonatype.nexus.tasks.EmptyTrashTask.doRun(EmptyTrashTask.java:48) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:142) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345) 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:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) 2008-11-05 15:29:24.890 INFO [pxpool-1-thread-4:] - org.sonatype.nexus.feeds.FeedRecorder:default: Removing folder with repository ID: central_rso : Process started on Wed Nov 05 15:29:08 MST 2008, finished successfu

    Sonatype JIRA | 8 years ago | Kristine O'Connor
    java.io.IOException: File C:\Documents and Settings\Kristine\sonatype-work\nexus-work\trash\central_rso\.index\nexus-maven-repository-index.zip unable to be deleted.

    Root Cause Analysis

    1. java.io.IOException

      File C:\Documents and Settings\Kristine\sonatype-work\nexus-work\trash\central_rso\.index\nexus-maven-repository-index.zip unable to be deleted.

      at org.codehaus.plexus.util.FileUtils.forceDelete()
    2. Plexus Common Utilities
      FileUtils.cleanDirectory
      1. org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1279)
      2. org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java:1507)
      3. org.codehaus.plexus.util.FileUtils.deleteDirectory(FileUtils.java:1458)
      4. org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1272)
      5. org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java:1507)
      6. org.codehaus.plexus.util.FileUtils.deleteDirectory(FileUtils.java:1458)
      7. org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1272)
      8. org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java:1507)
      8 frames
    3. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.proxy.wastebasket.DefaultFSWastebasket.purge(DefaultFSWastebasket.java:110)
      2. org.sonatype.nexus.tasks.EmptyTrashTask.doRun(EmptyTrashTask.java:48)
      3. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:142)
      3 frames
    4. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:345)
      1 frame
    5. 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:207)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      7. java.lang.Thread.run(Thread.java:619)
      7 frames