Puppet fails on aws instance using ruby19 yum install

154 views
Skip to first unread message

Robert Logan

unread,
Oct 7, 2013, 11:27:41 AM10/7/13
to puppet...@googlegroups.com

I've been trying to use the ruby19 and rubygems19 packages from amazons yum repo but cant get around this issue:

[root@ip-10-234-225-44 ~]# puppetd --test
/usr/share/rubygems1.9/rubygems/custom_require.rb:36:in `require': cannot load such file -- puppet/application/agent (LoadError)
        from /usr/share/rubygems1.9/rubygems/custom_require.rb:36:in `require'
        from /usr/sbin/puppetd:3:in `<main>'


The above occurs using the amazon repo puppet install (2.7.23) at time of writing, and the puppetlabs yum repo below is the same ..

[root@ip-10-234-225-44 ~]# puppet agent --test
/usr/share/rubygems1.9/rubygems/custom_require.rb:36:in `require': cannot load such file -- puppet/util/command_line (LoadError)
        from /usr/share/rubygems1.9/rubygems/custom_require.rb:36:in `require'
        from /usr/bin/puppet:3:in `<main>'



[root@ip-10-234-225-44 ~]# ruby --version
ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux]
[root@ip-10-234-225-44 ~]# ruby -e 'puts $:'
/usr/local/share/ruby19/site_ruby
/usr/local/lib64/ruby19/site_ruby
/usr/share/ruby/1.9/vendor_ruby
/usr/lib64/ruby/1.9/vendor_ruby
/usr/share/rubygems1.9
/usr/share/ruby/1.9
/usr/lib64/ruby/1.9


Does anyone have any ideas on this?

----------------------------------------------------------------------------------

The information in this email is confidential and may be legally privileged.  It is intended solely for the addressee.  Access to this email by anyone else is unauthorised.  If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.
 
Policy Expert is a trading name of QMetric Group Limited who is authorised and regulated by the Financial Services Authority.  The registered company address of QMetric Group Limited is: 32-38 Dukes Place, London, EC3A 7LP and its company registration number is 07151701.

Glenn Poston

unread,
Dec 4, 2013, 4:01:30 PM12/4/13
to puppet...@googlegroups.com
I'm having the exact same issue.  Anyone had success with puppet 3 ruby19 and Amazon linux?  Any help?

Alexander Gray II

unread,
Dec 4, 2013, 4:29:25 PM12/4/13
to puppet...@googlegroups.com
same here.  if anyone has an update, please post here.  Thanks.

Josh Miller

unread,
Dec 18, 2013, 8:01:07 PM12/18/13
to puppet...@googlegroups.com
On Wednesday, December 4, 2013 1:29:25 PM UTC-8, Alexander Gray II wrote:
same here.  if anyone has an update, please post here.  Thanks.

It looks like Amazon recently started providing ruby 1.9 vs 1.8 and puppet is expecting 1.8.  I have installed puppet 3.3.2 via the puppetlabs yum repository:

# rpm -q puppet
puppet-3.3.2-1.el6.noarch

# rpm -ql puppet | egrep -i command
/usr/lib/ruby/site_ruby/1.8/puppet/provider/command.rb
/usr/lib/ruby/site_ruby/1.8/puppet/type/nagios_command.rb
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line/puppet_option_parser.rb
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line/trollop.rb

I am working around this temorarily by editing /usr/bin/puppet and changing the first line to:

#!/usr/bin/ruby1.8

...of course, this requires that you have ruby-1.8 installed.
Reply all
Reply to author
Forward
0 new messages