Hello, I''m trying to make a simple puppetmaster configuration (all on one node for now), but it seems to be misbehaving. On the client, I get the following error Warning: Unable to fetch my node definition, but the agent run will continue: Warning: Error 400 on SERVER: Operation not permitted - /var/lib/puppet/yaml/node/se2.accre.vanderbilt.edu.yaml20130217-7515-15ykmmn-0 Info: Retrieving plugin Info: Loading facts in /etc/puppet/modules/puppi/lib/facter/last_run.rb Info: Loading facts in /etc/puppet/modules/puppi/lib/facter/puppi_projects.rb Info: Loading facts in /var/lib/puppet/lib/facter/last_run.rb Info: Loading facts in /var/lib/puppet/lib/facter/puppi_projects.rb Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node se2.accre.vanderbilt.edu: Operation not permitted - /var/lib/puppet/yaml/node/se2.accre.vanderbilt.edu.yaml20130217-7515-10yio8g-0 Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run And on the master, I see Info: Caching node for se2.accre.vanderbilt.edu Error: Operation not permitted - /var/lib/puppet/yaml/node/se2.accre.vanderbilt.edu.yaml20130217-7515-15ykmmn-0 Info: Caching node for se2.accre.vanderbilt.edu Error: Failed when searching for node se2.accre.vanderbilt.edu: Operation not permitted - /var/lib/puppet/yaml/node/se2.accre.vanderbilt.edu.yaml20130217-7515-10yio8g-0 Error: Failed when searching for node se2.accre.vanderbilt.edu: Operation not permitted - /var/lib/puppet/yaml/node/se2.accre.vanderbilt.edu.yaml20130217-7515-10yio8g-0 Even if I recursively set /var/lib/puppet/yaml to be mode 777. I''m confused about whats''s going on here, any suggestions? Thanks, Andrew -- -- Andrew Melo -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Turn off selinux ''setenforce 0'' & see if it solves the issue. On 2013-02-17 5:27 AM, "Andrew Melo" <andrew.melo@gmail.com> wrote:> Hello, > > I''m trying to make a simple puppetmaster configuration (all on one > node for now), but it seems to be misbehaving. On the client, I get > the following error > > Warning: Unable to fetch my node definition, but the agent run will > continue: > Warning: Error 400 on SERVER: Operation not permitted - > > /var/lib/puppet/yaml/node/se2.accre.vanderbilt.edu.yaml20130217-7515-15ykmmn-0 > Info: Retrieving plugin > Info: Loading facts in /etc/puppet/modules/puppi/lib/facter/last_run.rb > Info: Loading facts in > /etc/puppet/modules/puppi/lib/facter/puppi_projects.rb > Info: Loading facts in /var/lib/puppet/lib/facter/last_run.rb > Info: Loading facts in /var/lib/puppet/lib/facter/puppi_projects.rb > Error: Could not retrieve catalog from remote server: Error 400 on > SERVER: Failed when searching for node se2.accre.vanderbilt.edu: > Operation not permitted - > > /var/lib/puppet/yaml/node/se2.accre.vanderbilt.edu.yaml20130217-7515-10yio8g-0 > Warning: Not using cache on failed catalog > Error: Could not retrieve catalog; skipping run > > > And on the master, I see > > Info: Caching node for se2.accre.vanderbilt.edu > Error: Operation not permitted - > > /var/lib/puppet/yaml/node/se2.accre.vanderbilt.edu.yaml20130217-7515-15ykmmn-0 > Info: Caching node for se2.accre.vanderbilt.edu > Error: Failed when searching for node se2.accre.vanderbilt.edu: > Operation not permitted - > > /var/lib/puppet/yaml/node/se2.accre.vanderbilt.edu.yaml20130217-7515-10yio8g-0 > Error: Failed when searching for node se2.accre.vanderbilt.edu: > Operation not permitted - > > /var/lib/puppet/yaml/node/se2.accre.vanderbilt.edu.yaml20130217-7515-10yio8g-0 > > Even if I recursively set /var/lib/puppet/yaml to be mode 777. I''m > confused about whats''s going on here, any suggestions? > > Thanks, > Andrew > -- > -- > Andrew Melo > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Hi, I''m trying to setup a Puppet 3.1.1 (master) under NetBSD 6.0.1 I''ve installed Ruby 1.9.3 through pkgin and Puppet with $ gem install puppet. (pkgsrc has a puppet port under sysutils/puppet but is very very outdated... version 0.25) After generate and configure puppet.conf with $ puppet master --genconfig > puppet.conf (I''ve symlinked /etc/puppet to /etc/pkg/etc/puppet for NetBSD compliance) then I got this $ puppet master --no-daemonize -v -d -o --trace Debug: Failed to load library ''selinux'' for feature ''selinux'' Debug: Using settings: adding file resource ''confdir'': ''File[/usr/pkg/etc/puppet]{:path=>"/usr/pkg/etc/puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'' Debug: Using settings: adding file resource ''vardir'': ''File[/var/lib/puppet]{:path=>"/var/lib/puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'' Debug: Failed to load library ''shadow'' for feature ''libshadow'' Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dsimport does not exist Debug: Puppet::Type::User::ProviderUseradd: file chage 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::ProviderUser_role_add: file roleadd does not exist Debug: Puppet::Type::User::ProviderPw: file pw does not exist Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dsimport does not exist Debug: Puppet::Type::User::ProviderUseradd: file chage 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::ProviderUser_role_add: file roleadd does not exist Debug: Puppet::Type::User::ProviderPw: file pw does not exist Error: Could not create resources for managing Puppet''s files and directories in sections [:main, :master, :ssl, :metrics]: undefined method `exists?'' for nil:NilClass /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/type/user.rb:367:in `exists?'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:713:in `service_user_available?'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:54:in `safe_to_use_settings_value?'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:45:in `value'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:108:in `owner'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:156:in `to_resource'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:847:in `block in to_catalog'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in `each'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in `to_catalog'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:906:in `block in use'' /usr/pkg/lib/ruby/1.9.3/sync.rb:227:in `sync_synchronize'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:900:in `use'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application/master.rb:269:in `setup'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `block (2 levels) in run'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:456:in `plugin_hook'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `block in run'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util.rb:504:in `exit_on_fail'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `run'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:132:in `run'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:86:in `execute'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/bin/puppet:4:in `<top (required)>'' /usr/pkg/bin/puppet:23:in `load'' /usr/pkg/bin/puppet:23:in `<main>'' Error: Could not prepare for execution: Could not create resources for managing Puppet''s files and directories in sections [:main, :master, :ssl, :metrics]: undefined method `exists?'' for nil:NilClass undefined method `exists?'' for nil:NilClass /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/type/user.rb:367:in `exists?'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:713:in `service_user_available?'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:54:in `safe_to_use_settings_value?'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:45:in `value'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:108:in `owner'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:156:in `to_resource'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:847:in `block in to_catalog'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in `each'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in `to_catalog'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:906:in `block in use'' /usr/pkg/lib/ruby/1.9.3/sync.rb:227:in `sync_synchronize'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:900:in `use'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application/master.rb:269:in `setup'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `block (2 levels) in run'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:456:in `plugin_hook'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `block in run'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util.rb:504:in `exit_on_fail'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `run'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:132:in `run'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:86:in `execute'' /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/bin/puppet:4:in `<top (required)>'' /usr/pkg/bin/puppet:23:in `load'' /usr/pkg/bin/puppet:23:in `<main>'' Should I open a ticket or is there something I can do to solve this issue? Any tip? Cheers, Frank -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Hi Frank - On Sat, Mar 16, 2013 at 11:03 AM, ureal frank <urealfrank@gmail.com> wrote:> Hi, > > I''m trying to setup a Puppet 3.1.1 (master) under NetBSD 6.0.1 > > I''ve installed Ruby 1.9.3 through pkgin and Puppet with $ gem install > puppet. > > (pkgsrc has a puppet port under sysutils/puppet but is very very > outdated... version 0.25) > > After generate and configure puppet.conf with $ puppet master --genconfig > > puppet.conf > (I''ve symlinked /etc/puppet to /etc/pkg/etc/puppet for NetBSD compliance) > > then I got this > > $ puppet master --no-daemonize -v -d -o --trace > > Debug: Failed to load library ''selinux'' for feature ''selinux'' > Debug: Using settings: adding file resource ''confdir'': > ''File[/usr/pkg/etc/puppet]{:path=>"/usr/pkg/etc/puppet", > :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'' > Debug: Using settings: adding file resource ''vardir'': > ''File[/var/lib/puppet]{:path=>"/var/lib/puppet", :ensure=>:directory, > :loglevel=>:debug, :links=>:follow, :backup=>false}'' > Debug: Failed to load library ''shadow'' for feature ''libshadow'' > Debug: Puppet::Type::User::ProviderDirectoryservice: file > /usr/bin/dsimport does not exist > Debug: Puppet::Type::User::ProviderUseradd: file chage 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::ProviderUser_role_add: file roleadd does not > exist > Debug: Puppet::Type::User::ProviderPw: file pw does not exist > Debug: Puppet::Type::User::ProviderDirectoryservice: file > /usr/bin/dsimport does not exist > Debug: Puppet::Type::User::ProviderUseradd: file chage 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::ProviderUser_role_add: file roleadd does not > exist > Debug: Puppet::Type::User::ProviderPw: file pw does not exist > > Error: Could not create resources for managing Puppet''s files and > directories in sections [:main, :master, :ssl, :metrics]: undefined method > `exists?'' for nil:NilClass > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/type/user.rb:367:in > `exists?'' >Looking at the code it seems that there''s not a default provider for User on {Net,Open}BSD. https://github.com/puppetlabs/puppet/blob/3.1.1/lib/puppet/type/user.rb#L367 You should have originally seen an error message like this one: https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/Tc5hysfdy5k Not seeing it is a regression in our error reporting, and if you didn''t see it I''d file a ticket. It seems that the default provider issue is a known bug, and that a couple times folks have encouraged users to submit some code to fix it. https://projects.puppetlabs.com/issues/13594 and: https://projects.puppetlabs.com/issues/9586 both have similar patches embedded in the text, if you could try to apply it locally and once working issue a pull request that''d be Awesome. If you have any trouble feel free to come back to the list, or contact me personally, or our devs devoted to community contributions - @jeffmcune and @adrienthebo - on teh hubs. - Justin /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:713:in> `service_user_available?'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:54:in > `safe_to_use_settings_value?'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:45:in > `value'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:108:in > `owner'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:156:in > `to_resource'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:847:in > `block in to_catalog'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in > `each'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in > `to_catalog'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:906:in > `block in use'' > /usr/pkg/lib/ruby/1.9.3/sync.rb:227:in `sync_synchronize'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:900:in > `use'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application/master.rb:269:in > `setup'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in > `block (2 levels) in run'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:456:in > `plugin_hook'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in > `block in run'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util.rb:504:in > `exit_on_fail'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in > `run'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:132:in > `run'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:86:in > `execute'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/bin/puppet:4:in `<top > (required)>'' > /usr/pkg/bin/puppet:23:in `load'' > /usr/pkg/bin/puppet:23:in `<main>'' > Error: Could not prepare for execution: Could not create resources for > managing Puppet''s files and directories in sections [:main, :master, :ssl, > :metrics]: undefined method `exists?'' for nil:NilClass > undefined method `exists?'' for nil:NilClass > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/type/user.rb:367:in > `exists?'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:713:in > `service_user_available?'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:54:in > `safe_to_use_settings_value?'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:45:in > `value'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:108:in > `owner'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:156:in > `to_resource'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:847:in > `block in to_catalog'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in > `each'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in > `to_catalog'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:906:in > `block in use'' > /usr/pkg/lib/ruby/1.9.3/sync.rb:227:in `sync_synchronize'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:900:in > `use'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application/master.rb:269:in > `setup'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in > `block (2 levels) in run'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:456:in > `plugin_hook'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in > `block in run'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util.rb:504:in > `exit_on_fail'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in > `run'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:132:in > `run'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:86:in > `execute'' > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/bin/puppet:4:in `<top > (required)>'' > /usr/pkg/bin/puppet:23:in `load'' > /usr/pkg/bin/puppet:23:in `<main>'' >> > Should I open a ticket or is there something I can do to solve this issue? > > Any tip? > > Cheers, > Frank > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Hi Justin, Many thanks for your reply. mine goes inline. On Saturday, March 16, 2013 at 11:23 PM, Justin Stoller wrote:> Hi Frank - > > On Sat, Mar 16, 2013 at 11:03 AM, ureal frank <urealfrank@gmail.com (mailto:urealfrank@gmail.com)> wrote: > > Hi, > > > > I''m trying to setup a Puppet 3.1.1 (master) under NetBSD 6.0.1 > > > > I''ve installed Ruby 1.9.3 through pkgin and Puppet with $ gem install puppet. > > > > (pkgsrc has a puppet port under sysutils/puppet but is very very outdated... version 0.25) > > > > After generate and configure puppet.conf with $ puppet master --genconfig > puppet.conf > > (I''ve symlinked /etc/puppet to /etc/pkg/etc/puppet for NetBSD compliance) > > > > then I got this > > > > $ puppet master --no-daemonize -v -d -o --trace > > > > Debug: Failed to load library ''selinux'' for feature ''selinux'' > > Debug: Using settings: adding file resource ''confdir'': ''File[/usr/pkg/etc/puppet]{:path=>"/usr/pkg/etc/puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'' > > Debug: Using settings: adding file resource ''vardir'': ''File[/var/lib/puppet]{:path=>"/var/lib/puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'' > > Debug: Failed to load library ''shadow'' for feature ''libshadow'' > > Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dsimport does not exist > > Debug: Puppet::Type::User::ProviderUseradd: file chage 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::ProviderUser_role_add: file roleadd does not exist > > Debug: Puppet::Type::User::ProviderPw: file pw does not exist > > Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dsimport does not exist > > Debug: Puppet::Type::User::ProviderUseradd: file chage 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::ProviderUser_role_add: file roleadd does not exist > > Debug: Puppet::Type::User::ProviderPw: file pw does not exist > > > > > > Error: Could not create resources for managing Puppet''s files and directories in sections [:main, :master, :ssl, :metrics]: undefined method `exists?'' for nil:NilClass > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/type/user.rb:367:in `exists?'' > > > > > > > > > Looking at the code it seems that there''s not a default provider for User on {Net,Open}BSD. > https://github.com/puppetlabs/puppet/blob/3.1.1/lib/puppet/type/user.rb#L367I''m going to read that carefully :)> > > You should have originally seen an error message like this one: > https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/Tc5hysfdy5kI think yes… in my first run with puppet master --mkusers I got some problems then I added puppet user/group ny hand.> > > Not seeing it is a regression in our error reporting, and if you didn''t see it I''d file a ticket. > > It seems that the default provider issue is a known bug, and that a couple times folks have encouraged users to submit some code to fix it. > https://projects.puppetlabs.com/issues/13594 > and: https://projects.puppetlabs.com/issues/9586 > > both have similar patches embedded in the text, if you could try to apply it locally and once working issue a pull request that''d be Awesome.awesome! I can''t promise that I can solve this issue but I will give it a try.> > If you have any trouble feel free to come back to the list, or contact me personally, or our devs devoted to community contributions - @jeffmcune and @adrienthebo - on teh hubs.Many thanks, tomorrow morning I''m going to finish this. Cheers, Frank> > > - Justin > > > > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:713:in `service_user_available?'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:54:in `safe_to_use_settings_value?'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:45:in `value'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:108:in `owner'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:156:in `to_resource'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:847:in `block in to_catalog'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in `each'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in `to_catalog'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:906:in `block in use'' > > /usr/pkg/lib/ruby/1.9.3/sync.rb:227:in `sync_synchronize'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:900:in `use'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application/master.rb:269:in `setup'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `block (2 levels) in run'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:456:in `plugin_hook'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `block in run'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util.rb:504:in `exit_on_fail'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `run'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:132:in `run'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:86:in `execute'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/bin/puppet:4:in `<top (required)>'' > > /usr/pkg/bin/puppet:23:in `load'' > > /usr/pkg/bin/puppet:23:in `<main>'' > > > > Error: Could not prepare for execution: Could not create resources for managing Puppet''s files and directories in sections [:main, :master, :ssl, :metrics]: undefined method `exists?'' for nil:NilClass > > undefined method `exists?'' for nil:NilClass > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/type/user.rb:367:in `exists?'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:713:in `service_user_available?'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:54:in `safe_to_use_settings_value?'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:45:in `value'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:108:in `owner'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:156:in `to_resource'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:847:in `block in to_catalog'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in `each'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in `to_catalog'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:906:in `block in use'' > > /usr/pkg/lib/ruby/1.9.3/sync.rb:227:in `sync_synchronize'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:900:in `use'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application/master.rb:269:in `setup'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `block (2 levels) in run'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:456:in `plugin_hook'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `block in run'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util.rb:504:in `exit_on_fail'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `run'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:132:in `run'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:86:in `execute'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/bin/puppet:4:in `<top (required)>'' > > /usr/pkg/bin/puppet:23:in `load'' > > /usr/pkg/bin/puppet:23:in `<main>'' > > > > > > Should I open a ticket or is there something I can do to solve this issue? > > > > Any tip? > > > > Cheers, > > Frank > > > > -- > > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > > To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com (mailto:puppet-users%2Bunsubscribe@googlegroups.com). > > To post to this group, send email to puppet-users@googlegroups.com (mailto:puppet-users@googlegroups.com). > > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com (mailto:puppet-users+unsubscribe@googlegroups.com). > To post to this group, send email to puppet-users@googlegroups.com (mailto:puppet-users@googlegroups.com). > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Hi Justin, Many thanks for your reply. mine goes inline. On Saturday, March 16, 2013 at 11:23 PM, Justin Stoller wrote:> Hi Frank - > > On Sat, Mar 16, 2013 at 11:03 AM, ureal frank <urealfrank@gmail.com (mailto:urealfrank@gmail.com)> wrote: > > Hi, > > > > I''m trying to setup a Puppet 3.1.1 (master) under NetBSD 6.0.1 > > > > I''ve installed Ruby 1.9.3 through pkgin and Puppet with $ gem install puppet. > > > > (pkgsrc has a puppet port under sysutils/puppet but is very very outdated... version 0.25) > > > > After generate and configure puppet.conf with $ puppet master --genconfig > puppet.conf > > (I''ve symlinked /etc/puppet to /etc/pkg/etc/puppet for NetBSD compliance) > > > > then I got this > > > > $ puppet master --no-daemonize -v -d -o --trace > > > > Debug: Failed to load library ''selinux'' for feature ''selinux'' > > Debug: Using settings: adding file resource ''confdir'': ''File[/usr/pkg/etc/puppet]{:path=>"/usr/pkg/etc/puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'' > > Debug: Using settings: adding file resource ''vardir'': ''File[/var/lib/puppet]{:path=>"/var/lib/puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'' > > Debug: Failed to load library ''shadow'' for feature ''libshadow'' > > Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dsimport does not exist > > Debug: Puppet::Type::User::ProviderUseradd: file chage 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::ProviderUser_role_add: file roleadd does not exist > > Debug: Puppet::Type::User::ProviderPw: file pw does not exist > > Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dsimport does not exist > > Debug: Puppet::Type::User::ProviderUseradd: file chage 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::ProviderUser_role_add: file roleadd does not exist > > Debug: Puppet::Type::User::ProviderPw: file pw does not exist > > > > > > Error: Could not create resources for managing Puppet''s files and directories in sections [:main, :master, :ssl, :metrics]: undefined method `exists?'' for nil:NilClass > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/type/user.rb:367:in `exists?'' > > > > > > > > > Looking at the code it seems that there''s not a default provider for User on {Net,Open}BSD. > https://github.com/puppetlabs/puppet/blob/3.1.1/lib/puppet/type/user.rb#L367I''m going to read that carefully :)> > > You should have originally seen an error message like this one: > https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/Tc5hysfdy5kI think yes… in my first run with puppet master --mkusers I got some problems then I added puppet user/group ny hand.> > > Not seeing it is a regression in our error reporting, and if you didn''t see it I''d file a ticket. > > It seems that the default provider issue is a known bug, and that a couple times folks have encouraged users to submit some code to fix it. > https://projects.puppetlabs.com/issues/13594 > and: https://projects.puppetlabs.com/issues/9586 > > both have similar patches embedded in the text, if you could try to apply it locally and once working issue a pull request that''d be Awesome.awesome! I can''t promise that I can solve this issue but I will give it a try.> > If you have any trouble feel free to come back to the list, or contact me personally, or our devs devoted to community contributions - @jeffmcune and @adrienthebo - on teh hubs.Many thanks, tomorrow morning I''m going to finish this. Cheers, Frank> > > - Justin > > > > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:713:in `service_user_available?'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:54:in `safe_to_use_settings_value?'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:45:in `value'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:108:in `owner'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:156:in `to_resource'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:847:in `block in to_catalog'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in `each'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in `to_catalog'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:906:in `block in use'' > > /usr/pkg/lib/ruby/1.9.3/sync.rb:227:in `sync_synchronize'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:900:in `use'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application/master.rb:269:in `setup'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `block (2 levels) in run'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:456:in `plugin_hook'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `block in run'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util.rb:504:in `exit_on_fail'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `run'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:132:in `run'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:86:in `execute'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/bin/puppet:4:in `<top (required)>'' > > /usr/pkg/bin/puppet:23:in `load'' > > /usr/pkg/bin/puppet:23:in `<main>'' > > > > Error: Could not prepare for execution: Could not create resources for managing Puppet''s files and directories in sections [:main, :master, :ssl, :metrics]: undefined method `exists?'' for nil:NilClass > > undefined method `exists?'' for nil:NilClass > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/type/user.rb:367:in `exists?'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:713:in `service_user_available?'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:54:in `safe_to_use_settings_value?'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:45:in `value'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:108:in `owner'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings/file_setting.rb:156:in `to_resource'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:847:in `block in to_catalog'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in `each'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:844:in `to_catalog'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:906:in `block in use'' > > /usr/pkg/lib/ruby/1.9.3/sync.rb:227:in `sync_synchronize'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/settings.rb:900:in `use'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application/master.rb:269:in `setup'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `block (2 levels) in run'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:456:in `plugin_hook'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `block in run'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util.rb:504:in `exit_on_fail'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/application.rb:362:in `run'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:132:in `run'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/lib/puppet/util/command_line.rb:86:in `execute'' > > /usr/pkg/lib/ruby/gems/1.9.3/gems/puppet-3.1.1/bin/puppet:4:in `<top (required)>'' > > /usr/pkg/bin/puppet:23:in `load'' > > /usr/pkg/bin/puppet:23:in `<main>'' > > > > > > Should I open a ticket or is there something I can do to solve this issue? > > > > Any tip? > > > > Cheers, > > Frank > > > > -- > > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > > To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com (mailto:puppet-users%2Bunsubscribe@googlegroups.com). > > To post to this group, send email to puppet-users@googlegroups.com (mailto:puppet-users@googlegroups.com). > > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com (mailto:puppet-users+unsubscribe@googlegroups.com). > To post to this group, send email to puppet-users@googlegroups.com (mailto:puppet-users@googlegroups.com). > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.