The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using https://tickets.puppetlabs.com. See the following page for information on filing tickets with JIRA:

Bug #19166

puppet agent: Error: Could not create resources for managing Puppet's files and directories in sections [:main, :agent, :ssl]: undefined method `exists?'

Added by Steve Foster about 3 years ago. Updated about 3 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Affected Puppet version:3.1.0 Branch:
Keywords:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com


Description

Previously working system now fails to run puppet agent with the following error:

[root@ 1.8]# puppet agent -t        
Error: Could not create resources for managing Puppet's files and directories in sections [:main, :agent, :ssl]: undefined method `exists?' for #<Puppet::Type::Group:0x7f82af1e00d0>
Error: Could not prepare for execution: Could not create resources for managing Puppet's files and directories in sections [:main, :agent, :ssl]: undefined method `exists?' for #<Puppet::Type::Group:0x7f82af1e00d0>
undefined method `exists?' for #<Puppet::Type::Group:0x7f82af1e00d0>

Running with —trace shows the following:

[root@isssun10 ~]#puppet agent -t --trace
Error: Could not create resources for managing Puppet's files and directories in sections [:main, :agent, :ssl]: undefined method `exists?' for #<Puppet::Type::Group:0x7f54222f3208>
/usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:725:in `service_group_available?'
/usr/lib/ruby/site_ruby/1.8/puppet/settings/file_setting.rb:54:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/settings/file_setting.rb:54:in `safe_to_use_settings_value?'
/usr/lib/ruby/site_ruby/1.8/puppet/settings/file_setting.rb:45:in `value'
/usr/lib/ruby/site_ruby/1.8/puppet/settings/file_setting.rb:102:in `group'
/usr/lib/ruby/site_ruby/1.8/puppet/settings/file_setting.rb:157:in `to_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:847:in `to_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:844:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:844:in `to_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:906:in `use'
/usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:900:in `use'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:450:in `setup'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:362:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:456:in `plugin_hook'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:362:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:504:in `exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:362:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:132:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:86:in `execute'
/usr/bin/puppet:4
Error: Could not prepare for execution: Could not create resources for managing Puppet's files and directories in sections [:main, :agent, :ssl]: undefined method `exists?' for #<Puppet::Type::Group:0x7f54222f3208>
undefined method `exists?' for #<Puppet::Type::Group:0x7f54222f3208>
/usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:725:in `service_group_available?'
/usr/lib/ruby/site_ruby/1.8/puppet/settings/file_setting.rb:54:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/settings/file_setting.rb:54:in `safe_to_use_settings_value?'
/usr/lib/ruby/site_ruby/1.8/puppet/settings/file_setting.rb:45:in `value'
/usr/lib/ruby/site_ruby/1.8/puppet/settings/file_setting.rb:102:in `group'
/usr/lib/ruby/site_ruby/1.8/puppet/settings/file_setting.rb:157:in `to_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:847:in `to_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:844:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:844:in `to_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:906:in `use'
/usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:900:in `use'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:450:in `setup'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:362:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:456:in `plugin_hook'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:362:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:504:in `exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:362:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:132:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:86:in `execute'
/usr/bin/puppet:4

I have also re-installed puppet, facter and hiera. this hasn’t resolved the issue

History

#1 Updated by Steve Foster about 3 years ago

  • Status changed from Unreviewed to Closed

Issue with stale puppet gem… updated the gem using

gem update puppet

then the problem went away

Also available in: Atom PDF