Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node

I am running into a weird problem for one of my nodes, the yml file for
this specific node is 22k lines (its because this node has so many
interfaces 1600+ and is running docker ) this is a test box.

Puppet agent fails to complete with (Error 400 on SERVER: Failed when
searching for node test01.lab.net: Failed to find test01.lab.net via exec:
Execution of '/etc/puppet/node.rb test01.lab.net' returned 1). when i run
the script from puppet master i get back the yaml response in 25+sec.
When looked in the production.log file, there are no errors.

2017-01-23 14:20:20 [app] [I] Started GET "/node/test01.lab.net?format=yml"
for 10.52.55.54 at 2017-01-23 14:20:20 -0600
2017-01-23 14:20:20 [app] [I] Processing by HostsController#externalNodes
as YML
2017-01-23 14:20:20 [app] [I] Parameters: {"name"=>"test01.lab.net"}
I dont see a corresponding COMPELTED line in the production.log file.
REf: http://stackoverflow.com/questions/38345818/puppet-agent-unable-to-retrieve-catalog-from-master-when-using-enc-error-400-on
is there a timeout value when puppet agent runs to retrieve the catalog?
I checked the YML responce and ran it trough "ruby -e "require 'yaml';
YAML.load_file('test.yaml')" and did not see any yaml related syntax errors.
"

Any thoughts on how i can debug this issue? please let me know.

Thanks,
Manoj.

Hi Manoj,

Depending on your Puppet version you may want to look at one of these parameters (on your client):

https://docs.puppet.com/puppet/latest/configuration.html#configtimeout

https://docs.puppet.com/puppet/latest/configuration.html#httpconnecttimeout

https://docs.puppet.com/puppet/latest/configuration.html#httpreadtimeout

HTH,

j

··· From: "Manoj Potluri" To: "Foreman Users" Sent: Monday, January 23, 2017 3:18:53 PM Subject: [foreman-users] Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node

I am running into a weird problem for one of my nodes, the yml file for this specific node is 22k lines (its because this node has so many interfaces 1600+ and is running docker ) this is a test box.

Puppet agent fails to complete with (Error 400 on SERVER: Failed when searching for node test01.lab.net: Failed to find test01.lab.net via exec: Execution of ‘/etc/puppet/node.rb test01.lab.net’ returned 1). when i run the script from puppet master i get back the yaml response in 25+sec.
When looked in the production.log file, there are no errors.

2017-01-23 14:20:20 [app] [I] Started GET “/node/ test01.lab.net ?format=yml” for 10.52.55.54 at 2017-01-23 14:20:20 -0600
2017-01-23 14:20:20 [app] [I] Processing by HostsController#externalNodes as YML
2017-01-23 14:20:20 [app] [I] Parameters: {“name”=>" test01.lab.net "}
I dont see a corresponding COMPELTED line in the production.log file. REf: http://stackoverflow.com/questions/38345818/puppet-agent-unable-to-retrieve-catalog-from-master-when-using-enc-error-400-on
is there a timeout value when puppet agent runs to retrieve the catalog?
I checked the YML responce and ran it trough "ruby -e “require ‘yaml’; YAML.load_file(‘test.yaml’)” and did not see any yaml related syntax errors. "

Any thoughts on how i can debug this issue? please let me know.

Thanks,
Manoj.


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [ mailto:foreman-users+unsubscribe@googlegroups.com | foreman-users+unsubscribe@googlegroups.com ] .
To post to this group, send email to [ mailto:foreman-users@googlegroups.com | foreman-users@googlegroups.com ] .
Visit this group at [ https://groups.google.com/group/foreman-users | https://groups.google.com/group/foreman-users ] .
For more options, visit [ https://groups.google.com/d/optout | https://groups.google.com/d/optout ] .

Jason,
I am running puppet version 3.8.7. i made the changes you suggested and
still see the problem.
i have added these settings in the conf file for the agent for testing.
http_keepalive_timeout=5m
configtimeout=5m

httpconnecttimeout and httpreadtimeout are not valid options for the
version i am running.

i am puzzled why /etc/puppet/node.rb test01.lab.net works but the agent is
not able to complete the call, This server was working fine before docker
was installed on the test box and the YAML from foreman ENC was small.

Thanks,
Manoj.

··· On Tuesday, January 24, 2017 at 8:59:49 AM UTC-6, Jason B. Nance wrote: > > Hi Manoj, > > Depending on your Puppet version you may want to look at one of these > parameters (on your client): > > https://docs.puppet.com/puppet/latest/configuration.html#configtimeout > > > https://docs.puppet.com/puppet/latest/configuration.html#httpconnecttimeout > > > https://docs.puppet.com/puppet/latest/configuration.html#httpreadtimeout > > HTH, > > j > > > > ------------------------------ > *From: *"Manoj Potluri" <mano...@gmail.com > > *To: *"Foreman Users" <forema...@googlegroups.com > > *Sent: *Monday, January 23, 2017 3:18:53 PM > *Subject: *[foreman-users] Could not retrieve catalog from remote server: > Error 400 on SERVER: Failed when searching for node > > > I am running into a weird problem for one of my nodes, the yml file for > this specific node is 22k lines (its because this node has so many > interfaces 1600+ and is running docker ) this is a test box. > > Puppet agent fails to complete with (Error 400 on SERVER: Failed when > searching for node test01.lab.net: Failed to find test01.lab.net via > exec: Execution of '/etc/puppet/node.rb test01.lab.net' returned 1). when > i run the script from puppet master i get back the yaml response in 25+sec. > When looked in the production.log file, there are no errors. > > 2017-01-23 14:20:20 [app] [I] Started GET "/node/test01.lab.net?format=yml" > for 10.52.55.54 at 2017-01-23 14:20:20 -0600 > 2017-01-23 14:20:20 [app] [I] Processing by HostsController#externalNodes > as YML > 2017-01-23 14:20:20 [app] [I] Parameters: {"name"=>"test01.lab.net"} > I dont see a corresponding COMPELTED line in the production.log file. REf: > http://stackoverflow.com/questions/38345818/puppet-agent-unable-to-retrieve-catalog-from-master-when-using-enc-error-400-on > is there a timeout value when puppet agent runs to retrieve the catalog? > I checked the YML responce and ran it trough "ruby -e "require 'yaml'; > YAML.load_file('test.yaml')" and did not see any yaml related syntax errors. > " > > Any thoughts on how i can debug this issue? please let me know. > > Thanks, > Manoj. > > > -- > You received this message because you are subscribed to the Google Groups > "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to foreman-user...@googlegroups.com . > To post to this group, send email to forema...@googlegroups.com > . > Visit this group at https://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout. >