Getting error "Warning: Error 400 on SERVER: Failed to find xxx via exec: Execution of '/etc/puppet/node.rb xxx ' returned 1" when running puppet agent command

Solution Verified - Updated -

Issue

  • Receiving the following error with puppet-agent commands:

    [root@puppetclient]# puppet agent -t
    Warning: Unable to fetch my node definition, but the agent run will continue:
    Warning: Error 400 on SERVER: Failed to find puppetclient.example.com via exec: Execution of '/etc/puppet/node.rb puppetclient.example.com' returned 1:
    Info: Retrieving plugin
    Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
    Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
    Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
    Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
    Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node puppetclient.example.com: Failed to find puppetclient.example.com via exec: Execution of '/etc/puppet/node.rb puppetclient.example.com' returned 1:
    Warning: Not using cache on failed catalog
    Error: Could not retrieve catalog; skipping run
    

Environment

  • Red Hat Satellite 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content