org.jruby.exceptions.RaiseException: (ESRCH) No such process - \\storage\nexus-share\tmp at org.jruby.RubyDir.mkdir(org/jruby/RubyDir.java:441) ~[na:na] at org.jruby.RubyArray.reverse_each(org/jruby/RubyArray.java:1693) ~[na:na] at RUBY.mkdir_p(classpath:/META-INF/jruby.home/lib/ruby/1.9/fileutils.rb:219) ~[na:na] at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) ~[na:na] at RUBY.mkdir_p(classpath:/META-INF/jruby.home/lib/ruby/1.9/fileutils.rb:205) ~[na:na] at RUBY.tmpdir(classpath:/nexus/indexer.rb:41) ~[na:na] at RUBY.initialize(classpath:/META-INF/jruby.home/lib/ruby/shared/rubygems/indexer.rb:66) ~[na:na] at RUBY.initialize(classpath:/nexus/indexer.rb:49) ~[na:na] at RUBY.recreateRubygemsIndex(classpath:/nexus/repair_helper_impl.rb:32) ~[na:na]

Sonatype JIRA | John Cragun | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Run Nexus 2.11.1 on a Windows machine. Create a hosted ruby gems repository--override the default storage location to a file share on a different machine (e.g. \\storage\nexus-share). Push a gem. You'll notice indexing did not occur. Create and run a scheduled task to index the repo. You'll get an error similar to this: {quote} 2015-02-05 16:41:33,330-0600 INFO [pxpool-1-thread-2] admin org.sonatype.nexus.plugins.ruby.hosted.RebuildRubygemsMetadataTask - Scheduled task (ruby index) started :: Rebuilding gemspecs and specs-index of repository gem share test 2015-02-05 16:41:33,454-0600 WARN [pxpool-1-thread-2] admin org.sonatype.nexus.plugins.ruby.hosted.RebuildRubygemsMetadataTask - Scheduled task (ruby index) failed :: Rebuilding gemspecs and specs-index of repository gem share test (started 2015-02-05T16:41:33-06:00, runtime 0:00:00.124) org.jruby.exceptions.RaiseException: (ESRCH) No such process - \\storage\nexus-share\tmp at org.jruby.RubyDir.mkdir(org/jruby/RubyDir.java:441) ~[na:na] at RUBY.fu_mkdir(classpath:/META-INF/jruby.home/lib/ruby/1.9/fileutils.rb:247) ~[na:na] at RUBY.mkdir_p(classpath:/META-INF/jruby.home/lib/ruby/1.9/fileutils.rb:221) ~[na:na] at org.jruby.RubyArray.reverse_each(org/jruby/RubyArray.java:1693) ~[na:na] at RUBY.mkdir_p(classpath:/META-INF/jruby.home/lib/ruby/1.9/fileutils.rb:219) ~[na:na] at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) ~[na:na] at RUBY.mkdir_p(classpath:/META-INF/jruby.home/lib/ruby/1.9/fileutils.rb:205) ~[na:na] at RUBY.tmpdir(classpath:/nexus/indexer.rb:41) ~[na:na] at RUBY.initialize(classpath:/META-INF/jruby.home/lib/ruby/shared/rubygems/indexer.rb:66) ~[na:na] at RUBY.initialize(classpath:/nexus/indexer.rb:49) ~[na:na] at RUBY.recreateRubygemsIndex(classpath:/nexus/repair_helper_impl.rb:32) ~[na:na] at Nexus$$RepairHelperImpl_371739350.recreateRubygemsIndex(Nexus$$RepairHelperImpl_371739350.gen:13) ~[na:na] 2015-02-05 16:41:33,548-0600 WARN [pxpool-1-thread-2] admin org.sonatype.scheduling.DefaultScheduledTask - Exception in call method of scheduled task ruby index org.jruby.exceptions.RaiseException: (ESRCH) No such process - \\storage\nexus-share\tmp at org.jruby.RubyDir.mkdir(org/jruby/RubyDir.java:441) ~[na:na] at RUBY.fu_mkdir(classpath:/META-INF/jruby.home/lib/ruby/1.9/fileutils.rb:247) ~[na:na] at RUBY.mkdir_p(classpath:/META-INF/jruby.home/lib/ruby/1.9/fileutils.rb:221) ~[na:na] at org.jruby.RubyArray.reverse_each(org/jruby/RubyArray.java:1693) ~[na:na] at RUBY.mkdir_p(classpath:/META-INF/jruby.home/lib/ruby/1.9/fileutils.rb:219) ~[na:na] at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) ~[na:na] at RUBY.mkdir_p(classpath:/META-INF/jruby.home/lib/ruby/1.9/fileutils.rb:205) ~[na:na] at RUBY.tmpdir(classpath:/nexus/indexer.rb:41) ~[na:na] at RUBY.initialize(classpath:/META-INF/jruby.home/lib/ruby/shared/rubygems/indexer.rb:66) ~[na:na] at RUBY.initialize(classpath:/nexus/indexer.rb:49) ~[na:na] at RUBY.recreateRubygemsIndex(classpath:/nexus/repair_helper_impl.rb:32) ~[na:na] at Nexus$$RepairHelperImpl_371739350.recreateRubygemsIndex(Nexus$$RepairHelperImpl_371739350.gen:13) ~[na:na] {quote}

    Sonatype JIRA | 2 years ago | John Cragun
    org.jruby.exceptions.RaiseException: (ESRCH) No such process - \\storage\nexus-share\tmp at org.jruby.RubyDir.mkdir(org/jruby/RubyDir.java:441) ~[na:na] at org.jruby.RubyArray.reverse_each(org/jruby/RubyArray.java:1693) ~[na:na] at RUBY.mkdir_p(classpath:/META-INF/jruby.home/lib/ruby/1.9/fileutils.rb:219) ~[na:na] at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) ~[na:na] at RUBY.mkdir_p(classpath:/META-INF/jruby.home/lib/ruby/1.9/fileutils.rb:205) ~[na:na] at RUBY.tmpdir(classpath:/nexus/indexer.rb:41) ~[na:na] at RUBY.initialize(classpath:/META-INF/jruby.home/lib/ruby/shared/rubygems/indexer.rb:66) ~[na:na] at RUBY.initialize(classpath:/nexus/indexer.rb:49) ~[na:na] at RUBY.recreateRubygemsIndex(classpath:/nexus/repair_helper_impl.rb:32) ~[na:na]

    Root Cause Analysis

    1. org.jruby.exceptions.RaiseException

      (ESRCH) No such process - \\storage\nexus-share\tmp at org.jruby.RubyDir.mkdir(org/jruby/RubyDir.java:441) ~[na:na] at org.jruby.RubyArray.reverse_each(org/jruby/RubyArray.java:1693) ~[na:na] at RUBY.mkdir_p(classpath:/META-INF/jruby.home/lib/ruby/1.9/fileutils.rb:219) ~[na:na] at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) ~[na:na] at RUBY.mkdir_p(classpath:/META-INF/jruby.home/lib/ruby/1.9/fileutils.rb:205) ~[na:na] at RUBY.tmpdir(classpath:/nexus/indexer.rb:41) ~[na:na] at RUBY.initialize(classpath:/META-INF/jruby.home/lib/ruby/shared/rubygems/indexer.rb:66) ~[na:na] at RUBY.initialize(classpath:/nexus/indexer.rb:49) ~[na:na] at RUBY.recreateRubygemsIndex(classpath:/nexus/repair_helper_impl.rb:32) ~[na:na]

      at Nexus$$RepairHelperImpl_371739350.recreateRubygemsIndex()
    2. Unknown
      Nexus$$RepairHelperImpl_371739350.recreateRubygemsIndex
      1. Nexus$$RepairHelperImpl_371739350.recreateRubygemsIndex(Nexus$$RepairHelperImpl_371739350.gen:13)[na:na]
      1 frame