Public bug reported:

On a new raring install I have added puppet (which brings in facter) but
puppet won't start:

# service puppet restart 
 * Restarting puppet agent                                                      
                                                             
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load 
such file -- facter (LoadError)
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/ruby/vendor_ruby/puppet.rb:9:in `<top (required)>'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/ruby/vendor_ruby/puppet/application.rb:272:in `initialize'
        from /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:60:in `new'
        from /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:60:in 
`execute'
        from /usr/bin/puppet:4:in `<main>'

Looking at facter, it is apparent that it is only available under
ruby1.8:

% dpkg-query -L facter | grep -c ruby/1.8
83
% dpkg-query -L facter | grep -c ruby/1.9
0

However, /usr/bin/puppet is set to use ruby-1.9.1. Manually changing it
to use ruby1.8 allows puppet to start.

Additionally, puppet (<3.x) is known to only run on ruby <1.9.x.

# lsb_release -rd
Description:    Ubuntu Raring Ringtail (development branch)
Release:        13.04

# apt-cache policy puppet facter ruby ruby1.8 ruby1.9.1
puppet:
  Installed: 2.7.18-4ubuntu1
  Candidate: 2.7.18-4ubuntu1
  Version table:
 *** 2.7.18-4ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
        100 /var/lib/dpkg/status
facter:
  Installed: 1.6.9-2ubuntu1
  Candidate: 1.6.9-2ubuntu1
  Version table:
 *** 1.6.9-2ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
        100 /var/lib/dpkg/status
ruby:
  Installed: 4.9
  Candidate: 4.9
  Version table:
 *** 4.9 0
        500 http://us.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
        100 /var/lib/dpkg/status
ruby1.8:
  Installed: 1.8.7.358-7ubuntu1
  Candidate: 1.8.7.358-7ubuntu1
  Version table:
 *** 1.8.7.358-7ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
        100 /var/lib/dpkg/status
ruby1.9.1:
  Installed: 1.9.3.194-8.1ubuntu1
  Candidate: 1.9.3.194-8.1ubuntu1
  Version table:
 *** 1.9.3.194-8.1ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
        100 /var/lib/dpkg/status

** Affects: puppet (Ubuntu)
     Importance: Undecided
         Status: Invalid

** Changed in: puppet (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to puppet in Ubuntu.
https://bugs.launchpad.net/bugs/1170801

Title:
  puppet needs to use ruby1.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/1170801/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to