am running dashboar in the same host as puppetmaster, which is
puppet-test, both behind apache/phusion.
reports fail and master logs:
Report http failed: wrong status line: "<!DOCTYPE HTML PUBLIC
\"-//IETF//DTD HTML 2.0//EN\">"
How can I furthe rdebug this? am using dashboard for a github checkout
and puppet 2.6.3
Thanks a lot.
Mohamed.
Any idea what I am missing for a behind apache/Phusion setup?
Thanks a lot.
Mohamed.
[Tue Mar 22 00:39:43 2011] [debug] ssl_engine_io.c(1819): OpenSSL:
read 11/11 bytes from BIO#2b225d284100 [mem: 2b225d2f9650] (BIO dump
follows)
[Tue Mar 22 00:39:43 2011] [debug] ssl_engine_io.c(1766):
+-------------------------------------------------------------------------+
[Tue Mar 22 00:39:43 2011] [debug] ssl_engine_io.c(1791): | 0000: 50
4f 53 54 20 2f 72 65-70 6f 72 POST /repor |
[Tue Mar 22 00:39:43 2011] [debug] ssl_engine_io.c(1797):
+-------------------------------------------------------------------------+
[Tue Mar 22 00:39:43 2011] [debug] ssl_engine_kernel.c(1838): OpenSSL:
Exit: error in SSLv2/v3 read client hello A
[Tue Mar 22 00:39:43 2011] [info] [client 141.161.245.113] SSL
handshake failed: HTTP spoken on HTTPS port; trying to send HTML error
page
[Tue Mar 22 00:39:43 2011] [info] SSL Library Error: 336027804
error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request
speaking HTTP to HTTPS port!?
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>
Hi,
I'm clueless, but from a technical angle, you can use another workaround
if you need your reports to be encrypted en route.
Use a local HTTP reporturl, have stunnel listen to the local HTTP port
and connect to the remote HTTPS. The agent can speak HTTP while the
dashboard should dutifully receive HTTPS.
HTH,
Felix
> Although I don't know the answer I'm curious as to why you're worried about using HTTPS when you're sending the reports locally? There is no need to encrypt the ports if you're just sending them to the same machine / localhost.
In my case, I wanted to run dashboard using SSL (for when I connect remotely, so the passwords aren't in cleartext). It would have been easier for me if I was able to set the only instance of dashboard (set of instances?) running under passenger to be SSL. I understand this would have been a waste of CPU, but I believe the difference in CPU usage would have been negligible.
A real case that might eventually happen is this is if I use authentication on sending reports, and the puppetmaster sending the report isn't on the same lan. I'll admit it doesn't help if send to "localhost" but I consider that beside the point.
I did not find any reference.... I just added a second apache virtual
server to do http on port 80.
>> 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.
>>
>
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/wwnktt7LihAJ.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Hi,In your puppet.conf, change :[master]
reports = log, store, https
reporturl = https://puppet-test.uis.example.com:443/reports/uploadThen add in your reports folder (under debian with puppetlabs packets) ;/usr/lib/ruby/1.8/puppet/reports/https.rb :require 'puppet'require 'net/http'require 'net/https'require 'uri'Puppet::Reports.register_report(:https) dodesc <<-DESCSend report information via HTTPS to the `reporturl`. Each host sendsits report as a YAML dump and this sends this YAML to a client via HTTPS POST.The YAML is the `report` parameter of the request."DESCdef processurl = URI.parse(Puppet[:reporturl].to_s)http = Net::HTTP.new(url.host, url.port)http.use_ssl = truehttp.verify_mode = OpenSSL::SSL::VERIFY_NONEreq = Net::HTTP::Post.new(url.path)req.body = self.to_yamlreq.content_type = "application/x-yaml"http.start do |http|response = http.request(req)unless response.code == "200"Puppet.err "Unable to submit report to #{Puppet[:reporturl].to_s} [#{response.code}] #{response.msg}"endendendendFound in the VM Labs shipped by puppetlabs.Julien