err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known

177 views
Skip to first unread message

Wei Chen

unread,
Oct 19, 2015, 8:32:16 AM10/19/15
to Puppet Users
Hi,

I have two agents. I call up the agent with the same command as follow:

puppet agent --test

By one agent, it works. But by the other, it doesn't and I got error as follow:
...
]# puppet agent --test
err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
err: Could not send report: getaddrinfo: Name or service not known


According to the puppet doc, it tells it could be fixed with followings:
...
This usually happens when Puppet master is installed with a certname that isn’t its hostname. To fix these errors, edit /etc/puppetlabs/puppet/manifests/site.pp on the Puppet master so that the following resource’s server attribute points to the correct hostname:

    # Define filebucket 'main':
    filebucket { 'main':
      server => '<PUPPET MASTER'S DNS NAME>',
      path   => false,
    }


I did what the doc tells but I got the same error as before.

Has someone idea?


Wei

Matthew Burgess

unread,
Oct 19, 2015, 10:34:26 AM10/19/15
to puppet...@googlegroups.com
On 19 October 2015 at 13:32, Wei Chen <chenw...@gmail.com> wrote:

> ]# puppet agent --test
> err: Could not retrieve catalog from remote server: getaddrinfo: Name or
> service not known

What Puppet master is your agent configured to try to contact in
puppet.conf? Can it resolve the IP address of the hostname? i.e. does
your hosts file have a matching entry, or does the DNS server that
your agent's host have a matching DNS record; use nslookup to test the
latter.

Regards,

Matt.

Wei Chen

unread,
Oct 20, 2015, 2:16:31 AM10/20/15
to Puppet Users
Hi,

After I deinstalled and re-installed the puppet on Agent, it works again.
Reply all
Reply to author
Forward
0 new messages