I''m a new puppet user. I can''t puppetmasterd to start. I searched this group for the error message I get, but found nothing. Any ideas? [root@puppet ~]# puppetmasterd undefined method `name'' for nil:NilClass Using the --debug switch and ruby''s --debug option shows the following: [root@puppet ~]# puppetmasterd --debug debug: Parsing /etc/puppet/puppet.conf info: Starting server for Puppet version 0.23.2 debug: Finishing transaction -605102028 with 0 changes debug: Finishing transaction -606620098 with 0 changes debug: /puppetconfig/main/File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet] debug: /puppetconfig/ca/File[/var/lib/puppet/ssl/ca/ca_crt.pem]: Autorequiring File[/var/lib/puppet/ssl/ca] debug: /puppetconfig/ca/File[/var/lib/puppet/ssl/ca/private]: Autorequiring File[/var/lib/puppet/ssl/ca] debug: /puppetconfig/ca/File[/var/lib/puppet/ssl/ca/signed]: Autorequiring File[/var/lib/puppet/ssl/ca] debug: /puppetconfig/ca/File[/var/lib/puppet/ssl/ca/serial]: Autorequiring File[/var/lib/puppet/ssl/ca] debug: /puppetconfig/ssl/File[/var/lib/puppet/ssl/private_keys/ puppet.sns.ias.edu.pem]: Autorequiring File[/var/lib/puppet/ssl/ private_keys] debug: /puppetconfig/ssl/File[/var/lib/puppet/ssl/private/password]: Autorequiring File[/var/lib/puppet/ssl/private] debug: /puppetconfig/main/File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet] debug: /puppetconfig/ssl/File[/var/lib/puppet/ssl/certs/ puppet.sns.ias.edu.pem]: Autorequiring File[/var/lib/puppet/ssl/certs] debug: /puppetconfig/ssl/File[/var/lib/puppet/ssl/private_keys]: Autorequiring File[/var/lib/puppet/ssl] debug: /puppetconfig/ssl/File[/var/lib/puppet/ssl/public_keys/ puppet.sns.ias.edu.pem]: Autorequiring File[/var/lib/puppet/ssl/ public_keys] debug: /puppetconfig/ca/File[/var/lib/puppet/ssl/ca/ca_crl.pem]: Autorequiring File[/var/lib/puppet/ssl/ca] debug: /puppetconfig/main/File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet] debug: /puppetconfig/main/File[/var/lib/puppet/plugins]: Autorequiring File[/var/lib/puppet] debug: /puppetconfig/ssl/File[/var/lib/puppet/ssl/public_keys]: Autorequiring File[/var/lib/puppet/ssl] debug: /puppetconfig/ca/File[/var/lib/puppet/ssl/ca/requests]: Autorequiring File[/var/lib/puppet/ssl/ca] debug: /puppetconfig/main/File[/etc/puppet/namespaceauth.conf]: Autorequiring File[/etc/puppet] debug: /puppetconfig/main/File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet] debug: /puppetconfig/ca/File[/var/lib/puppet/ssl/ca/ca_pub.pem]: Autorequiring File[/var/lib/puppet/ssl/ca] debug: /puppetconfig/ca/File[/etc/puppet/autosign.conf]: Autorequiring File[/etc/puppet] debug: /puppetconfig/main/File[/var/lib/puppet/state/state.yaml]: Autorequiring File[/var/lib/puppet/state] debug: /puppetconfig/ssl/File[/var/lib/puppet/ssl/ csr_puppet.sns.ias.edu.pem]: Autorequiring File[/var/lib/puppet/ssl] debug: /puppetconfig/ssl/File[/var/lib/puppet/ssl/certs]: Autorequiring File[/var/lib/puppet/ssl] debug: /puppetconfig/ssl/File[/var/lib/puppet/ssl/private]: Autorequiring File[/var/lib/puppet/ssl] debug: /puppetconfig/ssl/File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring File[/var/lib/puppet/ssl/certs] debug: /puppetconfig/ca/File[/var/lib/puppet/ssl/ca/ca_key.pem]: Autorequiring File[/var/lib/puppet/ssl/ca] debug: /puppetconfig/ca/File[/var/lib/puppet/ssl/ca/private/ca.pass]: Autorequiring File[/var/lib/puppet/ssl/ca/private] debug: /puppetconfig/ca/File[/var/lib/puppet/ssl/ca/inventory.txt]: Autorequiring File[/var/lib/puppet/ssl/ca] debug: /puppetconfig/ca/File[/var/lib/puppet/ssl/ca]: Autorequiring File[/var/lib/puppet/ssl] debug: /puppetconfig/main/File[/var/lib/puppet/facts]: File does not exist debug: /puppetconfig/main/File[/var/lib/puppet/plugins]: File does not exist debug: /puppetconfig/ssl/File[/var/lib/puppet/ssl/ csr_puppet.sns.ias.edu.pem]: File does not exist debug: /puppetconfig/ssl/File[/var/lib/puppet/ssl/certs/ca.pem]: File does not exist debug: /puppetconfig/ssl/File[/var/lib/puppet/ssl/certs/ puppet.sns.ias.edu.pem]: File does not exist debug: /puppetconfig/ca/File[/var/lib/puppet/ssl/ca/inventory.txt]: File does not exist debug: /puppetconfig/ssl/File[/var/lib/puppet/ssl/public_keys/ puppet.sns.ias.edu.pem]: File does not exist debug: /puppetconfig/ssl/File[/var/lib/puppet/ssl/private_keys/ puppet.sns.ias.edu.pem]: File does not exist debug: /puppetconfig/ssl/File[/var/lib/puppet/ssl/private/password]: File does not exist debug: /puppetconfig/ca/File[/etc/puppet/autosign.conf]: File does not exist debug: /puppetconfig/main/File[/etc/puppet/namespaceauth.conf]: File does not exist debug: Finishing transaction -606994088 with 0 changes debug: Finishing transaction -607202908 with 0 changes undefined method `name'' for nil:NilClass [root@puppet ~]# ruby --debug /usr/sbin/puppetmasterd Exception `LoadError'' at /usr/lib/ruby/site_ruby/1.8/puppet.rb:3 - no such file to load -- rubygems /usr/lib/ruby/site_ruby/1.8/facter.rb:388: warning: instance variable @have_which not initialized Exception `LoadError'' at /usr/lib/ruby/site_ruby/1.8/puppet/util/ feature.rb:39 - no such file to load -- ldap Exception `LoadError'' at /usr/lib/ruby/1.8/rdoc/ri/ri_paths.rb:46 - no such file to load -- rubygems Exception `LoadError'' at /usr/lib/ruby/site_ruby/1.8/puppet/util/ feature.rb:39 - no such file to load -- shadow Exception `LoadError'' at /usr/lib/ruby/site_ruby/1.8/puppet/util/ feature.rb:39 - no such file to load -- rubygems Exception `LoadError'' at /usr/lib/ruby/site_ruby/1.8/puppet/util/ feature.rb:39 - no such file to load -- mongrel Exception `LoadError'' at /usr/lib/ruby/site_ruby/1.8/puppet/network/ server/mongrel.rb:30 - no such file to load -- rubygems Exception `LoadError'' at /usr/lib/ruby/site_ruby/1.8/puppet/util/ feature.rb:39 - no such file to load -- RRDtool /usr/lib/ruby/site_ruby/1.8/puppet/external/gratr/rdot.rb:186: warning: useless use of a variable in void context /usr/lib/ruby/site_ruby/1.8/puppet/external/gratr/rdot.rb:240: warning: useless use of a variable in void context /usr/lib/ruby/site_ruby/1.8/puppet/external/gratr/rdot.rb:241: warning: useless use of a variable in void context /usr/lib/ruby/site_ruby/1.8/puppet/external/gratr/rdot.rb:186: warning: instance variable @ports not initialized /usr/lib/ruby/site_ruby/1.8/puppet/external/gratr/rdot.rb:240: warning: instance variable @nodes not initialized /usr/lib/ruby/site_ruby/1.8/puppet/external/gratr/rdot.rb:241: warning: instance variable @dot_string not initialized /usr/lib/ruby/site_ruby/1.8/puppet/type/pfile.rb:688: warning: method redefined; discarding old purge? /usr/lib/ruby/site_ruby/1.8/puppet/network/client.rb:15: warning: method redefined; discarding old use_ssl? Exception `LoadError'' at /usr/lib/ruby/site_ruby/1.8/puppet/feature/ rails.rb:8 - no such file to load -- active_record Exception `LoadError'' at /usr/lib/ruby/site_ruby/1.8/puppet/feature/ rails.rb:26 - no such file to load -- rubygems /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/component.rb:26: warning: method redefined; discarding old child_of? /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/component.rb:30: warning: method redefined; discarding old evaluate /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/component.rb:110: warning: method redefined; discarding old initialize /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/component.rb:142: warning: method redefined; discarding old find_parentclass /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/component.rb:148: warning: method redefined; discarding old parentclass/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/component.rb:157: warning: method redefined; discarding old parentobj /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/component.rb:178: warning: method redefined; discarding old subscope /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/component.rb:192: warning: method redefined; discarding old to_s /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/component.rb:198: warning: method redefined; discarding old validattr? /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/leaf.rb:9: warning: method redefined; discarding old evaluate /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/leaf.rb:14: warning: method redefined; discarding old tree /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/leaf.rb:18: warning: method redefined; discarding old to_s /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/leaf.rb:28: warning: method redefined; discarding old initialize /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/leaf.rb:43: warning: method redefined; discarding old evaluate /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/leaf.rb:50: warning: method redefined; discarding old evaluate /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/leaf.rb:74: warning: method redefined; discarding old initialize /usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/leaf.rb:89: warning: method redefined; discarding old evaluate Exception `LoadError'' at /usr/lib/ruby/1.8/tmpdir.rb:12 - no such file to load -- Win32API /usr/lib/ruby/1.8/webrick/ssl.rb:86: warning: method redefined; discarding old listen /usr/lib/ruby/site_ruby/1.8/puppet/provider/user/netinfo.rb:61: warning: method redefined; discarding old groups/usr/lib/ruby/site_ruby/1.8/puppet/provider/user/useradd.rb:53: warning: method redefined; discarding old password /usr/lib/ruby/site_ruby/1.8/puppet/provider/user/directoryservice.rb: 71: warning: method redefined; discarding old groupsException `NoMethodError'' at /usr/lib/ruby/site_ruby/1.8/puppet/ network/handler/fileserver.rb:272 - undefined method `name'' for nil:NilClass undefined method `name'' for nil:NilClass Any help will be appreciated. I''ve been trying to track this problem down for a couple of days now -- Prentice --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Luke Kanies
2008-Jul-02 20:47 UTC
[Puppet Users] Re: undefined method `name'' for nil:NilClass
On Jul 2, 2008, at 3:28 PM, Prentice wrote:> Any help will be appreciated. I''ve been trying to track this problem > down for a couple of days nowLooks like an issue in the fileserver; what''s your filserver.conf look like? -- A government big enough to give you everything you want is big enough to take from you everything you have. --Gerald R. Ford --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Prentice Bisbal
2008-Jul-02 21:14 UTC
[Puppet Users] Re: undefined method `name'' for nil:NilClass
Luke Kanies wrote:> On Jul 2, 2008, at 3:28 PM, Prentice wrote: > >> Any help will be appreciated. I''ve been trying to track this problem >> down for a couple of days now > > > Looks like an issue in the fileserver; what''s your filserver.conf look > like? >It looked like this: # [files] path /var/lib/puppet/files allow *.example.com deny * I didn''t notice that I commented out [files] until now. Seems so obvious now... Now I get this error: Invalid pattern * at /etc/puppet/fileserver.conf:4 If allow can use *, why not deny? I''m basing this syntax on the examples here: http://reductivelabs.com/trac/puppet/wiki/FileServingConfiguration. Is ''deny all'' implied if there is no deny line, making ''deny *'' redunant? -- Prentice --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Evan Hisey
2008-Jul-03 15:41 UTC
[Puppet Users] Re: undefined method `name'' for nil:NilClass
On Wed, Jul 2, 2008 at 4:14 PM, Prentice Bisbal <prentice@ias.edu> wrote:> > Luke Kanies wrote: >> On Jul 2, 2008, at 3:28 PM, Prentice wrote: >> >>> Any help will be appreciated. I''ve been trying to track this problem >>> down for a couple of days now >> >> >> Looks like an issue in the fileserver; what''s your filserver.conf look >> like? >> > > It looked like this: > > # [files] > path /var/lib/puppet/files > allow *.example.com > deny * > > I didn''t notice that I commented out [files] until now. Seems so obvious > now... > > Now I get this error: > > Invalid pattern * at /etc/puppet/fileserver.conf:4 > > If allow can use *, why not deny? I''m basing this syntax on the examples > here: http://reductivelabs.com/trac/puppet/wiki/FileServingConfiguration. > > Is ''deny all'' implied if there is no deny line, making ''deny *'' redunant? > > -- > PrenticeAs understand it yes the default is deny all. So you have to set up the allows to let clients access the file server. Evan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---