Issue #1454 has been updated by andrew.
I sent an email to the person who opened this issue, but I haven't got a reply yet and have no way to reproduce this. Maybe they are on holiday? If someone can reliably reproduce, we can make a run at fixing it. Looking at the original bug, it looks like it might be a problem with the rc script or something in the puppet manifest that is trying to restart it twice. Looking at the ps output, you can see there are two restart processes. The Thread not locked exception is from synchronize, and it looks like the only way that could happen is if the unlocking thread is not the thread that locked. This will sit open until someone can work with me to reproduce. ---------------------------------------- Bug #1454: puppetd restart, sometimes failed. http://projects.reductivelabs.com/issues/show/1454 Author: silent-ion Status: Needs more information Priority: Normal Assigned to: andrew Category: Target version: 0.24.6 Complexity: Unknown Patch: None Affected version: 0.24.4 Keywords: Hi. I created module puppetd, which restart puppetd itself: <pre> service { "puppetd": ensure => running, enable => true, path => [ "/etc/rc.d", "/usr/local/etc/rc.d" ], pattern => "puppetd", hasstatus => true, hasrestart => true; } </pre> But it doesn't work: tail -f /var/log/messages <pre> Jul 14 16:32:57 hostname puppetd[580]: (//Node[fqdn]/base_ac/puppetd/Service[puppetd]/enable) enable changed 'false' to 'true' Jul 14 16:32:57 hostname puppetd[580]: (//Node[fqdn]/base_ac/puppetd/Service[puppetd]) Triggering 'refresh' from 1 dependencies Jul 14 16:32:57 hostname puppetd[580]: Caught TERM; shutting down Jul 14 16:32:57 hostname puppetd[580]: Shutting down Jul 14 16:33:18 hostname puppetd[580]: Reparsing /usr/local/etc/puppet/puppet.conf Jul 14 16:33:18 hostname puppetd[580]: Could not run Puppet::Network::Client::Master: Thread(#<Thread:0x8082700 run>) not locked. </pre> ps aux -www | grep puppetd <pre> root 580 0.0 1.8 65736 65252 ?? Ss Sat11AM 0:55.87 /usr/local/bin/ruby18 /usr/local/bin/puppetd --rundir /var/run/puppet root 58855 0.0 0.0 1868 1460 ?? Is Sat12PM 0:00.01 /bin/sh /usr/local/etc/rc.d/puppetd restart root 58862 0.0 0.0 1868 1492 ?? S Sat12PM 0:24.50 /bin/sh /usr/local/etc/rc.d/puppetd restart </pre> OS: FreeBSD 6.3 ---------------------------------------- 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://reductivelabs.com/redmine/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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en -~----------~----~----~----~------~----~------~--~---
