+1 ... the key error here is "connection refused". Which is a pretty
common networking error, and as an admin should you get to know about
this error intimately, it happens everywhere (not just PuppetDB).

What it implies is that you've received back an ICMP response from the
host implying that the port is not listening. Firewalls also drop
packets in this manner as well, but most well-configured ones just
silently drop packets (so usually you get "connection timed out"
instead).

So if you don't have any firewalls in the path (and that means
iptables based firewalls on the PDB host - check this with 'iptables
-vnL'), the main reason for this error is commonly: "its not listening
on the port or IP address you think it is". Try telnetting from the
master to the hostname and port that was specified in the message,
also - check on the PDB host that its even listening on port 8081 (a
netstat -anp | grep 8081 would be good for us to see, if you can't
work it out). Check your /etc/puppetdb/conf.d/jetty.ini file, and make
sure that ssl-host is set to listen on the IP you expect - setting it
to 0.0.0.0 (and restarting) usually solves this. And if none of this
helps, make sure the PDB box you are trying to telnet into here is
what you think it is, I've seen people make typos and all kinds of
strange things in this case :-).

ken.

On Tue, Jun 10, 2014 at 9:41 PM, José Luis Ledesma
<[email protected]> wrote:
> Hi
>
> Are you sure puppetdb is listening in 8081? Is there any firewall?
> Have you tried from the puppet master to do a telnet to puppetdb port 8081?
>
> Regards
>
> El 10/06/2014 22:18, "GregC" <[email protected]> escribió:
>
>> I cannot get around the problem of connecting my Puppet Master 3.6 to
>> PuppetDB 2.0.1 THis is the opensource version.
>>
>>  I installed the puppet and puppetdb from rpm packages.
>> I continually get this error:
>>
>> Warning: Unable to fetch my node definition, but the agent run will
>> continue:
>> Warning: Error 400 on SERVER: Could not retrieve facts for xxx.com: Failed
>> to submit 'replace facts' command for xxx.com to PuppetDB at xxx.com:8081:
>> Connection refused - connect(2)
>>
>> I've done all of the ssl-setup steps but no matter what I cannot get it to
>> connect.
>> Any pointers would be appreciated,
>>
>> Also I'm a bit confused on the environment settings. seems no matter what
>> I do the Puppet Master wants to have an environment setup, IS THERE ANYWAY
>> TO DIABLE it? which I have an environments/production directory with the
>> mani
>>
>> Here is the output of my error, is there anyway to disable or work around
>> this issue.
>>
>> 2014-06-10 16:16:58] 172.16.43.151 - - [10/Jun/2014:16:16:58 EDT] "GET
>> /production/node/node.com? HTTP/1.1" 400 230
>> [2014-06-10 16:16:58] - -> /production/node/node.com?
>>
>> --
>> 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/067ce46c-40ce-442f-af73-1a9207d56afe%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/CAF_B3dc6Sx3bFscCAsZaLqhqQGAM_DVW04HNiK7NfRF6Uactgw%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.

-- 
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/CAE4bNT%3DkFBUyv2zxiXWEeH2jP_v16fJD%2Bc3ggwsc_UAMAJP7cQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to