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)
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.
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)
root@puppet:~# telnet puppet.internal 8081
Trying 127.0.1.1...
Connected to puppet.internal.
Escape character is '^]'.
root@puppet:~# netstat -ntpl | grep 80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 14345/apache2
tcp6 0 0 :::8080 :::* LISTEN 16301/java
tcp6 0 0 127.0.1.1:8081 :::* LISTEN 16301/java
root@puppet:~# awk '!/^($|#)/ {print}' /etc/puppetdb/conf.d/jetty.ini
[jetty]
host = 0.0.0.0
port = 8080
ssl-host = puppet.internal
ssl-port = 8081
ssl-key = /etc/puppetdb/ssl/private.pem
ssl-cert = /etc/puppetdb/ssl/public.pem
ssl-ca-cert = /etc/puppetdb/ssl/ca.pem
root@puppet:~# ps auxww | grep java
puppetdb 16301 1.0 26.8 1558932 135336 ? Sl 13:47 2:26 /usr/lib/jvm/java-7-openjdk-amd64/bin/java -XX:OnOutOfMemoryError=kill -9 %p -Xmx192m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/puppetdb/puppetdb-oom.hprof -Djava.security.egd=file:/dev/urandom -cp /usr/share/puppetdb/puppetdb.jar clojure.main -m com.puppetlabs.puppetdb.core services -c /etc/puppetdb/conf.d
root@puppet:~# ping -c2 puppet.internal
PING puppet.internal (127.0.1.1) 56(84) bytes of data.
64 bytes from puppet.internal (127.0.1.1): icmp_req=1 ttl=64 time=0.023 ms
64 bytes from puppet.internal (127.0.1.1): icmp_req=2 ttl=64 time=0.032 ms
--- puppet.internal ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.023/0.027/0.032/0.006 ms
root@puppet:~# nslookup puppet.internal
Server: 10.0.2.3
Address: 10.0.2.3#53
** server can't find puppet.internal: NXDOMAIN
127.0.0.1 localhost
127.0.1.1 puppet.internal puppet
root@puppet:~# telnet puppet.internal 8081
Trying 127.0.1.1...
Connected to puppet.internal.
Escape character is '^]'.
Connection closed by foreign host.
root@puppet:~# ufw status
Status: inactive
root@puppet:~# iptables -vnL
Chain INPUT (policy ACCEPT 349 packets, 47388 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 246 packets, 46964 bytes)
pkts bytes target prot opt in out source destination
Error: Unable to connect to puppetdb server (puppet.internal:8081): [404] Not Found
Notice: Unable to connect to puppetdb server (puppet.internal:8081): #<Errno::ECONNREFUSED: Connection refused - connect(2)>
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)
2014-06-17 23:20:05,246 INFO [p.t.s.w.jetty9-core] Removing buggy security provider SunPKCS11-NSS version 1.7
2014-06-17 23:20:06,036 INFO [p.t.s.w.jetty9-service] Initializing web server.
2014-06-17 23:20:06,132 INFO [p.t.s.w.jetty9-service] Starting web server.
2014-06-17 23:20:06,134 INFO [o.e.j.s.Server] jetty-9.1.z-SNAPSHOT
2014-06-17 23:20:06,177 INFO [o.e.j.s.ServerConnector] Started ServerConnector@5c5a7bf{HTTP/1.1}{0.0.0.0:8080}
2014-06-17 23:20:06,437 INFO [o.e.j.s.ServerConnector] Started ServerConnector@1bfc3437{SSL-HTTP/1.1}{puppet.internal:8081}
2014-06-17 23:20:06,531 INFO [c.p.p.c.services] PuppetDB version 2.0.0
2014-06-17 23:20:06,900 WARN [c.p.p.s.migrate] Adding additional indexes; this may take several minutes, depending on the size of your database. Trust us, it will all be worth it in the end.
2014-06-17 23:20:07,004 WARN [c.p.p.s.migrate] Building resource parameters cache. This make take a few minutes, but faster resource queries are worth it.
2014-06-17 23:20:07,140 INFO [c.p.p.c.services] Starting broker
2014-06-17 23:20:07,619 WARN [o.a.a.b.BrokerService] Store limit is 100000 mb, whilst the data directory: /var/lib/puppetdb/mq/localhost/KahaDB only has 73883 mb of usable space
2014-06-17 23:20:07,620 INFO [c.p.p.c.services] Starting 1 command processor threads
2014-06-17 23:20:07,639 INFO [c.p.p.c.services] Starting query server
2014-06-17 23:20:07,642 WARN [o.e.j.s.h.ContextHandler] Empty contextPath
2014-06-17 23:20:07,650 INFO [o.e.j.s.h.ContextHandler] Started o.e.j.s.h.ContextHandler@3a3670a8{/,null,AVAILABLE}
2014-06-17 23:20:07,724 INFO [c.p.p.c.services] Starting sweep of stale reports (threshold: 14 days)
2014-06-17 23:20:07,750 INFO [c.p.p.c.services] Finished sweep of stale reports (threshold: 14 days)
2014-06-17 23:20:07,750 INFO [c.p.p.c.services] Starting database garbage collection
2014-06-17 23:20:07,777 INFO [c.p.p.c.services] Finished database garbage collection
root@puppet:~# curl 'http://puppet.internal:8080/v2/metrics/mbean/java.lang:type=Memory'
{
"ObjectPendingFinalizationCount" : 0,
"HeapMemoryUsage" : {
"committed" : 86220800,
"init" : 8052480,
"max" : 194641920,
"used" : 41882456
},
"NonHeapMemoryUsage" : {
"committed" : 63504384,
"init" : 24313856,
"max" : 224395264,
"used" : 63257288
},
"Verbose" : false,
"ObjectName" : "java.lang:type=Memory"
--
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/36c1d8af-e7bb-4d95-960f-f00db7dc460e%40googlegroups.com.
Thanks Rakesh!
But, as you probably can guess, that didn't change a thing; still getting the same error. I'm not sure if PuppetDB look in the DNS record (as opposed to hosts file), in that case it never gonna work. Best!!