crosmuller
2011-May-02 11:32 UTC
[Puppet Users] Could not request certificate: undefined method `closed?'' for nil:NilClass
Hi list, I am trying to get a puppet certificate on a new client but I get error: err: Could not request certificate: undefined method `closed?'' for nil:NilClass I googled and found that it had something to do with reverse DNS lookup, the client is behind a NAT firewall so I assume a reverse lookup will fail. Can I bypass this somehow? Puppet version on master and client is 0.25.4 Thanks, regards -- 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
2011-May-02 14:43 UTC
Re: [Puppet Users] Could not request certificate: undefined method `closed?'' for nil:NilClass
crosmuller wrote:> Hi list, > > I am trying to get a puppet certificate on a new client but I get > error: > > err: Could not request certificate: undefined method `closed?'' for > nil:NilClass > > I googled and found that it had something to do with reverse DNS > lookup, the client is behind a NAT firewall so I assume a reverse > lookup will fail. Can I bypass this somehow? Puppet version on master > and client is 0.25.4 >This is a Ruby networking issue with 0.25.4 that is fixed in 0.25.5 and later. I''d recommend upgrading. Regards James Turnbull -- James Turnbull Puppet Labs 1-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
2011-May-02 16:56 UTC
Re: [Puppet Users] Could not request certificate: undefined method `closed?'' for nil:NilClass
On May 2, 2011, at 7:43 AM, James Turnbull wrote:> crosmuller wrote: >> Hi list, >> >> I am trying to get a puppet certificate on a new client but I get >> error: >> >> err: Could not request certificate: undefined method `closed?'' for >> nil:NilClass >> >> I googled and found that it had something to do with reverse DNS >> lookup, the client is behind a NAT firewall so I assume a reverse >> lookup will fail. Can I bypass this somehow? Puppet version on master >> and client is 0.25.4 >> > > This is a Ruby networking issue with 0.25.4 that is fixed in 0.25.5 and > later. I''d recommend upgrading.To be a bit more clear. This is a bug in the networking code that is hiding the real (useful) error message. Until you get the real error-message it will be almost impossible for us to give you help more clear than, "fix your network." -- 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.
Chantal Rosmuller
2011-May-02 18:01 UTC
Re: [Puppet Users] Could not request certificate: undefined method `closed?'' for nil:NilClass
On Mon, May 2, 2011 at 6:56 PM, Patrick <kc7zzv@gmail.com> wrote:> > On May 2, 2011, at 7:43 AM, James Turnbull wrote: > > > crosmuller wrote: > >> Hi list, > >> > >> I am trying to get a puppet certificate on a new client but I get > >> error: > >> > >> err: Could not request certificate: undefined method `closed?'' for > >> nil:NilClass > >> > >> I googled and found that it had something to do with reverse DNS > >> lookup, the client is behind a NAT firewall so I assume a reverse > >> lookup will fail. Can I bypass this somehow? Puppet version on master > >> and client is 0.25.4 > >> > > > > This is a Ruby networking issue with 0.25.4 that is fixed in 0.25.5 and > > later. I''d recommend upgrading. > > To be a bit more clear. This is a bug in the networking code that is > hiding the real (useful) error message. Until you get the real > error-message it will be almost impossible for us to give you help more > clear than, "fix your network." > > -- > 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. > >Thank you, I upgraded to 2.6.1 and now I get another error root@client:~# puppetd --server client.mydomain.com --waitforcert 60 --test err: Could not retrieve catalog from remote server: Connection refused - connect(2) warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run I don''t understand the error all other clients can contact the puppet server just fine. The client is Ubuntu 10.04. Like I said the client is behind a nat firewall, can that be the problem? -- 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
2011-May-02 19:47 UTC
Re: [Puppet Users] Could not request certificate: undefined method `closed?'' for nil:NilClass
On May 2, 2011, at 11:01 AM, Chantal Rosmuller wrote:> > > On Mon, May 2, 2011 at 6:56 PM, Patrick <kc7zzv@gmail.com> wrote: > > On May 2, 2011, at 7:43 AM, James Turnbull wrote: > > > crosmuller wrote: > >> Hi list, > >> > >> I am trying to get a puppet certificate on a new client but I get > >> error: > >> > >> err: Could not request certificate: undefined method `closed?'' for > >> nil:NilClass > >> > >> I googled and found that it had something to do with reverse DNS > >> lookup, the client is behind a NAT firewall so I assume a reverse > >> lookup will fail. Can I bypass this somehow? Puppet version on master > >> and client is 0.25.4 > >> > > > > This is a Ruby networking issue with 0.25.4 that is fixed in 0.25.5 and > > later. I''d recommend upgrading. > > To be a bit more clear. This is a bug in the networking code that is hiding the real (useful) error message. Until you get the real error-message it will be almost impossible for us to give you help more clear than, "fix your network." > > -- > 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. > > > Thank you, I upgraded to 2.6.1 and now I get another error > > root@client:~# puppetd --server client.mydomain.com --waitforcert 60 --test > > err: Could not retrieve catalog from remote server: Connection refused - connect(2) > warning: Not using cache on failed catalog > err: Could not retrieve catalog; skipping run > > I don''t understand the error all other clients can contact the puppet server just fine. The client is Ubuntu 10.04. Like I said the client is behind a nat firewall, can that be the problem?First, and someone should have probably explained this to you, if you upgrade the major version (0.25->2.6) of the client to be above the server, you will have problems, but this doesn''t sound like that. To me it sounds like you are behind a restrictive corporate firewall, or else your server is configured through something other than puppet, to refuse communications from wherever you''re connecting from. This would be a hardware firewall or iptables or something. Does ping work from that box? Can you ssh in from that box (assuming ssh is turned on)? Do any other services work in that direction? -- 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.
Possibly Parallel Threads
- Could not retrieve catalog from remote server: undefined method `closed?' for nil:NilClass
- Undefined method 'closed?' for nil:NilClass
- puppetd 0.25.4 with puppetmaster 0.24.8?
- Could not run Puppet configuration client: undefined method `keys' for nil:NilClass
- undefined method `[]' for nil:NilClass