Issue #2267 has been reported by Steve Franks.

----------------------------------------
Bug #2267: puppetd "thread not locked" on CentOS 4
http://projects.reductivelabs.com/issues/2267

Author: Steve Franks
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: 
Target version: 
Complexity: Unknown
Affected version: 0.24.8
Keywords: 


Hi.  I'm new to puppet, so please pardon any mistakes I may make here.

I'm deploying puppet on a combination of CentOS/RHEL 4 and 5 machines.  The 
problem I'm having is with the client.

I've created just the single sample sudo class to test with.  I've got 
puppetmasterd running fine.  The issue is on the CentOS 4.4 client.

When running puppetd -t, it connects to the server fine and quits out.

The issue is when I try to run the normal interval.  When I run it 
interactively, it never does anything.  I've tested the exact same setup on a 
CentOS 5 client and it all works fine.

Ruby is 1.8.6 p111.

Here is output from a command using debug and trace.  The first exception 
happens on the first interrupt, in order to get it to quit, I have to interrupt 
a second time:

<pre>
# puppetd --no-daemonize -v --debug --trace
debug: Creating default schedules
debug: Failed to load library 'shadow' for feature 'libshadow'
debug: Failed to load library 'ldap' for feature 'ldap'
debug: 
/Settings[/etc/puppet/puppet.conf]/Settings[main]/File[/var/lib/puppet/facts]: 
Autorequiring File[/var/lib/puppet]
debug: 
/Settings[/etc/puppet/puppet.conf]/Settings[ssl]/File[/var/lib/puppet/ssl/public_keys]:
 Autorequiring File[/var/lib/puppet/ssl]
debug: 
/Settings[/etc/puppet/puppet.conf]/Settings[ssl]/File[/var/lib/puppet/ssl/csr_xxxx.mathworks.com.pem]:
 Autorequiring File[/var/lib/puppet/ssl]
debug: 
/Settings[/etc/puppet/puppet.conf]/Settings[ssl]/File[/var/lib/puppet/ssl/private]:
 Autorequiring File[/var/lib/puppet/ssl]
debug: 
/Settings[/etc/puppet/puppet.conf]/Settings[ssl]/File[/var/lib/puppet/ssl/certs/ca.pem]:
 Autorequiring File[/var/lib/puppet/ssl/certs]
debug: 
/Settings[/etc/puppet/puppet.conf]/Settings[puppetd]/File[/var/lib/puppet/state/state.yaml]:
 Autorequiring File[/var/lib/puppet/state]
debug: 
/Settings[/etc/puppet/puppet.conf]/Settings[ssl]/File[/var/lib/puppet/ssl/certs]:
 Autorequiring File[/var/lib/puppet/ssl]
debug: 
/Settings[/etc/puppet/puppet.conf]/Settings[ssl]/File[/var/lib/puppet/ssl/certs/xxxx.mathworks.com.pem]:
 Autorequiring File[/var/lib/puppet/ssl/certs]
debug: 
/Settings[/etc/puppet/puppet.conf]/Settings[ssl]/File[/var/lib/puppet/ssl/private_keys/xxxx.com.pem]:
 Autorequiring File[/var/lib/puppet/ssl/private_keys]
debug: 
/Settings[/etc/puppet/puppet.conf]/Settings[main]/File[/var/lib/puppet/lib]: 
Autorequiring File[/var/lib/puppet]
debug: 
/Settings[/etc/puppet/puppet.conf]/Settings[main]/File[/var/lib/puppet/state]: 
Autorequiring File[/var/lib/puppet]
debug: 
/Settings[/etc/puppet/puppet.conf]/Settings[ssl]/File[/var/lib/puppet/ssl/public_keys/xxxx.com.pem]:
 Autorequiring File[/var/lib/puppet/ssl/public_keys]
debug: 
/Settings[/etc/puppet/puppet.conf]/Settings[puppetd]/File[/etc/puppet/puppet.conf]:
 Autorequiring File[/etc/puppet]
