暁華 管
2011-Feb-21 04:39 UTC
[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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Felix Frank
2011-Feb-21 15:49 UTC
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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Paul Willis
2011-Feb-22 17:09 UTC
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, > FelixWhile 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Patrick
2011-Feb-22 18:23 UTC
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 --testThe 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
暁華 管
2011-Feb-23 01:31 UTC
[Puppet Users] Re: Could not request certificate: undefined method `closed?'' for nil:NilClass''
Thank you, Felix. I will try. On 2月22日, 午前12:49, Felix Frank <felix.fr...@alumni.tu-berlin.de> 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-- 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.