Agent wants to access PuppetDB on Port 8081

149 views
Skip to first unread message

Michael Moossen

unread,
Mar 1, 2018, 12:16:57 PM3/1/18
to Puppet Users
Hi everyone,

we are using PE 3.8 for a while now and i am setting up a node for the first time behind a firewall.
my understanding is that the agents need only 2 ports: 8140 and 61613.

the first run of the puppet agent was also successful, but now it is not working with the error:

myhost:~ # puppet agent -t
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Connection refused - connect(2)
Info: Retrieving pluginfacts
Error: /File[/var/opt/lib/pe-puppet/facts.d]: Failed to generate additional resources using 'eval_generate': Connection refused - connect(2)
Error: /
File[/var/opt/lib/pe-puppet/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet://puppetmaster/pluginfacts: Connection refused - connect(2)
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to submit 'replace facts' command for myhost to PuppetDB at puppetmaster:8081: Error executing http request
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run



why is the agent trying to access the PuppetDB on port 8081 directly?

is there any way to get it running with out opening port 8081?

many thanks
Michael

Martin Alfke

unread,
Mar 1, 2018, 12:47:18 PM3/1/18
to puppet...@googlegroups.com
Hi Michael,
This is an error message from puppetmaster.not being able to push facts to puppetdb
What agent version are you using? The one which is part of PE 3.8?

In general: no agent needs connection to puppetdb. Only master needs to access puppetdb.

hth,
Martin

P.S. PE 3.8 is way old. Maybe consider upgrading.
Reply all
Reply to author
Forward
0 new messages