debug: 
/Settings[/etc/puppet/puppet.conf]/Settings[main]/File[/var/lib/puppet/ssl]: 
Autorequiring File[/var/lib/puppet]
debug: 
/Settings[/etc/puppet/puppet.conf]/Settings[ssl]/File[/var/lib/puppet/ssl/private_keys]:
 Autorequiring File[/var/lib/puppet/ssl]
debug: 
/Settings[/etc/puppet/puppet.conf]/Settings[puppetd]/File[/var/lib/puppet/classes.txt]:
 Autorequiring File[/var/lib/puppet]
debug: Finishing transaction 91469087480 with 0 changes
notice: Starting Puppet client version 0.24.8
debug: Loaded state in 0.10 seconds


notice: Caught INT; shutting down
debug: Signal caught here:
debug: /usr/lib/ruby/1.8/sync.rb:150:in `call'
debug: /usr/lib/ruby/1.8/sync.rb:150:in `stop'
debug: /usr/lib/ruby/1.8/sync.rb:150:in `sync_lock'
debug: /usr/lib/ruby/1.8/sync.rb:228:in `synchronize'
debug: 
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/network/client/master.rb:237:in
 `run'
debug: 
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/network/client.rb:136:in 
`runnow'
debug: 
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/network/client.rb:179:in 
`start'
debug: 
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/signal-system.rb:97:in
 `call'
debug: 
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/signal-system.rb:97:in
 `__signal__'
debug: 
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/signal-system.rb:97:in
 `each'
debug: 
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/signal-system.rb:97:in
 `__signal__'
debug: (eval):2:in `signal'
debug: 
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/event-loop.rb:321:in
 `sound_alarm'
debug: 
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/event-loop.rb:130:in
 `select'
debug: 
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/event-loop.rb:130:in
 `each'
debug: 
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/event-loop.rb:130:in
 `select'
debug: 
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/event-loop.rb:116:in
 `iterate'
debug: 
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/event-loop.rb:107:in
 `run'
debug: /usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet.rb:320:in `start'
debug: /usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/bin/puppetd:437
debug: /usr/bin/puppetd:19:in `load'
debug: /usr/bin/puppetd:19
notice: Shutting down
debug: Storing state
debug: Stored state in 0.01 seconds
/usr/lib/ruby/1.8/sync.rb:57:in `Fail'
/usr/lib/ruby/1.8/sync.rb:63:in `Fail'
/usr/lib/ruby/1.8/sync.rb:183:in `sync_unlock'
/usr/lib/ruby/1.8/sync.rb:231:in `synchronize'
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/network/client/master.rb:237:in
 `run'
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/network/client.rb:136:in 
`runnow'
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/network/client.rb:179:in 
`start'
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/signal-system.rb:97:in
 `call'
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/signal-system.rb:97:in
 `__signal__'
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/signal-system.rb:97:in
 `each'
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/signal-system.rb:97:in
 `__signal__'
(eval):2:in `signal'
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/event-loop.rb:321:in
 `sound_alarm'
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/event-loop.rb:130:in
 `select'
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/event-loop.rb:130:in
 `each'
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/event-loop.rb:130:in
 `select'
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/event-loop.rb:116:in
 `iterate'
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/event-loop.rb:107:in
 `run'
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet.rb:320:in `start'
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/bin/puppetd:437
/usr/bin/puppetd:19:in `load'
/usr/bin/puppetd:19
err: Could not run Puppet::Network::Client::Master: 
Thread(#<Thread:0x2a955cbdf8 run>) not locked.
notice: Caught INT; shutting down
debug: Signal caught here:
debug: 
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/event-loop.rb:127:in
 `call'
debug: 
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/event-loop.rb:127:in
 `select'
debug: 
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/event-loop.rb:127:in
 `select'
debug: 
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/event-loop.rb:116:in
 `iterate'
debug: 
/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet/external/event-loop/event-loop.rb:107:in
 `run'
debug: /usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/lib/puppet.rb:320:in `start'
debug: /usr/lib64/ruby/gems/1.8/gems/puppet-0.24.8/bin/puppetd:437
debug: /usr/bin/puppetd:19:in `load'
debug: /usr/bin/puppetd:19
notice: Shutting down
notice: Already in shutdown


</pre>


-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to