Error 400 on SERVER: Failed when searching for node

asked 2014-12-08 09:19:32 -0500

Cesar Sturion gravatar image

Hi,

I'm using the Foreman with ENC and Puppet. In this case the agent is instaled in the windows 7.

I have included a module to install the openoffice software in this node. But when I execute the command below, I receive this error:

C:\Windows\system32>puppet agent --test --debug --verbose

Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node puppetwin.localdomain: Failed to find puppetwin.localdomain via exec: Execution of '/etc/puppet/node.rb puppetwin.localdomain' returned 1:

Debug: Finishing transaction 27367640
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: node supports formats: pson b64_zlib_yaml yaml raw
Debug: Using cached certificate for ca
Debug: Using cached certificate for puppetwin.localdomain
Debug: Creating new connection for https://puppetforeman.localhost:8140
Debug: Using cached certificate_revocation_list for ca
Debug: Starting connection for https://puppetforeman.localhost:8140
Debug: Caching connection for https://puppetforeman.localhost:8140
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 400 on SERVER: Failed to find puppetwin.localdomain via exec: Execution of '/etc/puppet/node.rb puppetwin.localdomain' returned 1:
Info: Retrieving pluginfacts
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: file_metadata supports formats: pson b64_zlib_yaml yaml raw
Debug: Using cached connection for https://puppetforeman.localhost:8140
Debug: Caching connection for https://puppetforeman.localhost:8140
Debug: Finishing transaction 31700960
Info: Retrieving plugin
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: file_metadata supports formats: pson b64_zlib_yaml yaml raw
Debug: Using cached connection for https://puppetforeman.localhost:8140
Debug: Caching connection for https://puppetforeman.localhost:8140
Debug: Finishing transaction 50629060
Debug: Loading external facts from C:/ProgramData/PuppetLabs/puppet/var/facts.d
Info: Loading facts
Debug: Loading facts from C:/ProgramData/PuppetLabs/puppet/var/lib/facter/apt_package_updates.rb
Debug: Loading facts from C:/ProgramData/PuppetLabs/puppet/var/lib/facter/apt_security_updates.rb
Debug: Loading facts from C:/ProgramData/PuppetLabs/puppet/var/lib/facter/apt_updates.rb
Debug: Loading facts from C:/ProgramData/PuppetLabs/puppet/var/lib/facter/facter_dot_d.rb
Debug: Loading facts from C:/ProgramData/PuppetLabs/puppet/var/lib/facter/last_run.rb
Debug: Loading facts from C:/ProgramData/PuppetLabs/puppet/var/lib/facter/pe_version.rb
Debug: Loading facts from C:/ProgramData/PuppetLabs/puppet/var/lib/facter/puppet_vardir.rb
Debug: Loading facts from C:/ProgramData/PuppetLabs/puppet/var/lib/facter/puppi_projects.rb
Debug: Loading facts from C:/ProgramData/PuppetLabs/puppet/var/lib/facter/root_home.rb
Debug: Loading facts from C:/ProgramData/PuppetLabs/puppet/var/lib/facter/windows_common_appdata.rb
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: catalog supports formats: pson b64_zlib_yaml yaml dot raw
Debug: Closing connection for https://puppetforeman.localhost:8140
Debug: Creating new connection for https://puppetforeman.localhost:8140
Debug: Starting connection for https://puppetforeman.localhost:8140
Debug: Caching connection for https://puppetforeman ...
(more)
edit retag flag offensive close merge delete

Comments

The foreman node.rb enc script fails to find that hostname. "Execution of '/etc/puppet/node.rb puppetwin.localdomain' returned 1:" Run that by hand on your puppetmaster and debug. I assume that node.rb works for other hostnames so it is configured correctly to connect to the foreman instance.

lorcutt gravatar imagelorcutt ( 2014-12-09 11:28:29 -0500 )edit