Issue #12185 has been updated by Steve Traylen. File 07-Thu-Apr-05-2012.log added
Have now caught a 'puppet agent stuck' with debugging enabled. Puppet running with: <pre> /usr/bin/ruby /usr/sbin/puppetd --debug --logdest /tmp/puppet.log --autoflush true </pre> The last successful run was perfectly normal and is <pre> Thu Apr 05 19:07:06 +0200 2012 Puppet (debug): Loaded state in 0.01 seconds Thu Apr 05 19:07:06 +0200 2012 Puppet (info): Retrieving plugin Thu Apr 05 19:07:06 +0200 2012 /File[/var/lib/puppet/lib]/seluser (debug): Found seluser default 'system_u' for /var/lib/puppet/lib Thu Apr 05 19:07:06 +0200 2012 /File[/var/lib/puppet/lib]/selrole (debug): Found s ... ... hu Apr 05 19:07:07 +0200 2012 /File[/var/lib/puppet/lib/puppet/provider/network_config/interfaces.rb]/selrange (debug): Found selrange default 's0' for /var/lib/puppet/lib/puppet/provider/network_config/interfaces.rb Thu Apr 05 19:07:07 +0200 2012 Puppet (debug): file_metadata supports formats: b64_zlib_yaml marshal pson raw yaml; using pson Thu Apr 05 19:07:08 +0200 2012 Puppet (debug): Finishing transaction 70060370436820 </pre> Full log attached At this point puppet agent is stuck, the strace is as above. Running <pre> echo "" | nc localhost 8139 </pre> then puppet immediately starts up again with <pre> Thu Apr 12 11:44:36 +0200 2012 Puppet (info): Loading facts in /var/lib/puppet/lib/facter/bios_and_system.rb Thu Apr 12 11:44:36 +0200 2012 Puppet (info): Loading facts in /var/lib/puppet/lib/facter/iptables.rb Thu Apr 12 11:44:36 +0200 2012 Puppet (info): Loading facts in /var/lib/puppet/lib/facter/lemon.rb ... </pre> and a normal run happens. Everything is fine from this point. One thing I noticed is that the transaction id '70060370436820' from the last good run happens to have been repeat of one a couple of days ago. Are these not unique? Looking <pre> Tue Apr 03 06:36:04 +0200 2012 Puppet (debug): Finishing transaction 70060370436820 Thu Apr 05 19:07:08 +0200 2012 Puppet (debug): Finishing transaction 70060370436820 </pre> but looking there are other occurrences of repeats so I guess this is normal. ---------------------------------------- Bug #12185: Puppet agents get stuck https://projects.puppetlabs.com/issues/12185#change-60410 Author: Carlos Cruz Luengo Status: Needs More Information Priority: Normal Assignee: Category: Target version: Affected Puppet version: 2.7.9 Keywords: Branch: I am having some problems with my Puppet instalation. I have one Puppet in master mode running with: * Foreman as web interface. * Storeconfigs running. * Passenger Apache module. I have 25 nodes running Puppet Agent every 5 minutes (runinterval=300) and sending their reports to the master node. Everything is fine but suddenly (and arbitrarily) the puppet agent stops running (I left yesterday all nodes working and today 20 of them had stopped asking for their catalogues, some 1 hour ago, other, 4 hours, etc.). The process is still working and when I run a 'puppet kick' from the master node they start working again. Is something wrong in my config?? (I am running 2.7.9-1puppetlabs3 on both master and agent nodes) <pre> *** puppet.conf in master node *** [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter templatedir=$confdir/templates certname=puppet.YYYYY.com node_name=cert server=puppet.YYYYY.com [master] ssl_client_header = SSL_CLIENT_S_DN ssl_client_verify_header = SSL_CLIENT_VERIFY storeconfigs=true dbadapter=mysql dbuser=puppet dbname=foreman dbpassword=XXXXX dbserver=localhost dbsocket=/var/run/mysqld/mysqld.sock reports=log, foreman node_terminus = exec external_nodes = /etc/puppet/scripts/external_node.rb allow_duplicate_certs = true [agent] report = true listen = true runinterval = 300 *** puppet.conf in agent node *** [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter templatedir=$confdir/templates server=puppet.YYYYYY.com [agent] report = true listen = true runinterval = 300 </pre> Thank you very much in advanced. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to puppet-bugs@googlegroups.com. To unsubscribe from this group, send email to puppet-bugs+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.