Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Branan Riley updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Branan Riley Release Notes Summary: The gem provider now passes along the HOME environment variable Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Branan Riley updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Branan Riley Release Notes: Bug Fix Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Kenn Hussey commented on PUP-5645 Re: Can't install gems on Arch Linux Branan Riley please provide release notes for this issue, if needed. Thanks! Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Erik Dasher assigned an issue to Branan Riley Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Erik Dasher Resolution: Fixed Assignee: qa Branan Riley Status: Ready for Test Resolved Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Erik Dasher commented on PUP-5645 Re: Can't install gems on Arch Linux Based on John Duarte's risk assessment on 8/2, I'm resolving this without additional QA work. Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Branan Riley assigned an issue to qa Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Branan Riley Status: Ready for CI Test Assignee: qa Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Branan Riley updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Branan Riley Fix Version/s: PUP 5.1.0 Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Geoff Nichols updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Geoff Nichols Sprint: Platform OS 2017-08-09, Platform OS Hold 2017-08-22 Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Geoff Nichols updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Geoff Nichols Sprint: Platform OS 2017-08-09 , Platform OS Hold Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Branan Riley assigned an issue to Unassigned Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Branan Riley Assignee: Branan Riley Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title John Duarte updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: John Duarte QA Risk Assessment: No Action Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Florian Klink commented on PUP-5645 Re: Can't install gems on Arch Linux PR #5560 got closed in favor of https://github.com/puppetlabs/puppet/pull/5051. Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Branan Riley updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Branan Riley Story Points: 1 Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Branan Riley updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Branan Riley Sprint: Platform OS 2017-08-09 Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Geoff Nichols updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Geoff Nichols Labels: gem manage-package non-root Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Branan Riley assigned an issue to Branan Riley Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Branan Riley Assignee: Branan Riley Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Henrik Lindberg Labels: gem manage-package triaged Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Florian Klink commented on PUP-5645 Re: Can't install gems on Arch Linux I took a look at this. It seems like `gem` doesn't like being called without a ENV['HOME'] set. By hacking a `unless name == "HOME"` into https://github.com/puppetlabs/puppet/blob/4.3.2/lib/puppet/util/execution.rb#L294, the gem command runs again. To fix, one could possibly run the execute() method with a custom environment which still contains the HOME variable. I added a PR https://github.com/puppetlabs/puppet/pull/5560 (probably in a hacky way, but it's a start) Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Moses Mendoza updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Moses Mendoza Team: Agent & Platform Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Moses Mendoza updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Moses Mendoza Labels: gem manage-package Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Henrik Lindberg Scrum Team: Client Platform Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Victor Engmark updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Victor Engmark Update: This might be a [gem issue|https://bugs.ruby-lang.org/issues/12070] rather than a Puppet issue. Keeping this open since it's not clear yet what the issue is, and since I can only reproduce when the gem command is run with Puppet. From [unix.stackexchange.com post|https://unix.stackexchange.com/q/252937/3645]:I've got [the following|https://github.com/l0b0/root/blob/cf94a48397bb2323bbecfd657b43d6fd748818c8/modules/travis_linter/manifests/init.pp]:{code:puppet}class travis_linter { include shell package { 'travis-lint':ensure => latest,provider => gem, }}{code}When I try to [test it|https://github.com/l0b0/root/tree/cf94a48397bb2323bbecfd657b43d6fd748818c8#test], however, I get the following Puppet output:{noformat}==> default: Debug: Executing: '/usr/bin/gem install --no-rdoc --no-ri travis-lint'==> default: Error: Could not update: Execution of '/usr/bin/gem install --no-rdoc --no-ri travis-lint' returned 1: ERROR: While executing gem ... (TypeError)==> default: wrong argument type nil (expected Regexp)==> default: Error: /Stage[main]/Travis_linter/Package[travis-lint]/ensure: change from absent to latest failed: Could not update: Execution of '/usr/bin/gem install --no-rdoc --no-ri travis-lint' returned 1: ERROR: While executing gem ... (TypeError)==> default: wrong argument type nil (expected Regexp){noformat}Other possibly relevant output from the [full log file|http://pastebin.com/GgT3Vy1E]:{noformat}Debug: Puppet::Type::Package::ProviderPuppet_gem: file /opt/puppetlabs/puppet/bin/gem does not existDebug: /Package[puppet-lint]: Provider gem does not support features virtual_packages; not managing attribute allow_virtualDebug: /Package[reek]: Provider gem does not support features virtual_packages; not managing attribute allow_virtualDebug: /Package[travis-lint]: Provider gem does not support features virtual_packages; not managing attribute allow_virtual{noformat}Setting `ensure` to `2.0.0` didn't help, so it's not related to the `latest` keyword:{noformat}Error: Could not update: Execution of '/usr/bin/gem install -v 2.0.0 --no-rdoc --no-ri travis-lint' returned 1: ERROR: While executing gem ... (TypeError)wrong argument type nil (expected Regexp){noformat}I am able to run the exact same command manually:{noformat}[vagrant@archlinux ~]$ /usr/bin/gem install --no-rdoc --no-ri travis-lintFetching: travis-lint-2.0.0.gem (100%)WARNING: You don't have /home/vagrant/.gem/ruby/2.3.0/bin in your PATH, gem executables will not run.Successfully installed travis-lint-2.0.01 gem installed{noformat}Is my Puppet manifest wrong, or is something broken about Puppet/Gem? Is it possible that `latest` is not a valid value for gems?It works fine on [Travis CI (Ubuntu 12.04)|https://travis-ci.org/l0b0/root/builds/99846406#L1153-L1156]:{noformat}Debug: Executing: '/home/travis/.rvm/rubies/ruby-2.2.3/bin/gem list --local ^travis-lint$'Debug: Executing: '/home/travis/.rvm/rubies/ruby-2.2.3/bin/gem install --no-rdoc --no-ri travis-lint'Notice: /Stage[main]/Travis_linter/Package[travis-lint]/ensure: createdDebug: /Package[travis-lint]: The container Class[Travis_linter] will propagate my refresh
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Kylo Ginsberg commented on PUP-5645 Re: Can't install gems on Arch Linux It occurred to me that maybe this was an issue with ruby 2.3 (which is not widely exercised with puppet so far AFAIK), but I tried to reproduce this (on OSX) with ruby 2.3 and I couldn't reproduce it. One other idea, but I didn't have a chance to run this down, was that it might be the stderr output you're getting with gem that's tripping puppet up somehow (though I'd expect to see that elsewhere tbh). You might get more useful output if you also specified "--trace" - if so, please attach a gist with that output. And of course, if you're comfortable debugging ruby code, I'd try setting breakpoints and poking around a bit. Btw, the "possibly relevant output" you snipped is stuff I'd expect to see regardless, so probably isn't a lead. Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Victor Engmark commented on PUP-5645 Re: Can't install gems on Arch Linux ==> default: Debug: Executing: '/usr/bin/gem install --no-rdoc --no-ri --trace travis-lint'==> default: Notice: /Stage[main]/Travis_linter/Exec[/usr/bin/gem install --no-rdoc --no-ri --trace travis-lint]/returns: ERROR: While executing gem ... (OptionParser::InvalidOption)==> default: Notice: /Stage[main]/Travis_linter/Exec[/usr/bin/gem install --no-rdoc --no-ri --trace travis-lint]/returns: invalid option: --trace==> default: Error: /usr/bin/gem install --no-rdoc --no-ri --trace travis-lint returned 1 instead of one of [0]==> default: Error: /Stage[main]/Travis_linter/Exec[/usr/bin/gem install --no-rdoc --no-ri --trace travis-lint]/returns: change from notrun to 0 failed: /usr/bin/gem install --no-rdoc --no-ri --trace travis-lint returned 1 instead of one of [0] Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Victor Engmark commented on PUP-5645 Re: Can't install gems on Arch Linux {{code}}Debug: Executing: '/usr/bin/gem install --no-rdoc --no-ri --trace travis-lint'Notice: /Stage[main]/Travis_linter/Exec[/usr/bin/gem install --no-rdoc --no-ri --trace travis-lint]/returns: ERROR: While executing gem ... (OptionParser::InvalidOption)Notice: /Stage[main]/Travis_linter/Exec[/usr/bin/gem install --no-rdoc --no-ri --trace travis-lint]/returns: invalid option: --traceError: /usr/bin/gem install --no-rdoc --no-ri --trace travis-lint returned 1 instead of one of [0]/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util/errors.rb:106:in `fail'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/type/exec.rb:160:in `sync'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction/resource_harness.rb:214:in `sync'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction/resource_harness.rb:139:in `sync_if_needed'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction/resource_harness.rb:89:in `block in perform_changes'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction/resource_harness.rb:88:in `each'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction/resource_harness.rb:88:in `perform_changes'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction/resource_harness.rb:20:in `evaluate'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction.rb:207:in `apply'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction.rb:223:in `eval_resource'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction.rb:150:in `call'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction.rb:150:in `block (2 levels) in evaluate'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util.rb:292:in `block in thinmark'/usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util.rb:291:in `thinmark'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction.rb:150:in `block in evaluate'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/graph/relationship_graph.rb:118:in `traverse'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction.rb:141:in `evaluate'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/resource/catalog.rb:202:in `block in apply'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util/log.rb:153:in `with_destination'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction/report.rb:107:in `as_logging_destination'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/resource/catalog.rb:201:in `apply'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/configurer.rb:119:in `block in apply_catalog'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util.rb:129:in `block in benchmark'/usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util.rb:128:in `benchmark' /usr/lib/ruby/vendor_ruby/2.3.0/puppet/configurer.rb:118:in `apply_catalog'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/configurer.rb:232:in `run_internal' /usr/lib/ruby/vendor_ruby/2.3.0/puppet/configurer.rb:134:in `block in run'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/context.rb:65:in `override'/usr/lib/ruby/vendor_ruby/2.3.0/puppet.rb:240:in `override'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/configurer.rb:133:in `run'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/application/apply.rb:347:in `apply_catalog'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/application/apply.rb:274:in `block in main'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/context.rb:65:in `override'/usr/lib/ruby/vendor_ruby/2.3.0/puppet.rb:240:in `override'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/application/apply.rb:225:in `main'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/application/apply.rb:170:in `run_command'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/application.rb:344:in `block in run'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util.rb:446:in `exit_on_fail'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/application.rb:344:in `run'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util/command_line.rb:128:in `run'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util/command_line.rb:72:in `execute'/usr/bin/puppet:5:in `'Error: /Stage[main]/Travis_linter/Exec[/usr/bin/gem install --no-rdoc
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Victor Engmark updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Victor Engmark Comment: {{code}}Debug: Executing: '/usr/bin/gem install --no-rdoc --no-ri --trace travis-lint'Notice: /Stage[main]/Travis_linter/Exec[/usr/bin/gem install --no-rdoc --no-ri --trace travis-lint]/returns: ERROR: While executing gem ... (OptionParser::InvalidOption)Notice: /Stage[main]/Travis_linter/Exec[/usr/bin/gem install --no-rdoc --no-ri --trace travis-lint]/returns: invalid option: --traceError: /usr/bin/gem install --no-rdoc --no-ri --trace travis-lint returned 1 instead of one of [0]/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util/errors.rb:106:in `fail'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/type/exec.rb:160:in `sync'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction/resource_harness.rb:214:in `sync'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction/resource_harness.rb:139:in `sync_if_needed'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction/resource_harness.rb:89:in `block in perform_changes'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction/resource_harness.rb:88:in `each'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction/resource_harness.rb:88:in `perform_changes'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction/resource_harness.rb:20:in `evaluate'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction.rb:207:in `apply'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction.rb:223:in `eval_resource'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction.rb:150:in `call'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction.rb:150:in `block (2 levels) in evaluate'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util.rb:292:in `block in thinmark'/usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util.rb:291:in `thinmark'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction.rb:150:in `block in evaluate'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/graph/relationship_graph.rb:118:in `traverse'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction.rb:141:in `evaluate'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/resource/catalog.rb:202:in `block in apply'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util/log.rb:153:in `with_destination'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction/report.rb:107:in `as_logging_destination'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/resource/catalog.rb:201:in `apply'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/configurer.rb:119:in `block in apply_catalog'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util.rb:129:in `block in benchmark'/usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util.rb:128:in `benchmark' /usr/lib/ruby/vendor_ruby/2.3.0/puppet/configurer.rb:118:in `apply_catalog'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/configurer.rb:232:in `run_internal' /usr/lib/ruby/vendor_ruby/2.3.0/puppet/configurer.rb:134:in `block in run'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/context.rb:65:in `override'/usr/lib/ruby/vendor_ruby/2.3.0/puppet.rb:240:in `override'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/configurer.rb:133:in `run'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/application/apply.rb:347:in `apply_catalog'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/application/apply.rb:274:in `block in main'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/context.rb:65:in `override'/usr/lib/ruby/vendor_ruby/2.3.0/puppet.rb:240:in
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Victor Engmark commented on PUP-5645 Re: Can't install gems on Arch Linux code}}Error: Could not update: Execution of '/usr/bin/gem install --no-rdoc --no-ri travis-lint' returned 1: ERROR: While executing gem ... (TypeError) wrong argument type nil (expected Regexp)/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util/execution.rb:232:in `execute'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/provider.rb:102:in `execute'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/provider/package/gem.rb:128:in `install'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/provider/package/gem.rb:159:in `update'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/type/package.rb:106:in `block (3 levels) in '/usr/lib/ruby/vendor_ruby/2.3.0/puppet/property.rb:427:in `set'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/property.rb:501:in `sync'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction/resource_harness.rb:214:in `sync'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction/resource_harness.rb:139:in `sync_if_needed'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction/resource_harness.rb:81:in `perform_changes'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction/resource_harness.rb:20:in `evaluate'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction.rb:207:in `apply'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction.rb:223:in `eval_resource'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction.rb:150:in `call'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction.rb:150:in `block (2 levels) in evaluate'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util.rb:292:in `block in thinmark'/usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util.rb:291:in `thinmark'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction.rb:150:in `block in evaluate'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/graph/relationship_graph.rb:118:in `traverse'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction.rb:141:in `evaluate'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/resource/catalog.rb:202:in `block in apply'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util/log.rb:153:in `with_destination'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/transaction/report.rb:107:in `as_logging_destination'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/resource/catalog.rb:201:in `apply'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/configurer.rb:119:in `block in apply_catalog'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util.rb:129:in `block in benchmark'/usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util.rb:128:in `benchmark' /usr/lib/ruby/vendor_ruby/2.3.0/puppet/configurer.rb:118:in `apply_catalog'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/configurer.rb:232:in `run_internal' /usr/lib/ruby/vendor_ruby/2.3.0/puppet/configurer.rb:134:in `block in run'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/context.rb:65:in `override'/usr/lib/ruby/vendor_ruby/2.3.0/puppet.rb:240:in `override'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/configurer.rb:133:in `run'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/application/apply.rb:347:in `apply_catalog'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/application/apply.rb:274:in `block in main'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/context.rb:65:in `override'/usr/lib/ruby/vendor_ruby/2.3.0/puppet.rb:240:in `override'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/application/apply.rb:225:in `main'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/application/apply.rb:170:in `run_command'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/application.rb:344:in `block in run'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util.rb:446:in `exit_on_fail'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/application.rb:344:in `run'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util/command_line.rb:128:in `run'/usr/lib/ruby/vendor_ruby/2.3.0/puppet/util/command_line.rb:72:in `execute'/usr/bin/puppet:5:in `'Error: /Stage[main]/Travis_linter/Package[travis-lint]/ensure: change from absent to latest failed: Could not update: Execution of '/usr/bin/gem install --no-rdoc --no-ri
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Victor Engmark commented on PUP-5645 Re: Can't install gems on Arch Linux Still all good: [vagrant@archlinux ~]$ LANG=C LC_ALL=C /usr/bin/gem install -v 2.0.0 --no-rdoc --no-ri travis-lintFetching: travis-lint-2.0.0.gem (100%)WARNING: You don't have /home/vagrant/.gem/ruby/2.3.0/bin in your PATH, gem executables will not run.Successfully installed travis-lint-2.0.01 gem installed Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Kylo Ginsberg commented on PUP-5645 Re: Can't install gems on Arch Linux Hmm, that kinda confirms it's failing where I assumed it was failing but that's mostly good from a ruling-things-out perspective. The error it's reporting is coming from gem AFAICT so maybe it's something about how puppet is setting up the execution environment when it runs the command. Another experiment: can you try LANG=C LC_ALL=C /usr/bin/gem install -v 2.0.0 --no-rdoc --no-ri travis-lint? That isn't the full list of environment setup (see https://github.com/puppetlabs/puppet/blob/4.3.2/lib/puppet/util/execution.rb#L276-L299) but it's an easy-ish thing to try Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Victor Engmark updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Victor Engmark Comment: {code:java}==> default: Debug: Executing: '/usr/bin/gem install --no-rdoc --no-ri --trace travis-lint'==> default: Notice: /Stage[main]/Travis_linter/Exec[/usr/bin/gem install --no-rdoc --no-ri --trace travis-lint]/returns: ERROR: While executing gem ... (OptionParser::InvalidOption)==> default: Notice: /Stage[main]/Travis_linter/Exec[/usr/bin/gem install --no-rdoc --no-ri --trace travis-lint]/returns: invalid option: --trace==> default: Error: /usr/bin/gem install --no-rdoc --no-ri --trace travis-lint returned 1 instead of one of [0]==> default: Error: /Stage[main]/Travis_linter/Exec[/usr/bin/gem install --no-rdoc --no-ri --trace travis-lint]/returns: change from notrun to 0 failed: /usr/bin/gem install --no-rdoc --no-ri --trace travis-lint returned 1 instead of one of [0]{code} Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Victor Engmark updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Victor Engmark Affects Version/s: PUP 4.3.2 Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Victor Engmark updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Victor Engmark From [unix.stackexchange.com post ]( | https://unix.stackexchange.com/q/252937/3645 ) ] :I've got [the following |https://github.com/l0b0/root/blob/cf94a48397bb2323bbecfd657b43d6fd748818c8/modules/travis_linter/manifests/init.pp ] [1] :class travis_linter { include shell package { 'travis-lint':ensure => latest,provider => gem, }}When I try to [test it |https://github.com/l0b0/root/tree/cf94a48397bb2323bbecfd657b43d6fd748818c8#test ] [2] , however, I get the following Puppet output:==> default: Debug: Executing: '/usr/bin/gem install --no-rdoc --no-ri travis-lint'==> default: Error: Could not update: Execution of '/usr/bin/gem install --no-rdoc --no-ri travis-lint' returned 1: ERROR: While executing gem ... (TypeError)==> default: wrong argument type nil (expected Regexp)==> default: Error: /Stage[main]/Travis_linter/Package[travis-lint]/ensure: change from absent to latest failed: Could not update: Execution of '/usr/bin/gem install --no-rdoc --no-ri travis-lint' returned 1: ERROR: While executing gem ... (TypeError)==> default: wrong argument type nil (expected Regexp)Other possibly relevant output from the [full log file |http://pastebin.com/GgT3Vy1E ] [3] :Debug: Puppet::Type::Package::ProviderPuppet_gem: file /opt/puppetlabs/puppet/bin/gem does not existDebug: /Package[puppet-lint]: Provider gem does not support features virtual_packages; not managing attribute allow_virtualDebug: /Package[reek]: Provider gem does not support features virtual_packages; not managing attribute allow_virtualDebug: /Package[travis-lint]: Provider gem does not support features virtual_packages; not managing attribute allow_virtualSetting `ensure` to `2.0.0` didn't help, so it's not related to the `latest` keyword:Error: Could not update: Execution of '/usr/bin/gem install -v 2.0.0 --no-rdoc --no-ri travis-lint' returned 1: ERROR: While executing gem ... (TypeError)wrong argument type nil (expected Regexp)I am able to run the exact same command manually:[vagrant@archlinux ~]$ /usr/bin/gem install --no-rdoc --no-ri travis-lintFetching: travis-lint-2.0.0.gem (100%)WARNING: You don't have /home/vagrant/.gem/ruby/2.3.0/bin in your PATH, gem executables will not run.Successfully installed travis-lint-2.0.01 gem installedIs my Puppet manifest wrong, or is something broken about Puppet/Gem? Is it possible that `latest` is not a valid value for gems?[vagrant@archlinux ~]$ puppet --version4.3.1[vagrant@archlinux ~]$ gem --version2.5.1 [1]: https://github.com/l0b0/root/blob/cf94a48397bb2323bbecfd657b43d6fd748818c8/modules/travis_linter/manifests/init.pp [2]: https://github.com/l0b0/root/tree/cf94a48397bb2323bbecfd657b43d6fd748818c8#test [3]: http://pastebin.com/GgT3Vy1E
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Victor Engmark updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Victor Engmark From [unix.stackexchange.com post|https://unix.stackexchange.com/q/252937/3645]:I've got [the following|https://github.com/l0b0/root/blob/cf94a48397bb2323bbecfd657b43d6fd748818c8/modules/travis_linter/manifests/init.pp]:{code:puppet}class travis_linter { include shell package { 'travis-lint':ensure => latest,provider => gem, }}{code}When I try to [test it|https://github.com/l0b0/root/tree/cf94a48397bb2323bbecfd657b43d6fd748818c8#test], however, I get the following Puppet output:{noformat}==> default: Debug: Executing: '/usr/bin/gem install --no-rdoc --no-ri travis-lint'==> default: Error: Could not update: Execution of '/usr/bin/gem install --no-rdoc --no-ri travis-lint' returned 1: ERROR: While executing gem ... (TypeError)==> default: wrong argument type nil (expected Regexp)==> default: Error: /Stage[main]/Travis_linter/Package[travis-lint]/ensure: change from absent to latest failed: Could not update: Execution of '/usr/bin/gem install --no-rdoc --no-ri travis-lint' returned 1: ERROR: While executing gem ... (TypeError)==> default: wrong argument type nil (expected Regexp){noformat}Other possibly relevant output from the [full log file|http://pastebin.com/GgT3Vy1E]:{noformat}Debug: Puppet::Type::Package::ProviderPuppet_gem: file /opt/puppetlabs/puppet/bin/gem does not existDebug: /Package[puppet-lint]: Provider gem does not support features virtual_packages; not managing attribute allow_virtualDebug: /Package[reek]: Provider gem does not support features virtual_packages; not managing attribute allow_virtualDebug: /Package[travis-lint]: Provider gem does not support features virtual_packages; not managing attribute allow_virtual{noformat}Setting `ensure` to `2.0.0` didn't help, so it's not related to the `latest` keyword:{noformat}Error: Could not update: Execution of '/usr/bin/gem install -v 2.0.0 --no-rdoc --no-ri travis-lint' returned 1: ERROR: While executing gem ... (TypeError)wrong argument type nil (expected Regexp){noformat}I am able to run the exact same command manually:{noformat}[vagrant@archlinux ~]$ /usr/bin/gem install --no-rdoc --no-ri travis-lintFetching: travis-lint-2.0.0.gem (100%)WARNING: You don't have /home/vagrant/.gem/ruby/2.3.0/bin in your PATH, gem executables will not run.Successfully installed travis-lint-2.0.01 gem installed{noformat}Is my Puppet manifest wrong, or is something broken about Puppet/Gem? Is it possible that `latest` is not a valid value for gems? Add Comment
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Victor Engmark updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Victor Engmark From [unix.stackexchange.com post|https://unix.stackexchange.com/q/252937/3645]:I've got [the following|https://github.com/l0b0/root/blob/cf94a48397bb2323bbecfd657b43d6fd748818c8/modules/travis_linter/manifests/init.pp]: {code:puppet} class travis_linter { include shell package { 'travis-lint':ensure => latest,provider => gem, }} {code} When I try to [test it|https://github.com/l0b0/root/tree/cf94a48397bb2323bbecfd657b43d6fd748818c8#test], however, I get the following Puppet output: {noformat} ==> default: Debug: Executing: '/usr/bin/gem install --no-rdoc --no-ri travis-lint'==> default: Error: Could not update: Execution of '/usr/bin/gem install --no-rdoc --no-ri travis-lint' returned 1: ERROR: While executing gem ... (TypeError)==> default: wrong argument type nil (expected Regexp)==> default: Error: /Stage[main]/Travis_linter/Package[travis-lint]/ensure: change from absent to latest failed: Could not update: Execution of '/usr/bin/gem install --no-rdoc --no-ri travis-lint' returned 1: ERROR: While executing gem ... (TypeError)==> default: wrong argument type nil (expected Regexp) {noformat} Other possibly relevant output from the [full log file|http://pastebin.com/GgT3Vy1E]: {noformat} Debug: Puppet::Type::Package::ProviderPuppet_gem: file /opt/puppetlabs/puppet/bin/gem does not existDebug: /Package[puppet-lint]: Provider gem does not support features virtual_packages; not managing attribute allow_virtualDebug: /Package[reek]: Provider gem does not support features virtual_packages; not managing attribute allow_virtualDebug: /Package[travis-lint]: Provider gem does not support features virtual_packages; not managing attribute allow_virtual {noformat} Setting `ensure` to `2.0.0` didn't help, so it's not related to the `latest` keyword: {noformat} Error: Could not update: Execution of '/usr/bin/gem install -v 2.0.0 --no-rdoc --no-ri travis-lint' returned 1: ERROR: While executing gem ... (TypeError)wrong argument type nil (expected Regexp) {noformat} I am able to run the exact same command manually: {noformat} [vagrant@archlinux ~]$ /usr/bin/gem install --no-rdoc --no-ri travis-lintFetching: travis-lint-2.0.0.gem (100%)WARNING: You don't have /home/vagrant/.gem/ruby/2.3.0/bin in your PATH, gem executables will not run.Successfully installed travis-lint-2.0.01 gem installed {noformat} Is my Puppet manifest wrong, or is something broken about Puppet/Gem? Is it possible that `latest` is not a valid value for gems? [vagrant@archlinux ~]$ puppet --version4.3.1[vagrant@archlinux ~]$ gem --version2.5.1
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Victor Engmark updated an issue Puppet / PUP-5645 Can't install gems on Arch Linux Change By: Victor Engmark From [unix.stackexchange.com post|https://unix.stackexchange.com/q/252937/3645]:I've got [the following|https://github.com/l0b0/root/blob/cf94a48397bb2323bbecfd657b43d6fd748818c8/modules/travis_linter/manifests/init.pp]:{code:puppet}class travis_linter { include shell package { 'travis-lint':ensure => latest,provider => gem, }}{code}When I try to [test it|https://github.com/l0b0/root/tree/cf94a48397bb2323bbecfd657b43d6fd748818c8#test], however, I get the following Puppet output:{noformat}==> default: Debug: Executing: '/usr/bin/gem install --no-rdoc --no-ri travis-lint'==> default: Error: Could not update: Execution of '/usr/bin/gem install --no-rdoc --no-ri travis-lint' returned 1: ERROR: While executing gem ... (TypeError)==> default: wrong argument type nil (expected Regexp)==> default: Error: /Stage[main]/Travis_linter/Package[travis-lint]/ensure: change from absent to latest failed: Could not update: Execution of '/usr/bin/gem install --no-rdoc --no-ri travis-lint' returned 1: ERROR: While executing gem ... (TypeError)==> default: wrong argument type nil (expected Regexp){noformat}Other possibly relevant output from the [full log file|http://pastebin.com/GgT3Vy1E]:{noformat}Debug: Puppet::Type::Package::ProviderPuppet_gem: file /opt/puppetlabs/puppet/bin/gem does not existDebug: /Package[puppet-lint]: Provider gem does not support features virtual_packages; not managing attribute allow_virtualDebug: /Package[reek]: Provider gem does not support features virtual_packages; not managing attribute allow_virtualDebug: /Package[travis-lint]: Provider gem does not support features virtual_packages; not managing attribute allow_virtual{noformat}Setting `ensure` to `2.0.0` didn't help, so it's not related to the `latest` keyword:{noformat}Error: Could not update: Execution of '/usr/bin/gem install -v 2.0.0 --no-rdoc --no-ri travis-lint' returned 1: ERROR: While executing gem ... (TypeError)wrong argument type nil (expected Regexp){noformat}I am able to run the exact same command manually:{noformat}[vagrant@archlinux ~]$ /usr/bin/gem install --no-rdoc --no-ri travis-lintFetching: travis-lint-2.0.0.gem (100%)WARNING: You don't have /home/vagrant/.gem/ruby/2.3.0/bin in your PATH, gem executables will not run.Successfully installed travis-lint-2.0.01 gem installed{noformat}Is my Puppet manifest wrong, or is something broken about Puppet/Gem? Is it possible that `latest` is not a valid value for gems? It works fine on [Travis CI (Ubuntu 12.04)|https://travis-ci.org/l0b0/root/builds/99846406#L1153-L1156]:{noformat}Debug: Executing: '/home/travis/.rvm/rubies/ruby-2.2.3/bin/gem list --local ^travis-lint$'Debug: Executing: '/home/travis/.rvm/rubies/ruby-2.2.3/bin/gem install --no-rdoc --no-ri travis-lint'Notice: /Stage[main]/Travis_linter/Package[travis-lint]/ensure: createdDebug: /Package[travis-lint]: The container Class[Travis_linter] will propagate my refresh event{noformat}
Jira (PUP-5645) Can't install gems on Arch Linux
Title: Message Title Victor Engmark created an issue Puppet / PUP-5645 Can't install gems on Arch Linux Issue Type: Bug Affects Versions: PUP 4.3.1 Assignee: Kylo Ginsberg Components: Types and Providers Created: 2016/01/03 5:03 AM Environment: Up-to-date Arch Linux `gem` version 2.5.1 Labels: gem Priority: Blocker Reporter: Victor Engmark From [unix.stackexchange.com