Could not load confine test 'operatingsystem': cannot load such file -- puppet/provider/confine/operatingsystem

861 views
Skip to first unread message

lth

unread,
Mar 28, 2012, 4:07:58 PM3/28/12
to Puppet Users
Hello,

I'm having some trouble. I keep getting the following warnings when
trying to run:

$ puppet master --no-daemonize
/usr/local/build/puppet-bundle/vendor/gems/ruby/1.9.1/gems/
puppet-2.7.12/lib/puppet/external/pson/pure.rb:7:in `<module:PSON>':
iconv will be deprecated in the future, use String#encode instead.
Could not load confine test 'operatingsystem': cannot load such file
-- puppet/provider/confine/operatingsystem
[repeats a number of times]

$ ruby -v
ruby 1.9.3p0 (2011-10-30) [x86_64-linux]

$ which ruby
/usr/local/bin/ruby

$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.7 (Tikanga)

Thanks in advance.

-LTH

Kinzel, David

unread,
Mar 28, 2012, 4:13:15 PM3/28/12
to puppet...@googlegroups.com
These are harmless:

http://projects.puppetlabs.com/issues/11325

>--
>You received this message because you are subscribed to the
>Google Groups "Puppet Users" group.
>To post to this group, send email to puppet...@googlegroups.com.
>To unsubscribe from this group, send email to
>puppet-users...@googlegroups.com.
>For more options, visit this group at
>http://groups.google.com/group/puppet-users?hl=en.
>
>


This email communication and any files transmitted with it may contain
confidential and or proprietary information and is provided for the use of the
intended recipient only. Any review, retransmission or dissemination of this
information by anyone other than the intended recipient is prohibited. If you
receive this email in error, please contact the sender and delete this
communication and any copies immediately. Thank you.

http://www.encana.com

lth

unread,
Mar 28, 2012, 4:25:11 PM3/28/12
to Puppet Users
Thanks for the quick response. However the agent is receiving an
error and doesn't get the catalog. We're getting this:

Ruby (Rack) application could not be started
The application has exited during startup (i.e. during the evaluation
of config/environment.rb). The error message can be found below. To
solve this problem, please follow any instructions in the error
message.

Error message:
/usr/local/build/puppet-bundle/vendor/gems/ruby/1.9.1/gems/
puppet-2.7.12/lib/puppet/external/pson/pure.rb:7:in `<module:PSON>':
iconv will be deprecated in the future, use String#encode instead.
Could not load confine test 'operatingsystem': cannot load such file
-- puppet/provider/confine/operatingsystem Could not load confine test
'operatingsystem': cannot load such file -- puppet/provider/confine/
operatingsystem Could not load confine test 'operatingsystem': cannot
load such file -- puppet/provider/confine/operatingsystem Could not
load confine test 'operatingsystem': cannot load such file -- puppet/
provider/confine/operatingsystem Could not load confine test
'operatingsystem': cannot load such file -- puppet/provider/confine/
operatingsystem Could not load confine test 'operatingsystem': cannot
load such file -- puppet/provider/confine/operatingsystem Could not
load confine test 'operatingsystem': cannot load such file -- puppet/
provider/confine/operatingsystem Could not load confine test
'operatingsystem': cannot load such file -- puppet/provider/confine/
operatingsystem Could not load confine test 'operatingsystem': cannot
load such file -- puppet/provider/confine/operatingsystem

Application root:
/usr/local/build/puppet-bundle

-LTH

Denmat

unread,
Mar 28, 2012, 4:30:06 PM3/28/12
to puppet...@googlegroups.com
Hi,

Is that a ruby 1.9.1 and 1.9.3 issue? Did you upgrade ruby on the host?

Den

lth

unread,
Apr 4, 2012, 2:41:16 PM4/4/12
to puppet...@googlegroups.com
Hi, 

Thanks for everyone's help.  Just an update to this issue.  The displayed error was indeed harmless as noted on this thread.  

The actual error we found in Apache's error_log was:
Exception LoadError in PhusionPassenger::Rack::ApplicationSpawner (cannot load such file -- rack) 

We think we were getting this because Passenger wasn't finding Bundler's Gemfile in spite of being in the bundle.  We fixed it by changing the DocumentRoot from /etc/puppet/rack/public to /etc/puppet/public (since /etc/puppet is where the Gemfile is).

Thanks again,

-LTH
Reply all
Reply to author
Forward
0 new messages