puppet agent -t throwing error

12 views
Skip to first unread message

Abhay Kumar

unread,
Feb 17, 2017, 11:41:48 AM2/17/17
to Puppet Users
Hi everyone,

I am trying to run "puppet agent -t" on an agent and it is throwing following error

root@puppet-client:/etc/puppet/manifests# sudo puppet agent -t

Info: Retrieving pluginfacts

Info: Retrieving plugin

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find default node or by name with 'puppet-client.com, puppet-client' on node puppet-client.com

Warning: Not using cache on failed catalog

Error: Could not retrieve catalog; skipping run

Please note that puppet-client.com (dns entry in /etc/hosts : 127.0.0.1 puppet-client.com) is the agent that I am using.

Can someone please help?

Toni Schmidbauer

unread,
Feb 17, 2017, 12:09:00 PM2/17/17
to Abhay Kumar, Puppet Users
Abhay Kumar <barnwallov...@gmail.com> writes:
> Error: Could not retrieve catalog from remote server: Error 400 on
> SERVER: Could not find default node or by name with
> 'puppet-client.com, puppet-client' on node puppet-client.com

seems like there's no node definition for puppet-client.com and the
default node definition is also missing.

please see

https://docs.puppet.com/puppet/4.9/lang_node_definitions.html

for more info on node definitions.

remember: if you have one node definition in you manifests, you need to
define all other nodes as well. otherwise catalog compilation will
fail. use the default node def to catch nodes that are currently
undefined.

toni

Reply all
Reply to author
Forward
0 new messages