unboxed / newrelic_puma_plugin

Newrelic Puma Plugin
MIT License
8 stars 3 forks source link

Error occurred in poll cycle: uninitialized constant PumaAgent::Agent::Faraday #1

Open likethesky opened 11 years ago

likethesky commented 11 years ago

Any idea why I'm seeing this error when running _newrelic_pumaagent ?

pawel2105 commented 11 years ago

@grantspeelman any idea?

grantspeelman commented 11 years ago

@likethesky Did you run "bundle install" ?

leocassarani commented 11 years ago

Could it be that Faraday is not required at the top of the file?

likethesky commented 11 years ago

Yes indeed, I did a bundle install. Wouldn't run otherwise, of course.

Faraday bundled fine.

~ Brad

On Aug 7, 2013, at 12:50 AM, Grant Speelman notifications@github.com wrote:

@likethesky Did you run "bundle install" ?

— Reply to this email directly or view it on GitHub.

likethesky commented 11 years ago

So... I don't know why I'm seeing that. I am using JRuby, which I assume a lot of folks using Puma are.

Here's a full gist of the output I'm seeing (over two one-minute periods): https://gist.github.com/likethesky/19aa67ac2b1a54ab1d04

I also get a 'WARN: Component with name "myserver.example.com" and guid "com.ubxd.newrelic_puma" had no metrics' along with the 'ERROR: Error occurred in poll cycle: uninitialized constant PumaAgent::Agent::Faraday' ...

I assume that the ERROR is more pertinent, but perhaps the WARN gives you a hint as to what's happening? (I also included a couple of outputs in my gist with verbose = 1 set as well.)

svenagnew commented 11 years ago

@likethesky - Can you tell me which version of JRuby you are using exactly? I'm going to try and reproduce the issue on my machine and see if I can shed some light on this issue.

likethesky commented 11 years ago

jruby 1.7.4 (1.9.3p392) 2013-05-16 2390d3b on Java HotSpot(TM) Client VM 1.6.0_51-b11-456-11M4508 [darwin-i386]

likethesky commented 11 years ago

Any luck reproducing, @svenagnew ?

grantspeelman commented 11 years ago

@likethesky I have release a new version that has the require of Faraday like @leocassarani suggested

https://github.com/unboxed/newrelic_puma_plugin/tags

Will investigate the Warnings further