Skip to content
This repository

Web interface not working with Redis authentication #126

Open
masone opened this Issue · 1 comment

2 participants

Christian Felder Sebastian Korfmann
Christian Felder

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
Sebastian Korfmann

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

Gennadiy Filatov kainwinterheart referenced this issue from a commit in kainwinterheart/fnordmetric
Sebastian Korfmann 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
Benjamin Fleischer bf4 referenced this issue in gemhome/fnordmetric
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.