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

Rubygems index fails on Windows share

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.11.1
    • Fix Version/s: 2.11.3
    • Component/s: RubyGems, Scheduled Tasks
    • Labels:
      None
    • Environment:
      Windows
    • Sprint:
      Sprint 37

      Description

      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:

      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]

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jtom Joe Tom
              Reporter:
              jcragun John Cragun
              Last Updated By:
              Peter Lynch Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title