> It's very strange: Until I run puppetdb ssl-setup -f, I get >> >> Error: Unable to connect to puppetdb server (puppet.internal:8081): [404] >> Not Found > > but after that, I get > > >> Notice: Unable to connect to puppetdb server (puppet.internal:8081): >> #<Errno::ECONNREFUSED: Connection refused - connect(2)> > > > > Since, I increased the timeout to 60, it changed into this: > >> Info: Class[Puppetdb::Server::Jetty_ini]: Scheduling refresh of >> Service[puppetdb] >> Notice: /Stage[main]/Puppetdb::Server/Service[puppetdb]: Triggered >> 'refresh' from 1 events >> Notice: Unable to connect to puppetdb server (puppet.internal:8081): >> #<Errno::ECONNREFUSED: Connection refused - connect(2)> >> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry >> Notice: Unable to connect to puppetdb server (puppet.internal:8081): >> #<Errno::ECONNREFUSED: Connection refused - connect(2)> >> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry >> Notice: Unable to connect to puppetdb server (puppet.internal:8081): >> #<Errno::ECONNREFUSED: Connection refused - connect(2)> >> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry >> Notice: Unable to connect to puppetdb server (puppet.internal:8081): >> #<Errno::ECONNREFUSED: Connection refused - connect(2)> >> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry >> Notice: Unable to connect to puppetdb server (puppet.internal:8081): >> #<Errno::ECONNREFUSED: Connection refused - connect(2)> >> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry >> Notice: Unable to connect to puppetdb server (puppet.internal:8081): >> #<Errno::ECONNREFUSED: Connection refused - connect(2)> >> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry >> Notice: Unable to connect to puppetdb server (puppet.internal:8081): >> #<Errno::ECONNREFUSED: Connection refused - connect(2)> >> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry >> Notice: Unable to connect to puppetdb server (puppet.internal:8081): >> #<Errno::ECONNREFUSED: Connection refused - connect(2)> >> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry >> Notice: Unable to connect to puppetdb server (puppet.internal:8081): >> #<Errno::ECONNREFUSED: Connection refused - connect(2)> >> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry >> Notice: Unable to connect to puppetdb server (puppet.internal:8081): >> #<Errno::ECONNREFUSED: Connection refused - connect(2)> >> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry >> Notice: Unable to connect to puppetdb server (puppet.internal:8081): >> #<Errno::ECONNREFUSED: Connection refused - connect(2)> >> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry >> Error: Unable to connect to puppetdb server (puppet.internal:8081): [404] >> Not Found >> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry >> Error: Unable to connect to puppetdb server (puppet.internal:8081): [404] >> Not Found >> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry >> ..... >> ..... >> >> Error: Unable to connect to puppetdb server (puppet.internal:8081): [404] >> Not Found >> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry >> Error: Unable to connect to puppetdb server (puppet.internal:8081): [404] >> Not Found >> Notice: Failed to connect to puppetdb within timeout window of 60 seconds; >> giving up. >> >> Error: Unable to connect to puppetdb server! (puppet.internal:8081) >> Error: >> /Stage[main]/Puppetdb::Master::Config/Puppetdb_conn_validator[puppetdb_conn]/ensure: >> change from absent to present failed: Unable to connect to puppetdb server! >> (puppet.internal:8081) > > > > I'm rebuilding the server now.
The connection refused implies the server hasn't opened the port yet for listening, the progression to 404 is probably the Jetty server starting up but not yet being ready for serving the URL we test against. In particular, we test the URL similar to this curl request, so its probably worth seeing if it returns anything on the command line: curl 'http://puppet.local:8080/v2/metrics/mbean/java.lang:type=Memory' Perhaps 60 seconds isn't enough? Its unlikely but worth trying to bump it I guess. Beyond that we'll need to see the puppetdb.log. ken. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAE4bNTmaavWMEjo9t57d1w80M_c-7rkD4a%2BKeKwQb1sBoKmN%3Dw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
