Ask Your Question
0

Error 400 on SERVER: Failed to find

asked 2014-08-12 13:17:42 -0500

tek0011 gravatar image

updated 2014-09-15 10:47:34 -0500

Getting this error.:

Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 400 on SERVER: Failed to find guitesttools.foundry.test via exec: Execution of '/usr/bin/env PUPPET_DASHBOARD_URL=http://localhost:3000 /usr/shar
e/puppet-dashboard/bin/external_node guitesttools.foundry.test' returned 1:
Info: Retrieving pluginfacts
Warning: Copying owner/mode/group from the source file on Windows is deprecated; use source_permissions => ignore.
   (at C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/type/file/source.rb:120:in `each')
Info: Retrieving plugin
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to submit 'replace facts' command for guitesttools.foundry.test to PuppetDB at
 puppetdb:8081: getaddrinfo: Name or service not known
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Generating the certificate works. I have been working on this error for the last 4 days and can't find a resolution. Hoping you guys can help.

I also just pulled the master log:

[2014-08-12 05:21:45] 172.23.41.41 - - [12/Aug/2014:05:21:44 CDT] "GET /production/node/guitesttools.foundry.test?transaction_uuid=3cabb650-3831-4735-91a6-baa6ed995b19&fail_on_404=true HTTP/1.1" 400 206
[2014-08-12 05:21:45] - -> /production/node/guitesttools.foundry.test?transaction_uuid=3cabb650-3831-4735-91a6-baa6ed995b19&fail_on_404=true
[2014-08-12 05:21:45] 172.23.41.41 - - [12/Aug/2014:05:21:45 CDT] "GET /production/file_metadatas/pluginfacts?links=manage&recurse=true&ignore=.svn&ignore=CVS&ignore=.git&checksum_type=md5 HTTP/1.1" 200 283
[2014-08-12 05:21:45] - -> /production/file_metadatas/pluginfacts?links=manage&recurse=true&ignore=.svn&ignore=CVS&ignore=.git&checksum_type=md5
[2014-08-12 05:21:45] 172.23.41.41 - - [12/Aug/2014:05:21:45 CDT] "GET /production/file_metadatas/plugins?links=manage&recurse=true&ignore=.svn&ignore=CVS&ignore=.git&checksum_type=md5 HTTP/1.1" 200 283
[2014-08-12 05:21:45] - -> /production/file_metadatas/plugins?links=manage&recurse=true&ignore=.svn&ignore=CVS&ignore=.git&checksum_type=md5
[2014-08-12 05:21:51] 172.23.41.41 - - [12/Aug/2014:05:21:51 CDT] "POST /production/catalog/guitesttools.foundry.test HTTP/1.1" 400 139
[2014-08-12 05:21:51] - -> /production/catalog/guitesttools.foundry.test
[2014-08-12 05:21:51] 172.23.41.41 - - [12/Aug/2014:05:21:51 CDT] "PUT /production/report/guitesttools.foundry.test HTTP/1.1" 200 16
[2014-08-12 05:21:51] - -> /production/report/guitesttools.foundry.test
edit retag flag offensive close merge delete

Comments

Does puppetdb actually resolve? The error here says it doesn't, "puppetdb:8081: getaddrinfo: Name or service not known"

ramindk gravatar imageramindk ( 2014-08-12 13:24:48 -0500 )edit

the puppetdb is on the same server as the master. on a side note where it says Error 400 on SERVER: Failed to find ........ execution of /usr/bin/env (that directory doesnt even exist).

tek0011 gravatar imagetek0011 ( 2014-08-12 13:33:51 -0500 )edit

Well thank you for that response. For whatever reason I completely forgot I rebuilt this puppetmaster, and completely forgot to install puppetdb. yikes. However it now progresses past the beginning errors, but still ends with the same error: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to submit 'replace facts' command for guitesttools.foundry.test to PuppetDB at puppetdb:8081: getaddrinfo: Name or service not known Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

tek0011 gravatar imagetek0011 ( 2014-08-12 13:47:56 -0500 )edit

getting somewhere: Error: Could not request certificate: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: [certificate revoked for /CN=puppetmaster.foundry.test] Exiting; failed to retrieve certificate and waitforcert is disabled

tek0011 gravatar imagetek0011 ( 2014-08-12 14:28:45 -0500 )edit

Most of the times this error is due to hostname conflict of your puppet master's Hostname & Puppetmaster name configured in puppet.conf. Make sure that /etc/hosts(linux) & puppet.conf has the same server name: Puppet.conf: [main] certname = virtual-master.example.org [master] certname = virtual-master.example.org Hosts file: [root@virtual-master puppet]# more /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 192.168.X.X virtual-master.example.org Then this issue should get resolved.

bhanu.rhce gravatar imagebhanu.rhce ( 2014-08-27 14:14:14 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-09-15 10:49:42 -0500

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to submit 'replace facts' command for guitesttools.foundry.test to PuppetDB at puppetdb:8081: getaddrinfo: Name or service not known

This looks like an issue from the server attempting to reach out to puppetdb. Make sure the dns resolves and it can reach that service. This could be related to firewall ports needing to be opened as well.

edit flag offensive delete link more

Comments

Had similar issue (working now). It all comes down to proper DNS setup when working w/ Puppet. Not doing this means opening up a can of worms and having a bad time.

tehmasp gravatar imagetehmasp ( 2016-03-16 14:35:11 -0500 )edit

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: 2014-08-12 13:17:42 -0500

Seen: 19,923 times

Last updated: Sep 15 '14