kit wrote:
> If I start ruby in debug mode and puppet in test the error message is
> different:
> ~# /usr/local/bin/ruby --debug /usr/local/sbin/puppetd --server
> puppet.kit.no --rundir /var/run/puppet --test
> Exception `OpenSSL::SSL::SSLError' at /usr/local/lib/ruby/1.8/openssl/
> ssl.rb:123 - hostname was not match with the server certificate
> Exception `NoMethodError' at /usr/local/lib/ruby/1.8/net/http.rb:1060
> - undefined method `closed?' for nil:NilClass
> 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
> 
> However if I ommit the --test part in debug mode the certificate error
> goes away and I get the usual error message in the /var/log/message
> (Could not retrieve catalog from remote server: undefined method
> `closed?' for nil:NilClass). So now I'm just really confused about the
> whole thing, been fighting with it for half a day. Anyone got some
> insights. Funny thing is that it was working fine until the reboot,
> but no changes were made...
> 

What Ruby version and platform are you on?  This rather annoying message
is often the result of a Ruby 1.8.7 bug that hides the actual problem.

See:

http://projects.puppetlabs.com/issues/3101

And the patch (in Puppet 0.25.5):

http://projects.puppetlabs.com/projects/puppet/repository/revisions/ae0b0bf23e418e8c6665e9dc135148b78bdbd913

I suspect the underlying message above about a hostname mismatch is your
actual problem - has anything changed there?

Regards

James Turnbull

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.

Reply via email to