I ''m configuring puppet in an ubuntu server and a client. When I define the server''s IP as hostname "puppet", things are working well. But When I try to change the hostname to something different it is not working root@client ~# puppetd --test --server server.example.local err: Could not retrieve catalog from remote server: undefined method `closed?'' for nil:NilClass warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run root@client ~# puppetd --test --server=server.example.local err: Could not retrieve catalog from remote server: undefined method `closed?'' for nil:NilClass warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run root@client ~# puppetd --test --server="server.example.local" err: Could not retrieve catalog from remote server: undefined method `closed?'' for nil:NilClass warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run Then I tried setting [puppetd] server=server.example.local in puppet.conf root@client ~# puppetd --test err: Could not retrieve catalog from remote server: undefined method `closed?'' for nil:NilClass warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run Any idea ?? -- Regards Basil Kurian <http://basilkurian.tk> -- 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.
Nicolas Aizier
2011-Jan-20 05:54 UTC
[Puppet Users] Re: Problem with specifying server name
I know that''s not the exact answer you want but why not filling up the hosts file with additional puppet on the concerned server ? Or in the DNS if you''re in a biggest organization ... On Jan 20, 12:06 am, Basil Kurian <basilkur...@gmail.com> wrote:> I ''m configuring puppet in an ubuntu server and a client. When I define the > server''s IP as hostname "puppet", things are working well. But When I try to > change the hostname to something different it is not working > > root@client ~# puppetd --test --server server.example.local > err: Could not retrieve catalog from remote server: undefined method > `closed?'' for nil:NilClass > warning: Not using cache on failed catalog > err: Could not retrieve catalog; skipping run > > root@client ~# puppetd --test --server=server.example.local > err: Could not retrieve catalog from remote server: undefined method > `closed?'' for nil:NilClass > warning: Not using cache on failed catalog > err: Could not retrieve catalog; skipping run > > root@client ~# puppetd --test --server="server.example.local" > err: Could not retrieve catalog from remote server: undefined method > `closed?'' for nil:NilClass > warning: Not using cache on failed catalog > err: Could not retrieve catalog; skipping run > > Then I tried setting > > [puppetd] > server=server.example.local > > in puppet.conf > > root@client ~# puppetd --test > err: Could not retrieve catalog from remote server: undefined method > `closed?'' for nil:NilClass > warning: Not using cache on failed catalog > err: Could not retrieve catalog; skipping run > > Any idea ?? > > -- > Regards > > Basil Kurian > <http://basilkurian.tk>-- 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.
On Jan 19, 2011, at 6:06 AM, Basil Kurian wrote:> root@client ~# puppetd --test > err: Could not retrieve catalog from remote server: undefined method `closed?'' for nil:NilClass > warning: Not using cache on failed catalog > err: Could not retrieve catalog; skipping runThis error is a bug that is fixes in later versions of puppet. It means, something went wrong (this might be your fault) and the cleanup code failed (this part isn''t your fault). You can find more information and a workaround that will get you the real error at: http://projects.puppetlabs.com/issues/3101 You can also get the real error message if you upgrade to 0.25.5 or 2.6.x -- 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.
I had a problem like this when I changed the hostname I was using to access the puppet server (from puppet to something else). I think in the end I regenerated the ssl keys on the server and it started working. Not sure if that was a required fix or a coincidental fix as I didn''t do any regression testing, but it might be worth a go... Of course then you''ll have to reassociate all your clients so maybe it isn''t as easy for you as it was for me. Cheers, Tim On 20/01/11 3:06 AM, Basil Kurian wrote:> I ''m configuring puppet in an ubuntu server and a client. When I define the > server''s IP as hostname "puppet", things are working well. But When I try to > change the hostname to something different it is not working > > root@client ~# puppetd --test --server server.example.local > err: Could not retrieve catalog from remote server: undefined method `closed?'' > for nil:NilClass > warning: Not using cache on failed catalog > err: Could not retrieve catalog; skipping run > > root@client ~# puppetd --test --server=server.example.local > err: Could not retrieve catalog from remote server: undefined method `closed?'' > for nil:NilClass > warning: Not using cache on failed catalog > err: Could not retrieve catalog; skipping run > > root@client ~# puppetd --test --server="server.example.local" > err: Could not retrieve catalog from remote server: undefined method `closed?'' > for nil:NilClass > warning: Not using cache on failed catalog > err: Could not retrieve catalog; skipping run > > Then I tried setting > > [puppetd] > server=server.example.local > > in puppet.conf > > root@client ~# puppetd --test > err: Could not retrieve catalog from remote server: undefined method `closed?'' > for nil:NilClass > warning: Not using cache on failed catalog > err: Could not retrieve catalog; skipping run > > > Any idea ?? > > -- > Regards > > Basil Kurian > <http://basilkurian.tk> > > -- > 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.-- Tim Nicholas - tjn@wetafx.co.nz -- 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.
Basil Kurian
2011-Jan-20 16:39 UTC
Re: [Puppet Users] Re: Problem with specifying server name
On 20 January 2011 11:24, Nicolas Aizier <nicolas.aizier@googlemail.com>wrote:> I know that''s not the exact answer you want but why not filling up the > hosts file with additional puppet on the concerned server ? Or in the > DNS if you''re in a biggest organization ... > > On Jan 20, 12:06 am, Basil Kurian <basilkur...@gmail.com> wrote: > > I ''m configuring puppet in an ubuntu server and a client. When I define > the > > server''s IP as hostname "puppet", things are working well. But When I try > to > > change the hostname to something different it is not working > > > > root@client ~# puppetd --test --server server.example.local > > err: Could not retrieve catalog from remote server: undefined method > > `closed?'' for nil:NilClass > > warning: Not using cache on failed catalog > > err: Could not retrieve catalog; skipping run > > > > root@client ~# puppetd --test --server=server.example.local > > err: Could not retrieve catalog from remote server: undefined method > > `closed?'' for nil:NilClass > > warning: Not using cache on failed catalog > > err: Could not retrieve catalog; skipping run > > > > root@client ~# puppetd --test --server="server.example.local" > > err: Could not retrieve catalog from remote server: undefined method > > `closed?'' for nil:NilClass > > warning: Not using cache on failed catalog > > err: Could not retrieve catalog; skipping run > > > > Then I tried setting > > > > [puppetd] > > server=server.example.local > > > > in puppet.conf > > > > root@client ~# puppetd --test > > err: Could not retrieve catalog from remote server: undefined method > > `closed?'' for nil:NilClass > > warning: Not using cache on failed catalog > > err: Could not retrieve catalog; skipping run > > > > Any idea ?? > > > > -- > > Regards > > > > Basil Kurian > > <http://basilkurian.tk> > > -- > 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<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >Yes , it is a work around -- Regards Basil Kurian <http://basilkurian.tk> -- 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.
On 20 January 2011 11:29, Patrick <kc7zzv@gmail.com> wrote:> > On Jan 19, 2011, at 6:06 AM, Basil Kurian wrote: > > root@client ~# puppetd --test > err: Could not retrieve catalog from remote server: undefined method > `closed?'' for nil:NilClass > warning: Not using cache on failed catalog > err: Could not retrieve catalog; skipping run > > > > This error is a bug that is fixes in later versions of puppet. It means, > something went wrong (this might be your fault) and the cleanup code failed > (this part isn''t your fault). > > You can find more information and a workaround that will get you the real > error at: > http://projects.puppetlabs.com/issues/3101 > > You can also get the real error message if you upgrade to 0.25.5 or 2.6.x > > -- > 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<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >I installed puppet from ubuntu''s repo. The installed version is 0.25.4 -- Regards Basil Kurian <http://basilkurian.tk> -- 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.
Gabriel Filion
2011-Jan-21 05:26 UTC
Re: [Puppet Users] Problem with specifying server name
On 11-01-20 11:40 AM, Basil Kurian wrote:> On 20 January 2011 11:29, Patrick <kc7zzv@gmail.com > On Jan 19, 2011, at 6:06 AM, Basil Kurian wrote: >> root@client ~# puppetd --test >> err: Could not retrieve catalog from remote server: undefined >> method `closed?'' for nil:NilClass >> warning: Not using cache on failed catalog >> err: Could not retrieve catalog; skipping run > > This error is a bug that is fixes in later versions of puppet. It > means, something went wrong (this might be your fault) and the > cleanup code failed (this part isn''t your fault). > > You can find more information and a workaround that will get you the > real error at: > http://projects.puppetlabs.com/issues/3101> I installed puppet from ubuntu''s repo. The installed version is 0.25.4One possibilty could also be a client that is less recent that the puppetmaster.. I''ve seen the same error as you this week when I was playing with FreeBSD-8.1-RELEASE which uses puppet 0.25.4 and my puppet master is under Debian squeeze with puppetmaster 2.6.1 Upgrading the client fixed my problem. It''s not very scientific, though. You should give the above-mentioned workaround a try. -- Gabriel Filion -- 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.