newrelic_redis_plugin icon indicating copy to clipboard operation
newrelic_redis_plugin copied to clipboard

rhel 7 problem

Open ved123 opened this issue 9 years ago • 3 comments

Hi,

I have following gems installed: gem list

*** LOCAL GEMS ***

bigdecimal (1.2.0) bundler (1.10.6) dante (0.2.0) io-console (0.4.2) json (1.7.7) json_pure (1.6.3) newrelic_plugin (1.3.1) psych (2.0.0) rdoc (4.0.0) redis (3.2.1)

but when i run ./newrelic_redis_agent i get following output:

./newrelic_redis_agent /usr/share/gems/gems/json-1.7.7/lib/json.rb:60:in require': cannot load such file -- json/pure (LoadError) from /usr/share/gems/gems/json-1.7.7/lib/json.rb:60:inrescue in module:JSON' from /usr/share/gems/gems/json-1.7.7/lib/json.rb:57:in <module:JSON>' from /usr/share/gems/gems/json-1.7.7/lib/json.rb:54:in<top (required)>' from /usr/local/share/gems/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:1:in require' from /usr/local/share/gems/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:1:in<top (required)>' from /usr/local/share/gems/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding.rb:3:in require' from /usr/local/share/gems/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding.rb:3:in<top (required)>' from /usr/local/share/gems/gems/newrelic_plugin-1.3.1/lib/newrelic_plugin.rb:1:in require' from /usr/local/share/gems/gems/newrelic_plugin-1.3.1/lib/newrelic_plugin.rb:1:in<top (required)>' from ./newrelic_redis_agent:6:in require' from ./newrelic_redis_agent:6:in

'

Please help, I'm stuck

ved123 avatar Aug 20 '15 16:08 ved123

same problem with json_pure 1.7.7

*** LOCAL GEMS ***

bigdecimal (1.2.0) bundler (1.10.6) dante (0.2.0) io-console (0.4.2) json (1.7.7) json_pure (1.7.7) newrelic_plugin (1.3.1) psych (2.0.0) rdoc (4.0.0) redis (3.2.1) [root@xxxxxx newrelic_redis_plugin-1.0.1]# ./newrelic_redis_agent /usr/share/gems/gems/json-1.7.7/lib/json.rb:60:in require': cannot load such file -- json/pure (LoadError) from /usr/share/gems/gems/json-1.7.7/lib/json.rb:60:inrescue in module:JSON' from /usr/share/gems/gems/json-1.7.7/lib/json.rb:57:in <module:JSON>' from /usr/share/gems/gems/json-1.7.7/lib/json.rb:54:in<top (required)>' from /usr/local/share/gems/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:1:in require' from /usr/local/share/gems/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:1:in<top (required)>' from /usr/local/share/gems/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding.rb:3:in require' from /usr/local/share/gems/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding.rb:3:in<top (required)>' from /usr/local/share/gems/gems/newrelic_plugin-1.3.1/lib/newrelic_plugin.rb:1:in require' from /usr/local/share/gems/gems/newrelic_plugin-1.3.1/lib/newrelic_plugin.rb:1:in<top (required)>' from ./newrelic_redis_agent:6:in require' from ./newrelic_redis_agent:6:in

'

ved123 avatar Aug 20 '15 16:08 ved123

Same problem more than a year later.

bbaassssiiee avatar Nov 01 '16 13:11 bbaassssiiee

I've done some troubleshooting on this myself and found the issue is related to the newrelic_plugin gem. Until that is resolved, I have a workaround. My workaround is as follows:

  1. Run gem install json_pure

  2. Edit Gemfile, add this line before newrelic_plugin: gem "json", ">2.0"

  3. Run bundle update

  4. ./newrelic_redis_agent no longer returns errors

apicht avatar Dec 01 '16 00:12 apicht