[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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Could not request certificate: undefined method `closed?' for nil:NilClass
On Mon, May 2, 2011 at 6:56 PM, Patrick kc7...@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+unsubscr...@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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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 kc7...@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+unsubscr...@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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Could not request certificate: undefined method `closed?' for nil:NilClass'
On 21 Feb 2011, at 15:49, Felix Frank wrote: On 02/21/2011 05:39 AM, 暁華 管 wrote: Hi, I installed puppet 0.25.4 on ubuntu 10.04. It was ok until puppet client and server were intalled. But when I tried to execute the following command, the error, Could not request certificate: undefined method `closed?' for nil:NilClass', occurred. sudo puppetd --test --verbose --server SERVER_NAME Could anyone adivse me? Thanks. Hi, have you tried the --waitforcert parameter? Also, I'll take the liberty and paste Patrick's default reply to this problem: 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). More information at: http://projects.puppetlabs.com/issues/3101 Regards, Felix While Patrick's default reply is perfectly true and upgrading will probably fix this it isn't helpful if for some reason you need to run standard 10.04 LTS packages from the main repository and are therefore stuck on Puppet 0.25.4 When I had the same error I found that it was a problem with my client finding the master. I assume SERVER_NAME is the server's fqdn similar to myserver.domain.com ? Can you ping SERVER_NAME from the client? Is there a firewall between the client and server, if so is port 8140 open? (assuming you are using the default) Try with --waitforcert as Felix suggests with... sudo puppetd --server myserver.domain.com --waitforcert 60 --test Cheers Paul -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Could not request certificate: undefined method `closed?' for nil:NilClass'
On Feb 22, 2011, at 9:09 AM, Paul Willis wrote: On 21 Feb 2011, at 15:49, Felix Frank wrote: On 02/21/2011 05:39 AM, 暁華 管 wrote: Hi, I installed puppet 0.25.4 on ubuntu 10.04. It was ok until puppet client and server were intalled. But when I tried to execute the following command, the error, Could not request certificate: undefined method `closed?' for nil:NilClass', occurred. sudo puppetd --test --verbose --server SERVER_NAME Could anyone adivse me? Thanks. Hi, have you tried the --waitforcert parameter? Also, I'll take the liberty and paste Patrick's default reply to this problem: 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). More information at: http://projects.puppetlabs.com/issues/3101 Regards, Felix While Patrick's default reply is perfectly true and upgrading will probably fix this it isn't helpful if for some reason you need to run standard 10.04 LTS packages from the main repository and are therefore stuck on Puppet 0.25.4 When I had the same error I found that it was a problem with my client finding the master. I assume SERVER_NAME is the server's fqdn similar to myserver.domain.com ? Can you ping SERVER_NAME from the client? Is there a firewall between the client and server, if so is port 8140 open? (assuming you are using the default) Try with --waitforcert as Felix suggests with... sudo puppetd --server myserver.domain.com --waitforcert 60 --test The problem is, that error message can mean almost anything is wrong. Until we get the real error message, all we can do is stumble in the dark. At the bottom of the bugtracker page is a workaround. You can change the puppet monkey_patches.rb file on your install and that will cause you to get the right error messages. The diff is located at http://projects.puppetlabs.com/projects/puppet/repository/revisions/ae0b0bf23e418e8c6665e9dc135148b78bdbd913/diff/lib/puppet/util/monkey_patches.rb The file you need to change is at /usr/lib/ruby/1.8/puppet/util/monkey_patches.rb -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Could not request certificate: undefined method `closed?' for nil:NilClass'
Hi, I installed puppet 0.25.4 on ubuntu 10.04. It was ok until puppet client and server were intalled. But when I tried to execute the following command, the error, Could not request certificate: undefined method `closed?' for nil:NilClass', occurred. sudo puppetd --test --verbose --server SERVER_NAME Could anyone adivse me? 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Could not request certificate: undefined method `closed?' for nil:NilClass'
On 02/21/2011 05:39 AM, 暁華 管 wrote: Hi, I installed puppet 0.25.4 on ubuntu 10.04. It was ok until puppet client and server were intalled. But when I tried to execute the following command, the error, Could not request certificate: undefined method `closed?' for nil:NilClass', occurred. sudo puppetd --test --verbose --server SERVER_NAME Could anyone adivse me? Thanks. Hi, have you tried the --waitforcert parameter? Also, I'll take the liberty and paste Patrick's default reply to this problem: 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). More information at: http://projects.puppetlabs.com/issues/3101 Regards, Felix -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.