issues with NewRelic agent using the latest gem
On our Asian Friend Stock application, we're seeing this error, and nothing is reporting to New Relic:
[06/09/10 02:43:11 -0400 domU-12-31-38-01-D5-96 (9284)] INFO : Dispatcher: mongrel
[06/09/10 02:43:11 -0400 domU-12-31-38-01-D5-96 (9284)] INFO : Application: AsianFriendStock
[06/09/10 02:43:11 -0400 domU-12-31-38-01-D5-96 (9284)] ERROR : Error initializing New Relic plugin (undefined method `send_data_on_exit' for #<NewRelic::Control::Rails:0xb6ff2d44>)
[06/09/10 02:43:11 -0400 domU-12-31-38-01-D5-96 (9284)] ERROR : /home/rails/asianfriendstock_production/current/config/../vendor/plugins/newrelic_rpm/lib/new_relic/agent/agent.rb:227:in `start'
/home/rails/asianfriendstock_production/current/config/../vendor/plugins/newrelic_rpm/lib/new_relic/control.rb:122:in `start_agent'
/home/rails/asianfriendstock_production/current/config/../vendor/plugins/newrelic_rpm/lib/new_relic/control.rb:110:in `init_plugin'
/home/rails/asianfriendstock_production/current/config/../vendor/plugins/newrelic_rpm/init.rb:21:in `load_plugin'
/home/rails/asianfriendstock_production/current/config/../vendor/rails/railties/lib/initializer.rb:413:in `load_plugin'
/home/rails/asianfriendstock_production/current/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/home/rails/asianfriendstock_production/current/config/../vendor/rails/railties/lib/initializer.rb:413:in `load_plugin'
/home/rails/asianfriendstock_production/current/config/../vendor/rails/railties/lib/initializer.rb:190:in `load_plugins'
/home/rails/asianfriendstock_production/current/config/../vendor/rails/railties/lib/initializer.rb:190:in `each'
/home/rails/asianfriendstock_production/current/config/../vendor/rails/railties/lib/initializer.rb:190:in `load_plugins'
/home/rails/asianfriendstock_production/current/config/../vendor/rails/railties/lib/initializer.rb:105:in `process'
/home/rails/asianfriendstock_production/current/config/../vendor/rails/railties/lib/initializer.rb:43:in `send'
/home/rails/asianfriendstock_production/current/config/../vendor/rails/railties/lib/initializer.rb:43:in `run'
/home/rails/asianfriendstock_production/current/config/environment.rb:13
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:147:in `rails'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:113:in `cloaker_'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/configurator.rb:149:in `call'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/configurator.rb:149:in `listener'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:99:in `cloaker_'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/configurator.rb:50:in `call'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/configurator.rb:50:in `initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:84:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:84:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/command.rb:212:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281
/usr/bin/mongrel_rails:19:in `load'
/usr/bin/mongrel_rails:19
[06/09/10 02:43:11 -0400 domU-12-31-38-01-D5-96 (9284)] INFO : Agent is disabled.
[06/09/10 02:43:17 -0400 domU-12-31-38-01-D5-96 (9290)] INFO : Dispatcher: mongrel
[06/09/10 02:43:17 -0400 domU-12-31-38-01-D5-96 (9290)] INFO : Application: AsianFriendStock
[06/09/10 02:43:17 -0400 domU-12-31-38-01-D5-96 (9290)] ERROR : Error initializing New Relic plugin (undefined method `send_data_on_exit' for #<NewRelic::Control::Rails:0xb6f6bd44>)
[06/09/10 02:43:17 -0400 domU-12-31-38-01-D5-96 (9290)] ERROR : /home/rails/asianfriendstock_production/current/config/../vendor/plugins/newrelic_rpm/lib/new_relic/agent/agent.rb:227:in `start'
/home/rails/asianfriendstock_production/current/config/../vendor/plugins/newrelic_rpm/lib/new_relic/control.rb:122:in `start_agent'
/home/rails/asianfriendstock_production/current/config/../vendor/plugins/newrelic_rpm/lib/new_relic/control.rb:110:in `init_plugin'
/home/rails/asianfriendstock_production/current/config/../vendor/plugins/newrelic_rpm/init.rb:21:in `load_plugin'
/home/rails/asianfriendstock_production/current/config/../vendor/rails/railties/lib/initializer.rb:413:in `load_plugin'
/home/rails/asianfriendstock_production/current/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/home/rails/asianfriendstock_production/current/config/../vendor/rails/railties/lib/initializer.rb:413:in `load_plugin'
/home/rails/asianfriendstock_production/current/config/../vendor/rails/railties/lib/initializer.rb:190:in `load_plugins'
/home/rails/asianfriendstock_production/current/config/../vendor/rails/railties/lib/initializer.rb:190:in `each'
/home/rails/asianfriendstock_production/current/config/../vendor/rails/railties/lib/initializer.rb:190:in `load_plugins'
/home/rails/asianfriendstock_production/current/config/../vendor/rails/railties/lib/initializer.rb:105:in `process'
/home/rails/asianfriendstock_production/current/config/../vendor/rails/railties/lib/initializer.rb:43:in `send'
/home/rails/asianfriendstock_production/current/config/../vendor/rails/railties/lib/initializer.rb:43:in `run'
/home/rails/asianfriendstock_production/current/config/environment.rb:13
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:147:in `rails'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:113:in `cloaker_'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/configurator.rb:149:in `call'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/configurator.rb:149:in `listener'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:99:in `cloaker_'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/configurator.rb:50:in `call'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/configurator.rb:50:in `initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:84:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:84:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/command.rb:212:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281
/usr/bin/mongrel_rails:19:in `load'
/usr/bin/mongrel_rails:19
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Jim Gochee on 09 Jun, 2010 01:03 PM
I'll forward this over to our agent engineer. It may be a few days before he can look into it - he's at RailsConf. Can you revert to an older version for the time being?
Thanks,
Jim
3 Posted by erik on 09 Jun, 2010 06:13 PM
I'm having he same problem running NewRelic agent on a Rails 2.3.8 app with unicorn 0.990.0 on Ruby 1.8.7. Reverting to version 2.12.1 of the gem fixes the problem.
4 Posted by k on 10 Jun, 2010 03:50 AM
Same here. Just ran into this problem with a vanilla newrelic_rpm setup and what not. Using 2.12.1 worked.
5 Posted by gom on 10 Jun, 2010 06:15 AM
HI, I tried older version ( 2.12.1, 2.12.0) but went the same.
Also tried to boot with thin and webrick, made no better.
Looking forward to the agent engineer to be back.
Thank you.
Support Staff 6 Posted by Bill Kayser on 10 Jun, 2010 01:40 PM
Thanks for reporting this. This turned out to be a regression in the latest version. I've pushed an update 2.12.3, which will fix this.
Please let me know if you have any more problems.
Bill Kayser resolved this discussion on 10 Jun, 2010 01:40 PM.