• 08621 - 9 88 30 88

can’t find gem r10k (>= 0.a) with executable r10k

Voncubewerk

can’t find gem r10k (>= 0.a) with executable r10k

[2021-01-30 13:15:09] ERROR message: \n/opt/puppetlabs/puppet/lib/ruby/2.7.0/rubygems.rb:277:in find_spec_for_exe': can't find gem r10k (>= 0.a) with executable r10k (Gem::GemNotFoundException)\n\tfrom /opt/puppetlabs/puppet/lib/ruby/2.7.0/rubygems.rb:296:inactivate_bin_path’\n\tfrom /usr/bin/r10k:23:in <main>'\n trace: ["/usr/local/bin/webhook:263:inblock in run_command'“, „/usr/local/bin/webhook:255:in open'", "/usr/local/bin/webhook:255:inrun_command'“, „/usr/local/bin/webhook:447:in deploy'", "/usr/local/bin/webhook:211:inblock (2 levels) in ‚“, „/usr/local/bin/webhook:211:in fork'", "/usr/local/bin/webhook:211:inblock in ‚“, „/op

Debian 10 with puppet 6 after update to puppet 7 shows above error when webhook is triggered.

TL/DR: /opt/puppetlabs/puppet/bin/gem install r10k

In my setup, the r10k ruby gem was missing in the ruby2.7 path. As puppet ships own ruby version, which is never than systems ruby version, one needs to grab the r10k gem.

Über den Autor

cubewerk administrator