Hi there, Just started using PuppetDB (using the Puppetlabs' module) and getting issues with connection. First it was giving me server Not Found:
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 15 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) > but from the puppetdb ssl-setup, it looks okay: root@puppet:/vagrant/PuppetConf/manifests# puppetdb ssl-setup -f > PEM files in /etc/puppetdb/ssl already exists, checking integrity. > Overwriting existing PEM files due to -f flag > Copying files: /var/lib/puppet/ssl/certs/ca.pem, > /var/lib/puppet/ssl/private_keys/puppet.internal.pem and > /var/lib/puppet/ssl/certs/puppet.internal.pem to /etc/puppetdb/ssl > Setting ssl-host in /etc/puppetdb/conf.d/jetty.ini already correct. > Setting ssl-port in /etc/puppetdb/conf.d/jetty.ini already correct. > Setting ssl-key in /etc/puppetdb/conf.d/jetty.ini already correct. > Setting ssl-cert in /etc/puppetdb/conf.d/jetty.ini already correct. > Setting ssl-ca-cert in /etc/puppetdb/conf.d/jetty.ini already correct. > since then, I'm still getting eventually the same error but with different Notice: Warning: Puppet::Util::SUIDManager.run_and_capture is deprecated; please > use Puppet::Util::Execution.execute instead. > (at > /vagrant/VagrantConf/modules/postgresql/lib/puppet/provider/postgresql_psql/ruby.rb:57:in > > `run_sql_command') > Notice: > /Stage[main]/Puppetdb::Server::Jetty_ini/Ini_setting[puppetdb_sslhost]/value: > value changed '0.0.0.0' to 'puppet.internal' > 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 within timeout window of 15 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) > Can anyone explain to me what actually going on/wrong please? Why it was "Not Found" before and now "Unable to connect"? Any help/pointer would be much appreciated. Best! -- 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/9517f14f-8b38-4243-9aaf-353a27ae8079%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
