org.sonatype.nexus.proxy.LocalStorageException: Cannot list directory in repository M2Repository(id=releases), path /app/nexus-testing/2.8.0-02/nexus-professional-2.8.0-02-bundle/sonatype-work/nexus/storage/releases/com/sonatype/sample

Sonatype JIRA | Peter Lynch | 3 years ago
  1. 0

    1. Add content to releases repo at least 4 levels deep. Example com/sonatype/sample/project 2. While Nexus is stopped -- delete any storage/releases/.meta/prefixes.txt in storage directories -- cd storage/releases/com/sonatype; chmod go-rx sample; sudo chown -R root sample; 3. Start Nexus with DEBUG enabled. Auto routing threads try to regenerate the prefixes file for the releases repo. You will see what appears a problem trying to inspect directories more than 2 levels deep. {noformat} 2014-04-01 15:37:25,546-0300 WARN [ar-4-thread-2] *SYSTEM org.sonatype.nexus.proxy.walker.DefaultWalker - Aborted walking on repository "Releases" [id=releases] from path "/", cause: Cannot list directory in repository M2Repository(id=releases), path /app/nexus-testing/2.8.0-02/nexus-professional-2.8.0-02-bundle/sonatype-work/nexus/storage/releases/com/sonatype/sample org.sonatype.nexus.proxy.LocalStorageException: Cannot list directory in repository M2Repository(id=releases), path /app/nexus-testing/2.8.0-02/nexus-professional-2.8.0-02-bundle/sonatype-work/nexus/storage/releases/com/sonatype/sample at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSPeer.listItems(DefaultFSPeer.java:281) ~[nexus-core-2.8.0-02.jar:2.8.0-02] at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.listItems(DefaultFSLocalRepositoryStorage.java:423) ~[nexus-core-2.8.0-02.jar:2.8.0-02] at org.sonatype.nexus.proxy.repository.AbstractRepository.doListItems(AbstractRepository.java:1222) ~[nexus-core-2.8.0-02.jar:2.8.0-02] at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doListItems(AbstractMavenRepository.java:505) ~[nexus-core-2.8.0-02.jar:2.8.0-02] at org.sonatype.nexus.proxy.repository.AbstractRepository.list(AbstractRepository.java:1066) ~[nexus-core-2.8.0-02.jar:2.8.0-02] at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:206) ~[nexus-core-2.8.0-02.jar:2.8.0-02] at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:225) ~[nexus-core-2.8.0-02.jar:2.8.0-02] at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:225) ~[nexus-core-2.8.0-02.jar:2.8.0-02] at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:225) ~[nexus-core-2.8.0-02.jar:2.8.0-02] at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:89) ~[nexus-core-2.8.0-02.jar:2.8.0-02] at org.sonatype.nexus.proxy.maven.routing.internal.LocalContentDiscovererImpl.discoverLocalContent(LocalContentDiscovererImpl.java:87) [nexus-core-2.8.0-02.jar:2.8.0-02] at org.sonatype.nexus.proxy.maven.routing.internal.ManagerImpl.updateHostedPrefixFile(ManagerImpl.java:637) [nexus-core-2.8.0-02.jar:2.8.0-02] at org.sonatype.nexus.proxy.maven.routing.internal.ManagerImpl.updateAndPublishPrefixFile(ManagerImpl.java:513) [nexus-core-2.8.0-02.jar:2.8.0-02] at org.sonatype.nexus.proxy.maven.routing.internal.UpdateRepositoryRunnable.doRun(UpdateRepositoryRunnable.java:61) [nexus-core-2.8.0-02.jar:2.8.0-02] at org.sonatype.nexus.proxy.maven.routing.internal.task.RunnableSupport.run(RunnableSupport.java:58) [nexus-core-2.8.0-02.jar:2.8.0-02] at org.sonatype.nexus.proxy.maven.routing.internal.task.CancelableRunnableSupport.run(CancelableRunnableSupport.java:72) [nexus-core-2.8.0-02.jar:2.8.0-02] at org.sonatype.nexus.proxy.maven.routing.internal.task.executor.ConstrainedExecutorImpl$CancelableRunnableWrapper.run(ConstrainedExecutorImpl.java:174) [nexus-core-2.8.0-02.jar:2.8.0-02] at org.sonatype.nexus.threads.MDCAwareRunnable.run(MDCAwareRunnable.java:41) [nexus-core-2.8.0-02.jar:2.8.0-02] at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) [shiro-core-1.2.2.jar:1.2.2] at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) [shiro-core-1.2.2.jar:1.2.2] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0] at java.lang.Thread.run(Thread.java:744) [na:1.8.0] {noformat} Repeat the procedure this time allowing access to com/sonatype/sample but not com/sonatype/sample/project. Prefix file generation succeeds now. {noformat} 15:50:42,354-0300 DEBUG [ar-4-thread-2] *SYSTEM org.sonatype.nexus.proxy.maven.maven2.M2Repository - releases retrieveItem() :: FOUND releases:/ 2014-04-01 15:50:42,354-0300 DEBUG [ar-4-thread-2] *SYSTEM org.sonatype.nexus.proxy.maven.maven2.M2Repository - releases.list() :: releases:/ 2014-04-01 15:50:42,355-0300 DEBUG [ar-4-thread-2] *SYSTEM org.sonatype.nexus.proxy.attributes.DefaultLSAttributeStorage - Loading attributes on UID=releases:/archetype-catalog.xml 2014-04-01 15:50:42,357-0300 DEBUG [ar-4-thread-2] *SYSTEM org.sonatype.nexus.proxy.maven.maven2.M2Repository - releases.list() :: releases:/com 2014-04-01 15:50:42,357-0300 DEBUG [ar-4-thread-2] *SYSTEM org.sonatype.nexus.proxy.maven.maven2.M2Repository - releases.list() :: releases:/com/sonatype 2014-04-01 15:50:42,358-0300 DEBUG [ar-4-thread-2] *SYSTEM org.sonatype.nexus.proxy.maven.maven2.M2Repository - releases.list() :: releases:/com/sonatype/sample 2014-04-01 15:50:42,358-0300 DEBUG [ar-4-thread-2] *SYSTEM org.sonatype.nexus.proxy.walker.DefaultWalker - Finished walking on ResourceStore 'releases' from path '/'. 2014-04-01 15:50:42,358-0300 DEBUG [ar-4-thread-2] *SYSTEM org.sonatype.nexus.proxy.maven.maven2.M2Repository - releases.retrieveItem() :: ResourceStoreRequest{requestPath='/.meta/prefixes.txt', requestContext=RequestContext{this=org.sonatype.nexus.proxy.RequestContext@726e1dec, parent=null}, pathStack=[], processedRepositories=[], appliedMappings={}} 2014-04-01 15:50:42,358-0300 DEBUG [ar-4-thread-2] *SYSTEM org.sonatype.nexus.proxy.maven.maven2.M2Repository - ResourceStoreRequest{requestPath='/.meta/prefixes.txt', requestContext=RequestContext{this=org.sonatype.nexus.proxy.RequestContext@726e1dec, parent=null}, pathStack=[], processedRepositories=[releases], appliedMappings={}} :: localOnly=true, remoteOnly=false, asExpired=false 2014-04-01 15:50:42,358-0300 DEBUG [ar-4-thread-2] *SYSTEM org.sonatype.nexus.proxy.maven.maven2.M2Repository - Item ResourceStoreRequest{requestPath='/.meta/prefixes.txt', requestContext=RequestContext{this=org.sonatype.nexus.proxy.RequestContext@726e1dec, parent=null}, pathStack=[], processedRepositories=[releases], appliedMappings={}} not found in local storage. 2014-04-01 15:50:42,358-0300 DEBUG [ar-4-thread-2] *SYSTEM org.sonatype.nexus.proxy.maven.maven2.M2Repository - releases retrieveItem() :: NOT FOUND releases:/.meta/prefixes.txt 2014-04-01 15:50:42,359-0300 INFO [ar-4-thread-2] *SYSTEM org.sonatype.nexus.proxy.maven.routing.internal.ManagerImpl - Updated and published prefix file of "Releases" [id=releases] 2014-04-01 15:50:42,359-0300 DEBUG [ar-4-thread-2] *SYSTEM org.sonatype.nexus.proxy.maven.maven2.M2Repository - releases.storeItem() :: releases:/.meta/prefixes.txt 2014-04-01 15:50:42,359-0300 DEBUG [ar-4-thread-2] *SYSTEM org.sonatype.nexus.proxy.storage.local.fs.DefaultFSPeer - Storing file to /app/nexus-testing/2.8.0-02/nexus-professional-2.8.0-02-bundle/sonatype-work/nexus/storage/releases/.meta/prefixes.txt 2014-04-01 15:50:42,360-0300 DEBUG [ar-4-thread-2] *SYSTEM org.sonatype.nexus.proxy.attributes.DefaultLSAttributeStorage - Storing attributes on UID=releases:/.meta/prefixes.txt 2014-04-01 15:50:42,360-0300 DEBUG [ar-4-thread-2] *SYSTEM org.sonatype.nexus.proxy.storage.local.fs.DefaultFSPeer - Storing file to /app/nexus-testing/2.8.0-02/nexus-professional-2.8.0-02-bundle/sonatype-work/nexus/storage/releases/.nexus/attributes/.meta/prefixes.txt 2014-04-01 15:50:42,361-0300 DEBUG [ar-4-thread-2] *SYSTEM org.sonatype.sisu.goodies.eventbus.internal.DefaultEventBus - Event 'RepositoryItemEventStoreCreate(sender="Releases" [id=releases], releases:/.meta/prefixes.txt)' fired 2014-04-01 15:50:42,362-0300 DEBUG [ar-4-thread-2] *SYSTEM org.sonatype.sisu.goodies.eventbus.internal.DefaultEventBus - Event 'PrefixFilePublishedRepositoryEvent{repositoryId=releases}' fired 2014-04-01 {noformat}

    Sonatype JIRA | 3 years ago | Peter Lynch
    org.sonatype.nexus.proxy.LocalStorageException: Cannot list directory in repository M2Repository(id=releases), path /app/nexus-testing/2.8.0-02/nexus-professional-2.8.0-02-bundle/sonatype-work/nexus/storage/releases/com/sonatype/sample
  2. 0

    GitHub comment 1#70777118

    GitHub | 2 years ago | bedge
    org.sonatype.nexus.proxy.LocalStorageException: Got exception during storing on path "releases:/apt-key.gpg.key" (while writing to hiddenTarget: "/home/nexus/sonatype-work/nexus/storage/releases/.nexus/tmp/apt-key.gpg.keynx-tmp5280553067672094625.nx-upload")
  3. 0

    Trying to perform a Maven site:deploy leads to the following exception on the client side: {code} message : Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:deploy (default-cli) on project dummy-fs: Error uploading site cause : Error uploading site Stack trace : org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:deploy (default-cli) on project dummy-fs: Error uploading site at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) at hudson.maven.Maven3Builder.call(Maven3Builder.java:100) at hudson.maven.Maven3Builder.call(Maven3Builder.java:66) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314) at java.util.concurrent.FutureTask.run(FutureTask.java:149) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:908) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:931) at java.lang.Thread.run(Thread.java:738) Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading site at org.apache.maven.plugins.site.AbstractDeployMojo.push(AbstractDeployMojo.java:464) at org.apache.maven.plugins.site.AbstractDeployMojo.deploy(AbstractDeployMojo.java:296) at org.apache.maven.plugins.site.AbstractDeployMojo.deployTo(AbstractDeployMojo.java:257) at org.apache.maven.plugins.site.AbstractDeployMojo.execute(AbstractDeployMojo.java:165) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 27 more Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: https://xxx/nexus/content/sites/xxxsite/dummy/dummy-parent/1.3-SNAPSHOT/../../dummy-fs/1.3-SNAPSHOT/dummy-fs/distribution-management.html. Return code is: 500 {code} In the nexus logs we find {code} 2013-04-26 08:55:58 DEBUG [p20358204-38433] - org.sonatype.sisu.goodies.eventbus.internal.DefaultEventBus - Event 'LogbackLoggingEvent [level=ERROR, message=Got exception during processing request "PUT https://xxx/nexus/content/sites/xxxsite/dummy/dummy-parent/1.3-SNAPSHOT/../../dummy-fs/1.3-SNAPSHOT/dummy-fs/distribution-management.html": , throwable=org.sonatype.nexus.proxy.LocalStorageException]' fired 2013-04-26 08:55:58 ERROR [p20358204-38433] - org.sonatype.nexus.rest.ContentPlexusResource - Got exception during processing request "PUT https://xxx/nexus/content/sites/xxxsite/dummy/dummy-parent/1.3-SNAPSHOT/../../dummy-fs/1.3-SNAPSHOT/dummy-fs/distribution-management.html": org.sonatype.nexus.proxy.LocalStorageException: Could not create the directory hiearchy in repository "XXX Site" [id=xxxsite] to write "/opt/sonatype-work/nexus/storage/xxxsite/dummy/dummy-parent/1.3-SNAPSHOT/../../dummy-fs/1.3-SNAPSHOT/dummy-fs/distribution-management.html" at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSPeer.mkParentDirs(DefaultFSPeer.java:355) ~[nexus-proxy-2.2-01.jar:na] at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSPeer.storeItem(DefaultFSPeer.java:84) ~[nexus-proxy-2.2-01.jar:na] at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.storeItem(DefaultFSLocalRepositoryStorage.java:362) ~[nexus-proxy-2.2-01.jar:na] {code}

    Sonatype JIRA | 4 years ago | Gerd Aschemann
    org.sonatype.nexus.proxy.LocalStorageException: Could not create the directory hiearchy in repository "XXX Site" [id=xxxsite] to write "/opt/sonatype-work/nexus/storage/xxxsite/dummy/dummy-parent/1.3-SNAPSHOT/../../dummy-fs/1.3-SNAPSHOT/dummy-fs/distribution-management.html"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Trying to perform a Maven site:deploy leads to the following exception on the client side: {code} message : Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:deploy (default-cli) on project dummy-fs: Error uploading site cause : Error uploading site Stack trace : org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:deploy (default-cli) on project dummy-fs: Error uploading site at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) at hudson.maven.Maven3Builder.call(Maven3Builder.java:100) at hudson.maven.Maven3Builder.call(Maven3Builder.java:66) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314) at java.util.concurrent.FutureTask.run(FutureTask.java:149) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:908) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:931) at java.lang.Thread.run(Thread.java:738) Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading site at org.apache.maven.plugins.site.AbstractDeployMojo.push(AbstractDeployMojo.java:464) at org.apache.maven.plugins.site.AbstractDeployMojo.deploy(AbstractDeployMojo.java:296) at org.apache.maven.plugins.site.AbstractDeployMojo.deployTo(AbstractDeployMojo.java:257) at org.apache.maven.plugins.site.AbstractDeployMojo.execute(AbstractDeployMojo.java:165) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 27 more Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: https://xxx/nexus/content/sites/xxxsite/dummy/dummy-parent/1.3-SNAPSHOT/../../dummy-fs/1.3-SNAPSHOT/dummy-fs/distribution-management.html. Return code is: 500 {code} In the nexus logs we find {code} 2013-04-26 08:55:58 DEBUG [p20358204-38433] - org.sonatype.sisu.goodies.eventbus.internal.DefaultEventBus - Event 'LogbackLoggingEvent [level=ERROR, message=Got exception during processing request "PUT https://xxx/nexus/content/sites/xxxsite/dummy/dummy-parent/1.3-SNAPSHOT/../../dummy-fs/1.3-SNAPSHOT/dummy-fs/distribution-management.html": , throwable=org.sonatype.nexus.proxy.LocalStorageException]' fired 2013-04-26 08:55:58 ERROR [p20358204-38433] - org.sonatype.nexus.rest.ContentPlexusResource - Got exception during processing request "PUT https://xxx/nexus/content/sites/xxxsite/dummy/dummy-parent/1.3-SNAPSHOT/../../dummy-fs/1.3-SNAPSHOT/dummy-fs/distribution-management.html": org.sonatype.nexus.proxy.LocalStorageException: Could not create the directory hiearchy in repository "XXX Site" [id=xxxsite] to write "/opt/sonatype-work/nexus/storage/xxxsite/dummy/dummy-parent/1.3-SNAPSHOT/../../dummy-fs/1.3-SNAPSHOT/dummy-fs/distribution-management.html" at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSPeer.mkParentDirs(DefaultFSPeer.java:355) ~[nexus-proxy-2.2-01.jar:na] at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSPeer.storeItem(DefaultFSPeer.java:84) ~[nexus-proxy-2.2-01.jar:na] at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.storeItem(DefaultFSLocalRepositoryStorage.java:362) ~[nexus-proxy-2.2-01.jar:na] {code}

    Sonatype JIRA | 4 years ago | Gerd Aschemann
    org.sonatype.nexus.proxy.LocalStorageException: Could not create the directory hiearchy in repository "XXX Site" [id=xxxsite] to write "/opt/sonatype-work/nexus/storage/xxxsite/dummy/dummy-parent/1.3-SNAPSHOT/../../dummy-fs/1.3-SNAPSHOT/dummy-fs/distribution-management.html"
  6. 0

    An example that should be avoided by Nexus: {quote} 2015-08-25 12:27:21 WARN [pxpool-1-thread-3] a530093 org.sonatype.scheduling.DefaultScheduledTask - Exception in call method of scheduled task Purge old snapshots 20-90 days org.sonatype.nexus.proxy.walker.WalkerException: Aborted walking on repository ID='snapshots' from path='/'. at org.sonatype.nexus.proxy.walker.DefaultWalker.reportWalkEnd(DefaultWalker.java:153) ~[nexus-core-2.11.4-01.jar:2.11.4-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:118) ~[nexus-core-2.11.4-01.jar:2.11.4-01] at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshotsFromMavenRepository(DefaultSnapshotRemover.java:213) ~[nexus-core-2.11.4-01.jar:2.11.4-01] at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.process(DefaultSnapshotRemover.java:156) ~[nexus-core-2.11.4-01.jar:2.11.4-01] at org.sonatype.nexus.maven.tasks.DefaultSnapshotRemover.removeSnapshots(DefaultSnapshotRemover.java:115) ~[nexus-core-2.11.4-01.jar:2.11.4-01] at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:98) ~[nexus-core-2.11.4-01.jar:2.11.4-01] at org.sonatype.nexus.maven.tasks.SnapshotRemoverTask.doRun(SnapshotRemoverTask.java:28) ~[nexus-core-2.11.4-01.jar:2.11.4-01] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:163) ~[nexus-core-2.11.4-01.jar:2.11.4-01] at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418) ~[nexus-scheduler-2.11.4-01.jar:2.11.4-01] at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44) [nexus-core-2.11.4-01.jar:2.11.4-01] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [shiro-core-1.2.3.jar:1.2.3] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [shiro-core-1.2.3.jar:1.2.3] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_51] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_51] Caused by: org.sonatype.nexus.proxy.LocalStorageException: Cannot list directory in repository M2Repository(id=snapshots), path /data/repo/MavenSnapshots/lost+found at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSPeer.listItems(DefaultFSPeer.java:295) ~[nexus-core-2.11.4-01.jar:2.11.4-01] at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.listItems(DefaultFSLocalRepositoryStorage.java:479) ~[nexus-core-2.11.4-01.jar:2.11.4-01] at org.sonatype.nexus.proxy.repository.AbstractRepository.doListItems(AbstractRepository.java:1238) ~[nexus-core-2.11.4-01.jar:2.11.4-01] at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doListItems(AbstractMavenRepository.java:546) ~[nexus-core-2.11.4-01.jar:2.11.4-01] at org.sonatype.nexus.proxy.repository.AbstractRepository.list(AbstractRepository.java:1071) ~[nexus-core-2.11.4-01.jar:2.11.4-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:192) ~[nexus-core-2.11.4-01.jar:2.11.4-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:231) ~[nexus-core-2.11.4-01.jar:2.11.4-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:89) ~[nexus-core-2.11.4-01.jar:2.11.4-01] ... 16 common frames omitted {quote}

    Sonatype JIRA | 1 year ago | Peter Lynch
    org.sonatype.nexus.proxy.walker.WalkerException: Aborted walking on repository ID='snapshots' from path='/'.

    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.sonatype.nexus.proxy.LocalStorageException

      Cannot list directory in repository M2Repository(id=releases), path /app/nexus-testing/2.8.0-02/nexus-professional-2.8.0-02-bundle/sonatype-work/nexus/storage/releases/com/sonatype/sample

      at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSPeer.listItems()
    2. ${project.groupId}:${project.artifactId}
      MDCAwareRunnable.run
      1. org.sonatype.nexus.proxy.storage.local.fs.DefaultFSPeer.listItems(DefaultFSPeer.java:281)[nexus-core-2.8.0-02.jar:2.8.0-02]
      2. org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.listItems(DefaultFSLocalRepositoryStorage.java:423)[nexus-core-2.8.0-02.jar:2.8.0-02]
      3. org.sonatype.nexus.proxy.repository.AbstractRepository.doListItems(AbstractRepository.java:1222)[nexus-core-2.8.0-02.jar:2.8.0-02]
      4. org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doListItems(AbstractMavenRepository.java:505)[nexus-core-2.8.0-02.jar:2.8.0-02]
      5. org.sonatype.nexus.proxy.repository.AbstractRepository.list(AbstractRepository.java:1066)[nexus-core-2.8.0-02.jar:2.8.0-02]
      6. org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:206)[nexus-core-2.8.0-02.jar:2.8.0-02]
      7. org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:225)[nexus-core-2.8.0-02.jar:2.8.0-02]
      8. org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:225)[nexus-core-2.8.0-02.jar:2.8.0-02]
      9. org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:225)[nexus-core-2.8.0-02.jar:2.8.0-02]
      10. org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:89)[nexus-core-2.8.0-02.jar:2.8.0-02]
      11. org.sonatype.nexus.proxy.maven.routing.internal.LocalContentDiscovererImpl.discoverLocalContent(LocalContentDiscovererImpl.java:87)[nexus-core-2.8.0-02.jar:2.8.0-02]
      12. org.sonatype.nexus.proxy.maven.routing.internal.ManagerImpl.updateHostedPrefixFile(ManagerImpl.java:637)[nexus-core-2.8.0-02.jar:2.8.0-02]
      13. org.sonatype.nexus.proxy.maven.routing.internal.ManagerImpl.updateAndPublishPrefixFile(ManagerImpl.java:513)[nexus-core-2.8.0-02.jar:2.8.0-02]
      14. org.sonatype.nexus.proxy.maven.routing.internal.UpdateRepositoryRunnable.doRun(UpdateRepositoryRunnable.java:61)[nexus-core-2.8.0-02.jar:2.8.0-02]
      15. org.sonatype.nexus.proxy.maven.routing.internal.task.RunnableSupport.run(RunnableSupport.java:58)[nexus-core-2.8.0-02.jar:2.8.0-02]
      16. org.sonatype.nexus.proxy.maven.routing.internal.task.CancelableRunnableSupport.run(CancelableRunnableSupport.java:72)[nexus-core-2.8.0-02.jar:2.8.0-02]
      17. org.sonatype.nexus.proxy.maven.routing.internal.task.executor.ConstrainedExecutorImpl$CancelableRunnableWrapper.run(ConstrainedExecutorImpl.java:174)[nexus-core-2.8.0-02.jar:2.8.0-02]
      18. org.sonatype.nexus.threads.MDCAwareRunnable.run(MDCAwareRunnable.java:41)[nexus-core-2.8.0-02.jar:2.8.0-02]
      18 frames
    3. Shiro
      SubjectRunnable.run
      1. org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120)[shiro-core-1.2.2.jar:1.2.2]
      2. org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108)[shiro-core-1.2.2.jar:1.2.2]
      2 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[na:1.8.0]
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0]
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[na:1.8.0]
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[na:1.8.0]
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0]
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0]
      7. java.lang.Thread.run(Thread.java:744)[na:1.8.0]
      7 frames