Kikanny
2010-Sep-21 18:45 UTC
[Puppet Users] Undefined method ''closed?'' for nil:NilClass
Hi all I started researching on puppet and decided I''ll try it out on Vmware Workstation using Ubuntu 10.04. So I''m trying to do the simplest puppet install pattern as outlined in http://projects.puppetlabs.com/projects/puppet/wiki/Simplest_Puppet_Install_Pattern. For now, I''m trying to test puppetd and puppetmasterd on the same machine. I start puppetmaster and everything works fine. Then I start puppetd and I end up with following error: err: /File[/var/lib/puppet/lib]: Failed to generate additional resources using ''eval_generate'': undefined method ''closed?'' for nil:NilClass err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of resource: undefined method ''closed?'' for nil:NilClass Could not retrieve file metadata for puppet://puppet/plugins: undefined method ''closed?'' for nil:NilClass err: Could not retrieve catalog from remote server: undefined method ''closed?'' for nil:NilClass err: Could not retrieve catalog; skipping run I''ve been trying to figure this out over last couple of days but I''m completely stumped. Any help would be appreciated. Thanks! -- 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.
James Turnbull
2010-Sep-21 23:04 UTC
Re: [Puppet Users] Undefined method ''closed?'' for nil:NilClass
Kikanny wrote:> Hi all > > I started researching on puppet and decided I''ll try it out on Vmware > Workstation using Ubuntu 10.04. So I''m trying to do the simplest > puppet install pattern as outlined in > http://projects.puppetlabs.com/projects/puppet/wiki/Simplest_Puppet_Install_Pattern. > For now, I''m trying to test puppetd and puppetmasterd on the same > machine. I start puppetmaster and everything works fine. Then I start > puppetd and I end up with following error: > > err: /File[/var/lib/puppet/lib]: Failed to generate additional > resources using ''eval_generate'': undefined method ''closed?'' for > nil:NilClass > err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of > resource: undefined method ''closed?'' for nil:NilClass Could not > retrieve file metadata for puppet://puppet/plugins: undefined method > ''closed?'' for nil:NilClass > err: Could not retrieve catalog from remote server: undefined method > ''closed?'' for nil:NilClass > err: Could not retrieve catalog; skipping run > > I''ve been trying to figure this out over last couple of days but I''m > completely stumped. Any help would be appreciated. Thanks! >This a well known Ruby error which masks the actual error. It''s fixed in 0.25.5. See: http://projects.puppetlabs.com/issues/3101 Regards James Turnbull -- Puppet Labs - http://www.puppetlabs.com C: 503-734-8571 -- 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.
Patrick
2010-Sep-22 01:11 UTC
Re: [Puppet Users] Undefined method ''closed?'' for nil:NilClass
On Sep 21, 2010, at 11:45 AM, Kikanny wrote:> Hi all > > I started researching on puppet and decided I''ll try it out on Vmware > Workstation using Ubuntu 10.04. So I''m trying to do the simplest > puppet install pattern as outlined in > http://projects.puppetlabs.com/projects/puppet/wiki/Simplest_Puppet_Install_Pattern. > For now, I''m trying to test puppetd and puppetmasterd on the same > machine. I start puppetmaster and everything works fine. Then I start > puppetd and I end up with following error: > > err: /File[/var/lib/puppet/lib]: Failed to generate additional > resources using ''eval_generate'': undefined method ''closed?'' for > nil:NilClass > err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of > resource: undefined method ''closed?'' for nil:NilClass Could not > retrieve file metadata for puppet://puppet/plugins: undefined method > ''closed?'' for nil:NilClass > err: Could not retrieve catalog from remote server: undefined method > ''closed?'' for nil:NilClass > err: Could not retrieve catalog; skipping run > > I''ve been trying to figure this out over last couple of days but I''m > completely stumped. Any help would be appreciated. Thanks!James Turnbull mostly answered this one, but didn''t mention the "plugin sync". It can be error can be safely ignored, but is distracting when debugging. Add "pluginsync = false" to the client to bypass it. If you want to fix it, add a directory called "lib" to one of your modules. The directory can be empty. -- 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.
Kikanny
2010-Sep-24 12:34 UTC
[Puppet Users] Re: Undefined method ''closed?'' for nil:NilClass
Thanks guys! I upgraded puppet from 0.25.4 to 2.6.1. Now when I try to run puppetd on the same machine as puppemasterd, I get the following error message: err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known err: Could not retrieve catalog; skipping run I''m not really sure what that means. Is it problem with my hostname or dns or something? Any help would be appreciated! -- 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.
Patrick
2010-Sep-24 16:38 UTC
Re: [Puppet Users] Re: Undefined method ''closed?'' for nil:NilClass
On Sep 24, 2010, at 5:34 AM, Kikanny wrote:> Thanks guys! I upgraded puppet from 0.25.4 to 2.6.1. Now when I try to > run puppetd on the same machine as puppemasterd, I get the following > error message: > > err: Could not retrieve catalog from remote server: getaddrinfo: Name > or service not known > err: Could not retrieve catalog; skipping run > > I''m not really sure what that means. Is it problem with my hostname or > dns or something? Any help would be appreciated!Just to clarify, 0.25.4 wasn''t working either right? What happens if you run "ping puppet" on that computer? -- 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.
Kikanny
2010-Sep-24 16:45 UTC
[Puppet Users] Re: Undefined method ''closed?'' for nil:NilClass
Yup. I get the following when I say ping puppet ping: unknown host puppet So I haven''t defined puppet as a hostname somewhere or something? On Sep 24, 12:38 pm, Patrick <kc7...@gmail.com> wrote:> On Sep 24, 2010, at 5:34 AM, Kikanny wrote: > > > Thanks guys! I upgraded puppet from 0.25.4 to 2.6.1. Now when I try to > > run puppetd on the same machine as puppemasterd, I get the following > > error message: > > > err: Could not retrieve catalog from remote server: getaddrinfo: Name > > or service not known > > err: Could not retrieve catalog; skipping run > > > I''m not really sure what that means. Is it problem with my hostname or > > dns or something? Any help would be appreciated! > > Just to clarify, 0.25.4 wasn''t working either right? > > What happens if you run "ping puppet" on that computer?-- 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.
Patrick
2010-Sep-24 16:55 UTC
Re: [Puppet Users] Re: Undefined method ''closed?'' for nil:NilClass
Try putting puppet as an alias to your server in /etc/hosts (DNS is a better long term solution, but /etc/hosts is usually easier). The test it again. If that doesn''t work, test it with ping to make sure "ping puppet" works. On Sep 24, 2010, at 9:45 AM, Kikanny wrote:> Yup. I get the following when I say ping puppet > ping: unknown host puppet > > So I haven''t defined puppet as a hostname somewhere or something? > > On Sep 24, 12:38 pm, Patrick <kc7...@gmail.com> wrote: >> On Sep 24, 2010, at 5:34 AM, Kikanny wrote: >> >>> Thanks guys! I upgraded puppet from 0.25.4 to 2.6.1. Now when I try to >>> run puppetd on the same machine as puppemasterd, I get the following >>> error message: >> >>> err: Could not retrieve catalog from remote server: getaddrinfo: Name >>> or service not known >>> err: Could not retrieve catalog; skipping run >> >>> I''m not really sure what that means. Is it problem with my hostname or >>> dns or something? Any help would be appreciated! >> >> Just to clarify, 0.25.4 wasn''t working either right? >> >> What happens if you run "ping puppet" on that computer? > > -- > 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. >-- 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.
Kikanny
2010-Sep-24 17:04 UTC
[Puppet Users] Re: Undefined method ''closed?'' for nil:NilClass
Holy crap! That fixed it! Thank you so much for your help! On Sep 24, 12:55 pm, Patrick <kc7...@gmail.com> wrote:> Try putting puppet as an alias to your server in /etc/hosts (DNS is a better long term solution, but /etc/hosts is usually easier). The test it again. If that doesn''t work, test it with ping to make sure "ping puppet" works. > > On Sep 24, 2010, at 9:45 AM, Kikanny wrote: > > > Yup. I get the following when I say ping puppet > > ping: unknown host puppet > > > So I haven''t defined puppet as a hostname somewhere or something? > > > On Sep 24, 12:38 pm, Patrick <kc7...@gmail.com> wrote: > >> On Sep 24, 2010, at 5:34 AM, Kikanny wrote: > > >>> Thanks guys! I upgraded puppet from 0.25.4 to 2.6.1. Now when I try to > >>> run puppetd on the same machine as puppemasterd, I get the following > >>> error message: > > >>> err: Could not retrieve catalog from remote server: getaddrinfo: Name > >>> or service not known > >>> err: Could not retrieve catalog; skipping run > > >>> I''m not really sure what that means. Is it problem with my hostname or > >>> dns or something? Any help would be appreciated! > > >> Just to clarify, 0.25.4 wasn''t working either right? > > >> What happens if you run "ping puppet" on that computer? > > > -- > > 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 athttp://groups.google.com/group/puppet-users?hl=en. > >-- 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.
Patrick
2010-Sep-24 17:36 UTC
Re: [Puppet Users] Re: Undefined method ''closed?'' for nil:NilClass
By default, puppet looks for the hostname "puppet" for the server. You can change that in puppet.conf, but it''s usually better to just use DNS to always point the the right box. On Sep 24, 2010, at 10:04 AM, Kikanny wrote:> Holy crap! That fixed it! Thank you so much for your help! > > On Sep 24, 12:55 pm, Patrick <kc7...@gmail.com> wrote: >> Try putting puppet as an alias to your server in /etc/hosts (DNS is a better long term solution, but /etc/hosts is usually easier). The test it again. If that doesn''t work, test it with ping to make sure "ping puppet" works. >> >> On Sep 24, 2010, at 9:45 AM, Kikanny wrote: >> >>> Yup. I get the following when I say ping puppet >>> ping: unknown host puppet >> >>> So I haven''t defined puppet as a hostname somewhere or something? >> >>> On Sep 24, 12:38 pm, Patrick <kc7...@gmail.com> wrote: >>>> On Sep 24, 2010, at 5:34 AM, Kikanny wrote: >> >>>>> Thanks guys! I upgraded puppet from 0.25.4 to 2.6.1. Now when I try to >>>>> run puppetd on the same machine as puppemasterd, I get the following >>>>> error message: >> >>>>> err: Could not retrieve catalog from remote server: getaddrinfo: Name >>>>> or service not known >>>>> err: Could not retrieve catalog; skipping run >> >>>>> I''m not really sure what that means. Is it problem with my hostname or >>>>> dns or something? Any help would be appreciated! >> >>>> Just to clarify, 0.25.4 wasn''t working either right? >> >>>> What happens if you run "ping puppet" on that computer? >> >>> -- >>> 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 athttp://groups.google.com/group/puppet-users?hl=en. >> >> > > -- > 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. >-- 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.
Stuart Cracraft
2013-Aug-06 21:24 UTC
[Puppet Users] Re: Undefined method ''closed?'' for nil:NilClass
Yep -- thumbs up on this answer. Simple and sweet. -- 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. For more options, visit https://groups.google.com/groups/opt_out.