Skip to content

Web interface not working with Redis authentication #126

Open
masone opened this Issue Feb 28, 2013 · 1 comment

2 participants

@masone
masone commented Feb 28, 2013

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
@skorfmann

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

@kainwinterheart kainwinterheart pushed a commit to kainwinterheart/fnordmetric that referenced this issue Dec 9, 2013
@skorfmann skorfmann Use options instead default_options.
Fnordmetric.default_options doesn't respect options set by the user
via Fnordmetric.options = {some: 'option'}.

This should solve paulasmuth#126
8ba4603
@bf4 bf4 referenced this issue in gemhome/fnordmetric Jun 15, 2014
Open

Web interface not working with Redis authentication #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.