Giter Site home page Giter Site logo

Comments (6)

corey-hammerton avatar corey-hammerton commented on July 16, 2024

This log entry indicates that it could not connect to the configured PuppetDB server:

ERROR:pypuppetdb.api:Could not reach PuppetDB on puppet-test01.smaatolabs.net:8081 over HTTPS.

Either because it cannot resolve the name, the port isn't open or HTTPS is not properly configured.

The issue is connection related, not software.

from puppetboard.

daenney avatar daenney commented on July 16, 2024

It's most likely a certificate configuration issue.

If PuppetDB and Puppetboard are on the same machine don't use the HTTPS/SSL setup, use plain connection on port 8080.

Otherwise, make sure SSL_KEY and SSL_CERT are readable by the user that is running Puppetboard (apache perhaps) and make sure the full path can be read. Just because a file is 0644 doesn't mean you can actually access the file starting from /.

Also, set SSL_VERIFY to a path that contains the Puppet CA pem file, located by default in /var/lib/puppet/ssl/certs/ca.pem.

from puppetboard.

aruetten avatar aruetten commented on July 16, 2024

It's not a connection problem. I checked that via telnet:

# telnet puppet-test01.smaatolabs.net 8081
Trying 10.128.18.5...
Connected to ec2-54-XXX-96-84.compute-1.amazonaws.com.
Escape character is '^]'.
^]
telnet> quit
Connection closed.

Also the certificate stuff should be right. A SSL handshake is possible:

# openssl s_client -key /var/lib/puppet/ssl/private_keys/puppetboard-test01.ec2.internal.pem -cert /var/lib/puppet/ssl/certs/puppetboard-test01.ec2.internal.pem -CAfile /var/lib/puppet/ssl/certs/ca.pem -connect puppet-test01.smaatolabs.net:8081
CONNECTED(00000003)
depth=1 CN = Puppet CA: puppet-test01.smaatolabs.net
verify return:1
depth=0 CN = puppet-test01.smaatolabs.net
verify return:1
---
Certificate chain
 0 s:/CN=puppet-test01.smaatolabs.net
   i:/CN=Puppet CA: puppet-test01.smaatolabs.net
---
Server certificate
-----BEGIN CERTIFICATE-----
XXX
-----END CERTIFICATE-----
subject=/CN=puppet-test01.smaatolabs.net
issuer=/CN=Puppet CA: puppet-test01.smaatolabs.net
---
Acceptable client certificate CA names
/CN=Puppet CA: puppet-test01.smaatolabs.net
---
SSL handshake has read 1733 bytes and written 4236 bytes
---
XXX
---
asdfs
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: close
Server: Jetty(7.x.y-SNAPSHOT)

I will now check the file permissions

from puppetboard.

aruetten avatar aruetten commented on July 16, 2024

There was a permission problem. I changed that so the the openssl connect command was also possible as user www-data.
Unfortunately I get still the same error in the log.

from puppetboard.

daenney avatar daenney commented on July 16, 2024

Did you set SSL_VERIFY to the ca.pem file?

from puppetboard.

aruetten avatar aruetten commented on July 16, 2024

That has fixed it, thanks

from puppetboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.