Ask Your Question

How to troubleshoot "Puppet (err): Failed to apply catalog: getaddrinfo: Name or service not known"?

asked 2013-05-15 22:18:13 -0600

jasonling gravatar image

I am getting these across all my clients on syslog and also via report emails intermittently, around 2-3 times a day per client:

Puppet (err): Failed to apply catalog: getaddrinfo: Name or service not known

There is no other information in the logs or emails other than this. I also tried running 'puppet agent --test' multiple times in the hope of 'catching' the error live, but it does not happen.

Any idea on how to troubleshoot this?

edit retag flag offensive close merge delete


Can you post the log lines from the puppet master around that time ?

Julien R. gravatar imageJulien R. ( 2013-05-16 01:09:58 -0600 )edit

It appears to post the report to the puppet master:

[2013-05-16 13:44:13] ### - - [16/May/2013:13:44:13 SGT] "PUT /production/report/ HTTP/1.1" 200 16 ...(more)

jasonling gravatar imagejasonling ( 2013-05-16 01:43:25 -0600 )edit

Can you check that the agent can reach the master on port 8140? telnet masterhostname 8140 should be able to determine if that port is accessible.

Celia gravatar imageCelia ( 2013-05-17 17:02:00 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2013-12-09 05:33:39 -0600

TLmaK0 gravatar image

updated 2013-12-09 05:43:19 -0600

The problem is that the client doesn't know where is the puppet master server, so you have to:

create a host entry in /etc/hosts where 'puppet' host points to your puppet master server ip ex: puppet


execute puppet agent with --server parameter pointing to puppet master server ip, ex: 'puppet agent --server'

edit flag offensive delete link more

answered 2013-05-16 03:47:54 -0600

PorkCharSui gravatar image

Hi jasonling... I had the exact same error yesterday. There was some git spam in my /etc/puppet/puppet.conf on the agent, because of a faulty git commit. Check the agent conf.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-05-15 22:18:13 -0600

Seen: 17,989 times

Last updated: Dec 09 '13