Issue #1703 has been updated by luke. Category set to transactions Status changed from Unreviewed to Accepted Assigned to set to community Target version set to 0.24.7
I'm assuming that some part of Ruby is requiring that we lock the thread we're in before we use IO.popen, or something like that. It should be pretty straightforward to throw a semaphore around the code that actually sends the email. ---------------------------------------- Bug #1703: Thread error in tagmail http://projects.reductivelabs.com/issues/show/1703 Author: martin Status: Accepted Priority: Low Assigned to: community Category: transactions Target version: 0.24.7 Complexity: Unknown Affected version: 0.24.6 Keywords: I've just upgraded to puppet 0.24.6 (using Ruby 1.8.7 p72 on Solaris 10 x86) from 0.24.5 and it gives me the following error trying to send emails (it occurred one time only). <pre>/usr/ops/lib/ruby/site_ruby/1.8/puppet/reports/tagmail.rb:166:in `send': Could not send report emails via sendmail: Thread(#<Thread:0xc75c00 run>) not locked. (Puppet::Error) from /usr/ops/lib/ruby/site_ruby/1.8/puppet/reports/tagmail.rb:126:in `fork' from /usr/ops/lib/ruby/site_ruby/1.8/puppet/reports/tagmail.rb:126:in `send' from /usr/ops/lib/ruby/site_ruby/1.8/puppet/reports/tagmail.rb:121:in `process' from /usr/ops/lib/ruby/site_ruby/1.8/puppet/network/handler/report.rb:66:in `process' from /usr/ops/lib/ruby/site_ruby/1.8/puppet/network/handler/report.rb:59:in `each' from /usr/ops/lib/ruby/site_ruby/1.8/puppet/network/handler/report.rb:59:in `process' from /usr/ops/lib/ruby/site_ruby/1.8/puppet/network/handler/report.rb:33:in `report' from /usr/ops/lib/ruby/site_ruby/1.8/puppet/network/handler/report.rb:2:in `to_proc' from /usr/ops/lib/ruby/site_ruby/1.8/puppet/network/xmlrpc/processor.rb:52:in `call' from /usr/ops/lib/ruby/site_ruby/1.8/puppet/network/xmlrpc/processor.rb:52:in `protect_service' from /usr/ops/lib/ruby/site_ruby/1.8/puppet/network/xmlrpc/processor.rb:85:in `setup_processor' from /usr/ops/lib/ruby/1.8/xmlrpc/server.rb:336:in `call' from /usr/ops/lib/ruby/1.8/xmlrpc/server.rb:336:in `dispatch' from /usr/ops/lib/ruby/1.8/xmlrpc/server.rb:323:in `each' from /usr/ops/lib/ruby/1.8/xmlrpc/server.rb:323:in `dispatch' from /usr/ops/lib/ruby/1.8/xmlrpc/server.rb:366:in `call_method' from /usr/ops/lib/ruby/1.8/xmlrpc/server.rb:378:in `handle' from /usr/ops/lib/ruby/site_ruby/1.8/puppet/network/xmlrpc/processor.rb:44:in `process' from /usr/ops/lib/ruby/site_ruby/1.8/puppet/network/xmlrpc/webrick_servlet.rb:68:in `service' from /usr/ops/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' from /usr/ops/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' from /usr/ops/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' from /usr/ops/lib/ruby/1.8/webrick/server.rb:162:in `start' from /usr/ops/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' from /usr/ops/lib/ruby/1.8/webrick/server.rb:95:in `start' from /usr/ops/lib/ruby/1.8/webrick/server.rb:92:in `each' from /usr/ops/lib/ruby/1.8/webrick/server.rb:92:in `start' from /usr/ops/lib/ruby/1.8/webrick/server.rb:23:in `start' from /usr/ops/lib/ruby/1.8/webrick/server.rb:82:in `start' from /usr/ops/lib/ruby/site_ruby/1.8/puppet.rb:293:in `start' from /usr/ops/lib/ruby/site_ruby/1.8/puppet.rb:144:in `newthread' from /usr/ops/lib/ruby/site_ruby/1.8/puppet.rb:143:in `initialize' from /usr/ops/lib/ruby/site_ruby/1.8/puppet.rb:143:in `new' from /usr/ops/lib/ruby/site_ruby/1.8/puppet.rb:143:in `newthread' from /usr/ops/lib/ruby/site_ruby/1.8/puppet.rb:291:in `start' from /usr/ops/lib/ruby/site_ruby/1.8/puppet.rb:290:in `each' from /usr/ops/lib/ruby/site_ruby/1.8/puppet.rb:290:in `start' from /usr/ops/bin/puppetmasterd:285</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 -~----------~----~----~----~------~----~------~--~---
