Puppet agent throwing Error: Could not run Puppet configuration client: execution expired

asked 2015-04-10 11:38:59 -0500

updated 2015-04-10 12:43:16 -0500

GregLarkin gravatar image

Hi Team - Please could you help me to resolve Puppet issue.

I installed puppet master along with with puppet-dashboard on one server and puppet agent on another server by following installations documents properly. The only problem we had is we don't have internet connectivity so downloaded rpms from another yum repo and installed in particular sequence successfully.

Both are on same OS RHEL5.9 and Puppet version is same on both the servers - 3.7.5 and both are following same timezone. Added host entry of puppet master in both servers and agent entry in master server.

Everything is installed without any issue and even I created certificate from puppet agent and signed it from puppet master. I created 1 liner site.pp to check the connectivity. I can telnet puppet on the the port 8140 and all the ports are working fine :

puppet    25921                   root    5u  IPv4 1293712      0t0  TCP *:8140 (LISTEN)
ruby      25935 puppet-dashboard    6u  IPv4 1293784      0t0  TCP puppet:8089 (LISTEN)

Now, when i am trying to test the agent : Its failing after Finishing the Catalog with these errors :

Error: Could not run Puppet configuration client: execution expired
Error: Could not run: can't convert Puppet::Util::Log into Integer

I tried changing configtimeout to 1200 and uncommenting async_storeconfigs = false in puppet.conf but nothing is working here - Please could you help me to find out and resovle the issue

[root@10 ~]# puppet agent --verbose --test --trace
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for SERVERIP
Info: Applying configuration version '1428673043'
Notice: Agent connection is successful
Notice: /Stage[main]/Main/Node[SERVERIP]/Notify[Agent connection is successful]/message: defined 'message' as 'Agent connection is successful'
Notice: Finished catalog run in 0.14 seconds
Error: Could not run Puppet configuration client: execution expired
/usr/lib/ruby/1.8/timeout.rb:64:in `rbuf_fill'
/usr/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill'
/usr/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
/usr/lib/ruby/1.8/net/protocol.rb:126:in `readline'
/usr/lib/ruby/1.8/net/http.rb:2028:in `read_status_line'
/usr/lib/ruby/1.8/net/http.rb:2017:in `read_new'
/usr/lib/ruby/1.8/net/http.rb:1051:in `request'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/connection.rb:208:in `execute_request'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/connection.rb:176:in `request_with_redirects'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/connection.rb:219:in `with_connection'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/pool.rb:31:in `with_connection'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/connection.rb:218:in `with_connection'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/connection.rb:173:in `request_with_redirects'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/connection.rb:170:in `upto'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/connection.rb:170:in `request_with_redirects'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/connection.rb:114:in `put ...
edit retag flag offensive close merge delete



After it prints "Note: finished catalog run in ...", does your agent just sit there until the configtimeout value is reached and then print the subsequent error message?

GregLarkin gravatar imageGregLarkin ( 2015-04-10 12:48:22 -0500 )edit

Thanks for formatting the query :) Yes, its just wait for the timeout and then shows the above errors :|

scm_questor gravatar imagescm_questor ( 2015-04-10 12:54:01 -0500 )edit

Can you post a link to the puppet.conf files that are on your Puppet master as well as your Puppet agent node?

GregLarkin gravatar imageGregLarkin ( 2015-04-10 13:21:35 -0500 )edit

Hi Greg, sorry for delay in reply.I was copying the puppet.conf for you and found that in master server config the below stuff was commented,so i uncommented it to try and everything is fine now :) #The list of reports to generate reports = http reporturl =

scm_questor gravatar imagescm_questor ( 2015-04-11 19:27:11 -0500 )edit

Excellent, glad it works now!

GregLarkin gravatar imageGregLarkin ( 2015-04-13 00:14:23 -0500 )edit