Skip to content

Installing r10k Returns Error: Last Version of faraday (~> 2.0) to support your Ruby & RubyGems was 3.0.2 then 2.8.1 #651

@SiteDesignUSA

Description

@SiteDesignUSA

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7.29.1

  • Ruby:

  • Distribution:

  • Module version: 11.0.1

How to reproduce (e.g Puppet code you use)

Running puppet agent -t

What are you seeing

Error: Execution of '/opt/puppetlabs/puppet/bin/gem install --no-document --no-document r10k' returned 1: ERROR: Error installing r10k: The last version of faraday (~> 2.0) to support your Ruby & RubyGems was 2.8.1. Try installing it with gem install faraday -v 2.8.1and then running the current command again faraday requires Ruby version >= 3.0. The current ruby version is 2.7.8.225. Error: /Stage[main]/R10k::Install/Package[r10k]/ensure: change from 'absent' to 'present' failed: Execution of '/opt/puppetlabs/puppet/bin/gem install --no-document --no-document r10k' returned 1: ERROR: Error installing r10k: The last version of faraday (~> 2.0) to support your Ruby & RubyGems was 2.8.1. Try installing it withgem install faraday -v 2.8.1and then running the current command again faraday requires Ruby version >= 3.0. The current ruby version is 2.7.8.225. Notice: /Stage[main]/R10k::Install::Puppet_gem/File[/usr/bin/r10k]: Dependency Package[r10k] has failures: true Warning: /Stage[main]/R10k::Install::Puppet_gem/File[/usr/bin/r10k]: Skipping because of failed dependencies

What behaviour did you expect instead

no error or failure

Output log

Please see above...

Any additional information you'd like to impart

This was working and then I reinstalled OS (same version: ubuntu 20.04) and then these errors. When i install the gem as recommended i.e. /opt/puppetlabs/puppet/bin/gem install --no-document faraday-net_http -v 3.0.2

it then recommends installing gem -v 2.8.1 (which apparently doesn't exist)

Help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions