gemhome / fnordmetric

(possible new home for) FnordMetric is a redis/ruby-based realtime Event-Tracking app
0 stars 1 forks source link

Web interface not working with Redis authentication #41

Open bf4 opened 10 years ago

bf4 commented 10 years ago

Issue by masone Thursday Feb 28, 2013 at 10:21 GMT Originally opened as https://github.com/paulasmuth/fnordmetric/issues/126


Sinatra throws a Redis::CommandError, ERR operation not permitted when connecting to a redis instance that requires authentication. The issue is documented here: https://gist.github.com/iromli/5004420

As far as I can tell the problem occurs in fnordmetric/web/app.rb#initialize. One can work around it by explicitely passing the :redis_url for the web interface. This is a bit cumbersome. In my opinion it should just use FnordMetric.options instead.

FnordMetric::Web.new(:port => fnord_settings['port'], :redis_url => redis_url)
FnordMetric::Worker.new
FnordMetric.run
bf4 commented 10 years ago

Comment by skorfmann Thursday Feb 28, 2013 at 11:01 GMT


Yep, not sure why App#initialize calls Fnordmetric.default_options instead of just Fnordmetric.options. Makes no sense to me. I've sent a pull request to change it: #128