Could not send facts to Foreman: getaddrinfo: Name or service not known

Hi,

can anyone help me with that error?

When I run puppet agent -tv I get:

Warning: Unable to fetch my node definition, but the agent run will
continue:
Warning: Error 400 on SERVER: Failed to find hostname via exec: Execution
of '/etc/puppet/node.rb hostname' returned 1:
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
Failed when searching for node hostname: Failed to find hostname via exec:
Execution of '/etc/puppet/node.rb hostname' returned 1:
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

I tried run - /etc/puppet/node.rb "hostname" and I get "Could not send
facts to Foreman: getaddrinfo: Name or service not known".

Thank you.

It looks like you can not reach the Puppet Master (Foreman in your case),
you can check the following:

  • check Puppet Config on Client by typing "cat /etc/puppet/puppet.conf"
  • check Name Resolution on Client by typing "nslookup
    <server_from_above_output>"
  • check FW related Issue by typing "telnet <server_from_above_output> 8140"

br,
Christian

Hi Christian,

my puppet.conf seems ok…

ca_server = prod-vm39

[agent]

default_schedules = false

report            = true
pluginsync        = true
masterport        = 8140
environment       = production
certname          = prod-vm50
server            = prod-vm39
listen            = false
splay             = false
splaylimit        = 1800
runinterval       = 1800
noop              = false
configtimeout     = 120
usecacheonfailure = false

Name resolution on client is alright.
Telnet to port 8140 is also alright - Connected to prod-vm39 - after few
second is connection closed.

Thank you,
Zbynek

Dne úterý 20. října 2015 19:04:01 UTC+2 ehar...@gmail.com napsal(a):

··· > > It looks like you can not reach the Puppet Master (Foreman in your case), > you can check the following: > > - check Puppet Config on Client by typing "cat /etc/puppet/puppet.conf" > - check Name Resolution on Client by typing "nslookup > " > - check FW related Issue by typing "telnet 8140" > > br, > Christian >

I have the same issue.