Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: 6.7.3
    • Fix Version/s: None
    • Labels:
      None

      Description

      An unexpected error occurs (e.g: NoMethodError undefined method `map' for nil:NilClass) When managing Ruby application's gem dependencies with bundler On Artifactory 6.7.0

       

      Steps to reproduce

      $ bundle install --path ./test/bundle --verbose

      If you need to re-run above command with change of Gemfile as following, you need to delete Gemfile.lock which will be created only in case gems are installed successfully.

      1) When source indicate to gems-local

      Gemfile

      ~~~~~~~ 

      source 'https://rubygems.org/'

      source 'http://127.0.0.1:8081/artifactory/api/gems/gems-local/'

      gem 'sfn'

      ~~~~~~~~

      ==> this will works

      Bundle complete! 1 Gemfile dependency, 39 gems now installed.

      Bundled gems are installed into `./test/bundle`

      You may need to delete Gemfile.lock at this time.

      2) When source indicate to gems-remote

      Gemfile

      ~~~~~~~ 

      source 'https://rubygems.org/'

      source 'http://127.0.0.1:8081/artifactory/api/gems/gems-remote/'

      gem 'sfn'

      ~~~~~~~ 

       ==> This will fail due to remote repo of gems-remote as following errors.

      Retrying dependency api due to error (2/4): NoMethodError undefined method `map' for nil:NilClass

      Did you mean?  tap

      Retrying dependency api due to error (3/4): NoMethodError undefined method `map' for nil:NilClass

      Did you mean?  tap

      Retrying dependency api due to error (4/4): NoMethodError undefined method `map' for nil:NilClass

      Did you mean?  tap

      Retrying fetcher due to error (2/4): NoMethodError undefined method `map' for nil:NilClass

      Did you mean?  tap

      Unfortunately, an unexpected error occurred, and Bundler cannot continue.

      3) When source pointing to virtual repo such as gems

      Gemfile

      ~~~~~~~ 

      source 'https://rubygems.org/'

      source 'http://127.0.0.1:8081/artifactory/api/gems/gems/'

      gem 'sfn'

      ~~~~~~~

       ==> This will fail due to remote repo in side of gems virtual repository

      Retrying dependency api due to error (2/4): NoMethodError undefined method `map' for nil:NilClass

      Did you mean?  tap

      Retrying dependency api due to error (3/4): NoMethodError undefined method `map' for nil:NilClass

      Did you mean?  tap

      Retrying dependency api due to error (4/4): NoMethodError undefined method `map' for nil:NilClass

      Did you mean?  tap

      Retrying fetcher due to error (2/4): NoMethodError undefined method `map' for nil:NilClass

      Did you mean?  tap

      Unfortunately, an unexpected error occurred, and Bundler cannot continue.

      This issue was raised in Jira -  https://www.jfrog.com/jira/browse/RTFACT-18349

      A fix was provided in version 6.7.3 and to resolve the issue, we suggested upgrading to 6.7.3

       

      However, after upgrading to 6.7.3 the issue is not resolved. On executing the command 

      $ bundle install --path ./test/bundle --verbose

      It still gives the same error.

      Tried to zap the cache but still did not resolve the error.

      Then deleted the content from the remote-cache

      And this step resolved the issue. 

      After upgrading to 6.7.3, the issue should have been resolved, the additional steps to delete the content from remote cache should not be required. The remote cache could have other packages as part of different dependencies and deleting the cache would remove all these packages that are still being used. 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                prasannan Prasanna Narayana
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: