Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Heroku上的NewRelic插件:推送失败,原因是“未初始化常量NewRelic::Logger::INFO”`_Heroku_Ruby On Rails 4_Newrelic - Fatal编程技术网

Heroku上的NewRelic插件:推送失败,原因是“未初始化常量NewRelic::Logger::INFO”`

Heroku上的NewRelic插件:推送失败,原因是“未初始化常量NewRelic::Logger::INFO”`,heroku,ruby-on-rails-4,newrelic,Heroku,Ruby On Rails 4,Newrelic,new relic已经启动并正常工作,但现在推送在资产预编译期间失败。它与“newrelic_plugin”gem有关,因为从我的gem文件中删除该行并重新绑定后,推送工作正常 我已经启用了heroku实验室的“用户环境编译”,不确定它是否相关 这是完整的堆栈跟踪;任何帮助都将不胜感激: Your bundle is complete! It was installed into ./vendor/bundle Cleaning up the bundler cach

new relic已经启动并正常工作,但现在推送在资产预编译期间失败。它与“newrelic_plugin”gem有关,因为从我的gem文件中删除该行并重新绑定后,推送工作正常

我已经启用了heroku实验室的“用户环境编译”,不确定它是否相关

这是完整的堆栈跟踪;任何帮助都将不胜感激:

       Your bundle is complete! It was installed into ./vendor/bundle
       Cleaning up the bundler cache.
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
       Running: rake assets:precompile
       ** Invoke assets:precompile (first_time)
       ** Invoke assets:environment (first_time)
       ** Execute assets:environment
       ** Invoke environment (first_time)
       ** Execute environment
       rake aborted!
       uninitialized constant NewRelic::Logger::INFO
       /tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.6.6.147/lib/new_relic/agent/agent_logger.rb:131:in `log_level_for'
       /tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.6.6.147/lib/new_relic/agent/agent_logger.rb:119:in `set_log_level!'
       /tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.6.6.147/lib/new_relic/agent/agent_logger.rb:13:in `initialize'
       /tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.6.6.147/lib/new_relic/control/instance_methods.rb:62:in `new'
       /tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.6.6.147/lib/new_relic/control/instance_methods.rb:62:in `init_plugin'
       /tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.6.6.147/lib/newrelic_rpm.rb:40:in `block in <class:Railtie>'
       /tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/bundler/gems/rails-0b3a078a2481/railties/lib/rails/initializable.rb:30:in `instance_exec'
       /tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/bundler/gems/rails-0b3a078a2481/railties/lib/rails/initializable.rb:30:in `run'
       /tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/bundler/gems/rails-0b3a078a2481/railties/lib/rails/initializable.rb:55:in `block in run_initializers'
       /tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/bundler/gems/rails-0b3a078a2481/railties/lib/rails/initializable.rb:54:in `run_initializers'
       /tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/bundler/gems/rails-0b3a078a2481/railties/lib/rails/application.rb:257:in `initialize!'
       /tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/bundler/gems/rails-0b3a078a2481/railties/lib/rails/railtie.rb:194:in `public_send'
       /tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/bundler/gems/rails-0b3a078a2481/railties/lib/rails/railtie.rb:194:in `method_missing'
       /tmp/build_k8jk6mc5x6ch/config/environment.rb:5:in `<top (required)>'
       /tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/bundler/gems/rails-0b3a078a2481/railties/lib/rails/application.rb:233:in `require_environment!'
       /tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/bundler/gems/rails-0b3a078a2481/railties/lib/rails/application.rb:295:in `block in run_tasks_blocks'
       /tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.0/lib/sprockets/rails/task.rb:54:in `block (2 levels) in define'
       Tasks: TOP => environment
       (See full trace by running task with --trace)
 !
 !     Precompiling assets failed.

嗨,杰伊,我在New Relic工作,我们很乐意帮忙。如果你写信给我们,我们就能更好地解决你的问题support@newrelic.com. 当你写信给我们时,你能详细说明一下为什么要加入newrelic_插件gem吗?为什么您要将它与newrelic\u rpm结合使用?您应该只需要newrelic\u rpm?包括这个StackOverflow问题的URL也会有帮助。谢谢