Issue #19670 has been updated by Stephan Mestach.
mixing 3.0.2 and 3.1.0 was causing this issue on my system gem uninstall puppet gem install puppet this solved partially my issue. ---------------------------------------- Bug #19670: Could not create resources for managing Puppet's files and directories in sections [:main, :agent, :ssl] https://projects.puppetlabs.com/issues/19670#change-86818 Author: Nikolay Georgieff Status: Unreviewed Priority: Urgent Assignee: Category: Target version: Affected Puppet version: 3.1.0 Keywords: Branch: Upgraded Puppet from 2.7.20 to 3.1 and can't get it working: [root@puppet ~]# puppet agent -t --trace --debug Debug: Using settings: adding file resource 'clientyamldir': 'File[/var/lib/puppet/client_yaml]{:loglevel=>:debug, :links=>:follow, :ensure=>:directory, :backup=>false, :mode=>"750", :path=>"/var/lib/puppet/client_yaml"}' Debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist Debug: Failed to load library 'ldap' for feature 'ldap' Debug: Puppet::Type::User::ProviderLdap: feature ldap is missing Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist Debug: Puppet::Type::User::ProviderPw: file pw does not exist Debug: Using settings: adding file resource 'hostprivkey': 'File[/var/lib/puppet/ssl/private_keys/puppetmaster.ucla.edu.pem]{:loglevel=>:debug, :links=>:follow, :owner=>"puppet", :ensure=>:file, :backup=>false, :mode=>"640", :path=>"/var/lib/puppet/ssl/private_keys/puppetmaster.ucla.edu.pem"}' Debug: Using settings: adding file resource 'resourcefile': 'File[/var/lib/puppet/state/resources.txt]{:loglevel=>:debug, :links=>:follow, :owner=>"root", :ensure=>:file, :backup=>false, :mode=>"640", :path=>"/var/lib/puppet/state/resources.txt"}' Debug: Failed to load library 'ldap' for feature 'ldap' Debug: Puppet::Type::Group::ProviderLdap: feature ldap is missing Debug: Puppet::Type::Group::ProviderDirectoryservice: file /usr/bin/dscl does not exist Debug: Puppet::Type::Group::ProviderPw: file pw does not exist Error: Could not create resources for managing Puppet's files and directories in sections [:main, :agent, :ssl]: undefined method `exists?' for #<Puppet::Type::Group:0x7feaedf20cd0> /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:0x7feaedf20cd0> undefined method `exists?' for #<Puppet::Type::Group:0x7feaedf20cd0> /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 [root@puppet ~]# -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
