Ask Your Question
1

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

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

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

Comments

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

Julien R. gravatar imageJulien R. ( 2013-05-16 01:09:58 -0500 )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/###.com HTTP/1.1" 200 16 ...(more)

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

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 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

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

TLmaK0 gravatar image

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

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: 127.0.0.1 puppet

or

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

edit flag offensive delete link more
0

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

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

Stats

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

Seen: 8,858 times

Last updated: Dec 09 '13