【发布时间】:2014-09-26 06:53:39
【问题描述】:
我刚刚添加了 gem 并尝试安装 newrelic_agent 文件,但我收到了一些奇怪的错误,提示密钥为空。
[2014-09-26 06:47:41 UTC] INFO: Using Ruby SDK version: 1.3.1
[2014-09-26 06:47:41 UTC] INFO: Agent Logwatcher is at version 0.0.2
[2014-09-26 06:47:41 UTC] INFO: Agent Logwatcher is at version 0.0.2
[2014-09-26 06:47:41 UTC] DEBUG: Start collecting agent data for poll cycle
[2014-09-26 06:47:41 UTC] DEBUG: Finished collecting agent data for poll cycle
/Users/xxxxxx/.rvm/gems/ruby-1.9.3-p545@xxxxx/bundler/gems/newrelic_plugin-fffddc35e908/lib/newrelic_platform_binding/component.rb:14:in `key': undefined method `+' for nil:NilClass (NoMethodError)
我不打算在本地运行它还是无法完成?
【问题讨论】:
-
确保
gem 'newrelic_rpm'行位于 Gemfile 中的任何组之外(例如开发或测试)。添加 gem 后,捆绑安装并将更改提交到 Gemfile 和 Gemfile.lock。 -
它在我的 gemfile 的底部,没有任何组
标签: ruby-on-rails ruby logging heroku newrelic