Issue #2010 has been updated by immerda.
Hi > resources[param['resource_id']].add_param_to_hash(param) is on line 177 in > the head of 0.24.x for me. > > Can you do a git log and let me know what the latest commit hash is? It is for me as well on line 177 and I was also suprised that actually the stacktrace doesn't give the exact location where the error happens and only shows the line number of the former method from where this have been called. you still like to have the git log? I can give you it in a few hours. > Obviously resources[param['resource_id']] is returning nil, but why? I dunno either. Only some of the hosts had that problem and I tried to debug it furrther by printing out the resource_id. Unfortunately the stored data didn't show anything interesting. But it seemed to get away if I deleted the record. However as this error fucked up the exported resources I had to drop the stored resources of these hosts to get my environment working properly again. So we somehow aren't able to test it again, as the errors doesn't occur anymore. :-/ but I still have a mysql dump with the data that provoked the problem, I could provide it to you. Just an idea: I first didn't had dbmigrate=true in my config after updating the master and the clients from 0.24.5 to 0.24.7 (and later to 0.24.x HEAD). However the server and clients were running a while with the environment problem (have been on the list by others). Maybe it's connected to that? Only a some clients had the problem. And these who haven't been updated to the latest version and still running 0.24.5 didn't have the problem. But also not every client who have been updated had the problem. Quite strange. PS: sorry to react that late. Due to the redmine problem I didn't get any mails hence I didn't see your question. ---------------------------------------- Bug #2010: puppetmaster fails to store config, trying to hash a param which is nil /issues/2010 Author: immerda Status: Accepted Priority: Normal Assigned to: andrew Category: Target version: 0.24.8 Complexity: Unknown Affected version: 0.24.7 Keywords: running the master on the latest head of 0.24.x gives the following error for _every_ client: <pre> notice: Searched for resources in 0.25 seconds /usr/lib/ruby/site_ruby/1.8/puppet/rails/host.rb:153:in `find_resources_parameters_tags' /usr/lib/ruby/site_ruby/1.8/puppet/rails/host.rb:125:in `setresources' /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime' /usr/lib/ruby/site_ruby/1.8/puppet/rails/host.rb:124:in `setresources' /usr/lib/ruby/site_ruby/1.8/puppet/rails/host.rb:52:in `store' /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime' /usr/lib/ruby/site_ruby/1.8/puppet/rails/host.rb:51:in `store' /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction' /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:129:in `transaction' /usr/lib/ruby/site_ruby/1.8/puppet/rails/host.rb:32:in `store' /usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:448:in `store_to_active_record' /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction' /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:129:in `transaction' /usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:447:in `store_to_active_record' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:180:in `benchmark' /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:179:in `benchmark' /usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:446:in `store_to_active_record' /usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:439:in `store' /usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:99:in `compile' /usr/lib/ruby/site_ruby/1.8/puppet/parser/interpreter.rb:29:in `compile' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:68:in `compile' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:180:in `benchmark' /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:179:in `benchmark' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:66:in `compile' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:21:in `find' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:210:in `find' /usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:49:in `find' /usr/lib/ruby/site_ruby/1.8/puppet/network/handler/master.rb:65:in `getconfig' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `to_proc' /usr/lib/ruby/site_ruby/1.8/puppet/network/xmlrpc/processor.rb:52:in `call' /usr/lib/ruby/site_ruby/1.8/puppet/network/xmlrpc/processor.rb:52:in `protect_service' /usr/lib/ruby/site_ruby/1.8/puppet/network/xmlrpc/processor.rb:85:in `setup_processor' /usr/lib/ruby/1.8/xmlrpc/server.rb:336:in `call' /usr/lib/ruby/1.8/xmlrpc/server.rb:336:in `dispatch' /usr/lib/ruby/1.8/xmlrpc/server.rb:323:in `each' /usr/lib/ruby/1.8/xmlrpc/server.rb:323:in `dispatch' /usr/lib/ruby/1.8/xmlrpc/server.rb:366:in `call_method' /usr/lib/ruby/1.8/xmlrpc/server.rb:378:in `handle' /usr/lib/ruby/site_ruby/1.8/puppet/network/xmlrpc/processor.rb:44:in `process' /usr/lib/ruby/site_ruby/1.8/puppet/network/xmlrpc/webrick_servlet.rb:68:in `service' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:in `start' /usr/lib/ruby/1.8/webrick/server.rb:92:in `each' /usr/lib/ruby/1.8/webrick/server.rb:92:in `start' /usr/lib/ruby/1.8/webrick/server.rb:23:in `start' /usr/lib/ruby/1.8/webrick/server.rb:82:in `start' /usr/lib/ruby/site_ruby/1.8/puppet.rb:293:in `start' /usr/lib/ruby/site_ruby/1.8/puppet.rb:144:in `newthread' /usr/lib/ruby/site_ruby/1.8/puppet.rb:143:in `initialize' /usr/lib/ruby/site_ruby/1.8/puppet.rb:143:in `new' /usr/lib/ruby/site_ruby/1.8/puppet.rb:143:in `newthread' /usr/lib/ruby/site_ruby/1.8/puppet.rb:291:in `start' /usr/lib/ruby/site_ruby/1.8/puppet.rb:290:in `each' /usr/lib/ruby/site_ruby/1.8/puppet.rb:290:in `start' /usr/sbin/puppetmasterd:285 err: Could not store configs: undefined method `add_param_to_hash' for nil:NilClass notice: Compiled catalog for puppet.foobar.com in 20.64 seconds </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 -~----------~----~----~----~------~----~------~--~---
