Robin Monks
2006-Sep-12 17:08 UTC
"undefined method `retrieve'' for nil:NilClass" when attempting to run puppetmasterd
I posted this earlier on IRC, but it didn''t seem anyone was active: <mozillaman>Hey all! <mozillaman>Quick question for you :) <mozillaman>I installed puppet according to the directions on the site and got this: sudo /usr/bin/puppetmasterd --nonodes undefined method `retrieve'' for nil:NilClass <mozillaman>Anyone have any ideas? Any help would be appreciated, Robin -- Robin Monks, CivicSpace Release Engineer - http://civicspacelabs.com Drupal Marketing Coordinator - http://drupal.org Encrypt! http://tinyurl.com/ffo3l - http://www.gpg4win.org/ _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Luke Kanies
2006-Sep-12 17:12 UTC
Re: "undefined method `retrieve'' for nil:NilClass" when attempting to run puppetmasterd
On Sep 12, 2006, at 10:08 AM, Robin Monks wrote:> I posted this earlier on IRC, but it didn''t seem anyone was active: > > <mozillaman>Hey all! > <mozillaman>Quick question for you :) > <mozillaman>I installed puppet according to the directions on the > site and got this: > sudo /usr/bin/puppetmasterd --nonodes > undefined method `retrieve'' for nil:NilClass > <mozillaman>Anyone have any ideas?You''ve created your site.pp manifest and everything? If you run it in debug mode, it should print a stack trace. Can you send that stack trace along? I might not respond again until later today or tomorrow, since today is a travel day for me, but hopefully someone else can help figure it out, too. -- Luke Kanies http://madstop.com | http://reductivelabs.com | 615-594-8199
Robin Monks
2006-Sep-12 17:36 UTC
"undefined method `retrieve'' for nil:NilClass" when attempting to run puppetmasterd
Whoops, and the rest of the list. ---------- Forwarded message ---------- From: Robin Monks <robin@civicspacelabs.org> Date: Sep 12, 2006 2:35 PM Subject: Re: [Puppet-users] "undefined method `retrieve'' for nil:NilClass" when attempting to run puppetmasterd To: Luke Kanies <luke@madstop.com> Attached :o) Robin On 9/12/06, Luke Kanies <luke@madstop.com> wrote:> > On Sep 12, 2006, at 10:08 AM, Robin Monks wrote: > > > I posted this earlier on IRC, but it didn''t seem anyone was active: > > > > <mozillaman>Hey all! > > <mozillaman>Quick question for you :) > > <mozillaman>I installed puppet according to the directions on the > > site and got this: > > sudo /usr/bin/puppetmasterd --nonodes > > undefined method `retrieve'' for nil:NilClass > > <mozillaman>Anyone have any ideas? > > You''ve created your site.pp manifest and everything? > > If you run it in debug mode, it should print a stack trace. Can you > send that stack trace along? > > I might not respond again until later today or tomorrow, since today > is a travel day for me, but hopefully someone else can help figure it > out, too. > > -- > Luke Kanies > http://madstop.com | http://reductivelabs.com | 615-594-8199 > > >-- Robin Monks, CivicSpace Release Engineer - http://civicspacelabs.com Drupal Marketing Coordinator - http://drupal.org Encrypt! http://tinyurl.com/ffo3l - http://www.gpg4win.org/ -- Robin Monks, CivicSpace Release Engineer - http://civicspacelabs.com Drupal Marketing Coordinator - http://drupal.org Encrypt! http://tinyurl.com/ffo3l - http://www.gpg4win.org/ _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Robin Monks
2006-Sep-12 17:59 UTC
Re: "undefined method `retrieve'' for nil:NilClass" when attempting to run puppetmasterd
I tried installing on another server with yum, and get this: Could not match ''}'' in file /etc/puppet/manifests/site.pp at line 1>The contents of the site.pp file: file { "/home/mozillaman/worldread.able":> owner => root, group => root, mode => 777 > } >Thoughts? Robin On 9/12/06, Robin Monks <robin@civicspacelabs.org> wrote:> > Whoops, and the rest of the list. > > > ---------- Forwarded message ---------- > From: Robin Monks <robin@civicspacelabs.org > > Date: Sep 12, 2006 2:35 PM > Subject: Re: [Puppet-users] "undefined method `retrieve'' for nil:NilClass" > when attempting to run puppetmasterd > To: Luke Kanies < luke@madstop.com> > > Attached :o) > > Robin > > > On 9/12/06, Luke Kanies <luke@madstop.com> wrote: > > > > On Sep 12, 2006, at 10:08 AM, Robin Monks wrote: > > > > > I posted this earlier on IRC, but it didn''t seem anyone was active: > > > > > > <mozillaman>Hey all! > > > <mozillaman>Quick question for you :) > > > <mozillaman>I installed puppet according to the directions on the > > > site and got this: > > > sudo /usr/bin/puppetmasterd --nonodes > > > undefined method `retrieve'' for nil:NilClass > > > <mozillaman>Anyone have any ideas? > > > > You''ve created your site.pp manifest and everything? > > > > If you run it in debug mode, it should print a stack trace. Can you > > send that stack trace along? > > > > I might not respond again until later today or tomorrow, since today > > is a travel day for me, but hopefully someone else can help figure it > > out, too. > > > > -- > > Luke Kanies > > http://madstop.com | http://reductivelabs.com | 615-594-8199 > > > > > > > > > -- > Robin Monks, > CivicSpace Release Engineer - http://civicspacelabs.com > Drupal Marketing Coordinator - http://drupal.org > Encrypt! http://tinyurl.com/ffo3l - http://www.gpg4win.org/ > > > > -- > Robin Monks, > CivicSpace Release Engineer - http://civicspacelabs.com > Drupal Marketing Coordinator - http://drupal.org > Encrypt! http://tinyurl.com/ffo3l - http://www.gpg4win.org/ > >-- Robin Monks, CivicSpace Release Engineer - http://civicspacelabs.com Drupal Marketing Coordinator - http://drupal.org Encrypt! http://tinyurl.com/ffo3l - http://www.gpg4win.org/ _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Luke Kanies
2006-Sep-12 18:59 UTC
Re: "undefined method `retrieve'' for nil:NilClass" when attempting to run puppetmasterd
On Sep 12, 2006, at 10:35 AM, Robin Monks wrote:> Attached :o)This stack trace indicates a problem with a provider. Can you list your platform, and the code you''re trying to run? I''m guessing that Puppet can''t find a default provider and is behaving poorly at having failed to find one. It looks like it''s the user or group provider, but I''m not positive. -- Luke Kanies http://madstop.com | http://reductivelabs.com | 615-594-8199
Luke Kanies
2006-Sep-12 19:03 UTC
Re: "undefined method `retrieve'' for nil:NilClass" when attempting to run puppetmasterd
On Sep 12, 2006, at 10:59 AM, Robin Monks wrote:> I tried installing on another server with yum, and get this: > > Could not match ''}'' in file /etc/puppet/manifests/site.pp at line 1 > > The contents of the site.pp file: > > file { "/home/mozillaman/worldread.able": > owner => root, group => root, mode => 777 > } > > Thoughts?That parses just fine for me. That''s your entire file? Strange. -- Luke Kanies http://madstop.com | http://reductivelabs.com | 615-594-8199
Robin Monks
2006-Sep-12 19:58 UTC
Re: "undefined method `retrieve'' for nil:NilClass" when attempting to run puppetmasterd
Yes, that''s also the file (exactly, it''s revision controled) that I used on the first server with the error. There are both Fedora Core 5. Ruby from yum [ruby 1.8.4 (2005-12-24) [i386-linux] on the first server, and ruby 1.8.4 (2005-12-24) [x86_64-linux] on this one] both have ruby on rails installed via gem. The first server also has puppet installed via gem per site instructions, the second via yum (puppet-server, puppet and dependencies (factor or something)). Also, on this, the second server with the "Could not match ''}'' in file /etc/puppet/manifests/site.pp at line 1" error, if I comment out all lines of the site.pp file, I get the exact same error as on the first server "undefined method `retrieve'' for nil:NilClass". Eep! Robin On 9/12/06, Luke Kanies <luke@madstop.com> wrote:> > On Sep 12, 2006, at 10:59 AM, Robin Monks wrote: > > > I tried installing on another server with yum, and get this: > > > > Could not match ''}'' in file /etc/puppet/manifests/site.pp at line 1 > > > > The contents of the site.pp file: > > > > file { "/home/mozillaman/worldread.able": > > owner => root, group => root, mode => 777 > > } > > > > Thoughts? > > That parses just fine for me. That''s your entire file? Strange. > > -- > Luke Kanies > http://madstop.com | http://reductivelabs.com | 615-594-8199 > > >-- Robin Monks, CivicSpace Release Engineer - http://civicspacelabs.com Drupal Marketing Coordinator - http://drupal.org Encrypt! http://tinyurl.com/ffo3l - http://www.gpg4win.org/ _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
David Lutterkort
2006-Sep-13 10:51 UTC
Re: "undefined method `retrieve'' for nil:NilClass" when attempting to run puppetmasterd
On Tue, 2006-09-12 at 16:58 -0300, Robin Monks wrote:> Yes, that''s also the file (exactly, it''s revision controled) that I > used on the first server with the error. There are both Fedora Core > 5. Ruby from yum [ruby 1.8.4 (2005-12-24) [i386-linux] on the first > server, and ruby 1.8.4 (2005-12-24) [x86_64-linux] on this one] both > have ruby on rails installed via gem. The first server also has > puppet installed via gem per site instructions, the second via yum > (puppet-server, puppet and dependencies (factor or something)).Where did the puppet RPM''s come from ? The latest puppet RPM''s from Fedora Extras and my yum repo should not install with that ruby version. Can you update ruby on those boxes to the latest for FC5 (ruby-1.8.4-8.fc5) on the second server ? I am a little surprised that you are not seeing any other problems ... I would expect other failures, too. David
Luke Kanies
2006-Sep-13 15:21 UTC
Re: "undefined method `retrieve'' for nil:NilClass" when attempting to run puppetmasterd
On Sep 12, 2006, at 2:58 PM, Robin Monks wrote:> Yes, that''s also the file (exactly, it''s revision controled) that I > used on the first server with the error. There are both Fedora > Core 5. Ruby from yum [ruby 1.8.4 (2005-12-24) [i386-linux] on the > first server, and ruby 1.8.4 (2005-12-24) [x86_64-linux] on this > one] both have ruby on rails installed via gem. The first server > also has puppet installed via gem per site instructions, the second > via yum (puppet-server, puppet and dependencies (factor or > something)). > > Also, on this, the second server with the "Could not match ''}'' in > file /etc/puppet/manifests/site.pp at line 1" error, if I comment > out all lines of the site.pp file, I get the exact same error as on > the first server "undefined method `retrieve'' for nil:NilClass".How does the stand-alone ''puppet'' executable react to this manifest? At this point, I''m at a loss; the only thing I can think of is to try upgrading ruby like David Lutterkort recommends. I can''t reproduce the problems you''re having on any of my patforms. Manifest-handling is pretty fundamental to Puppet, so I expect I''d have heard about it if others were having similar problems. -- Luke Kanies http://madstop.com | http://reductivelabs.com | 615-594-8199