undefined method `exists?'
Puppet agent is returning this output only when running from the crontab and thus not getting the master definitions. Runs fine when running manually from the command line.
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
puppet agent version: 3.7.5
Apr 13 11:37:02 foohost puppet-agent[19969]: Could not create resources for managing Puppet's files and directories in sections [:main, :agent, :ssl]: undefined method `exists?' for nil:NilClass
Apr 13 11:37:02 foohost puppet-agent[19969]: /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.5/lib/puppet/type/user.rb:382:in `exists?'
Apr 13 11:37:02 foohost puppet-agent[19969]: /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.5/lib/puppet/settings.rb:800:in `service_user_available?'
Apr 13 11:37:02 foohost puppet-agent[19969]: /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.5/lib/puppet/settings/file_setting.rb:52:in `send'
Apr 13 11:37:02 foohost puppet-agent[19969]: /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.5/lib/puppet/settings/file_setting.rb:52:in `safe_to_use_settings_value?'
Apr 13 11:37:02 foohost puppet-agent[19969]: /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.5/lib/puppet/settings/file_setting.rb:43:in `value'
Apr 13 11:37:02 foohost puppet-agent[19969]: /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.5/lib/puppet/settings/file_setting.rb:106:in `owner'
Apr 13 11:37:02 foohost puppet-agent[19969]: /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.5/lib/puppet/settings/file_setting.rb:160:in `to_resource'
Apr 13 11:37:02 foohost puppet-agent[19969]: /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.5/lib/puppet/settings.rb:916:in `to_catalog'
Apr 13 11:37:02 foohost puppet-agent[19969]: /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.5/lib/puppet/settings.rb:912:in `each'
Apr 13 11:37:02 foohost puppet-agent[19969]: /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.5/lib/puppet/settings.rb:912:in `to_catalog'
Apr 13 11:37:02 foohost puppet-agent[19969]: /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.5/lib/puppet/settings.rb:982:in `use'
Apr 13 11:37:02 foohost puppet-agent[19969]: /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.5/lib/puppet/application/agent.rb:404:in `setup'
Apr 13 11:37:02 foohost puppet-agent[19969]: /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.5/lib/puppet/application.rb:378:in `run'
Apr 13 11:37:02 foohost puppet-agent[19969]: /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.5/lib/puppet/application.rb:507:in `plugin_hook'
Apr 13 11:37:02 foohost puppet-agent[19969]: /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.5/lib/puppet/application.rb:378:in `run'
Apr 13 11:37:02 foohost puppet-agent[19969]: /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.5/lib/puppet/util.rb:488:in `exit_on_fail'
Apr 13 11:37:02 foohost puppet-agent[19969]: /usr/lib64/ruby/gems/1.8/gems/puppet-3.7.5/lib/puppet/application ...
Thanks for your hint Greg. I see that there are some differences between the PATH on the crontab and environment PATH and I have corrected this and is now working fine.
Good to hear!