Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-17843

Sometimes cannot find gems from rubygems.org using remote repository

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: 3 - High
    • Resolution: Done
    • Affects Version/s: 6.5.0
    • Fix Version/s: 6.10.0, 6.9.1, 6.11.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Artifactory 6.5.0
      Linux Mint 18.3

    • Severity:
      High
    • Regression:
      Yes

      Description

      This is going to be a bit of a long one because the circumstances seem very specific.

      Summary:

      • I am using 'rbenv' to change Ruby versions on my devbox but this was first found on our CI system.

      Using Artifactory:

      • "gem install" through Artifactory fails with some versions of a ruby gem if my local ruby version is Ruby 2.5
      • "gem install" with the same gem works if I'm using Ruby 2.1

      Using rubygems.org:

      • No failures occur.

      Using just rubygems.org:

      [cyc:~]$ cat ~/.gemrc
      
      ---
      :backtrace: false
      :sources:
      - https://rubygems.org/
      #- https://artifactory.delivery.puppetlabs.net/artifactory/api/gems/rubygems/
      :update_sources: true
      :verbose: true
      gem: "--document=yri"
      
      [cyc:~]$ rbenv local 2.5.1
      [cyc:~]$ gem install vanagon -v 0.15.16
      Fetching: vanagon-0.15.16.gem (100%)
      Successfully installed vanagon-0.15.16
      Building YARD (yri) index for vanagon-0.15.16...
      Done installing documentation for vanagon after 1 seconds
      1 gem installed
      

      Using Artifactory

      [cyc:~]$ cat ~/.gemrc
      ---
      :backtrace: false
      :sources:
      #- https://rubygems.org/
      - https://artifactory.delivery.puppetlabs.net/artifactory/api/gems/rubygems/
      :update_sources: true
      :verbose: true
      gem: "--document=yri"
      
      [cyc:~]$ rbenv local 2.5.1
      [cyc:~]$ gem install vanagon -v 0.15.16
      ERROR:  Could not find a valid gem 'vanagon' (= 0.15.16) in any repository
      ERROR:  Possible alternatives: vanagon
      [cyc:~]$ rbenv local 2.1.10
      [cyc:~]$ gem install vanagon -v 0.15.16
      Successfully installed vanagon-0.15.16
      1 gem installed
      

      Notes from above:

      Expectation

      I believe this is a bug because Artifactory behavior and Rubygems behavior are not the same. I should be able to "gem install" vanagon-0.15.16 regardless of the version of ruby I'm using as long as it fits the gem's specification.

        Attachments

          Activity

            People

            Assignee:
            Dudim Dudi Morad (Inactive)
            Reporter:
            eric.griswold Eric Griswold
            Votes:
            8 Vote for this issue
            Watchers:
            14 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Sync Status

                Connection: RTFACT Sync
                RTMID-17843 -
                SYNCHRONIZED
                • Last Sync Date: