Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

RedisClient::CommandError (ERR value is not an integer or out of range)

$
0
0

Could not find a solution similar to my setup. I've installed redis on DigitalOcean from this guide. All seems ok and can see all systems are running. I'm using rails so I installed the sidekiq gem. Everything works on local computer.

config/initializers/sidekiq.rb looks like:

# Taken from https://stackoverflow.com/a/13409418/3581788require 'sidekiq'require 'sidekiq/web'Sidekiq::Web.use(Rack::Auth::Basic) do |user, password|  # Protect against timing attacks:  # - See https://codahale.com/a-lesson-in-timing-attacks/  # - See https://thisdata.com/blog/timing-attacks-against-string-comparison/  # - Use & (do not use &&) so that it doesn't short circuit.  # - Use digests to stop length information leaking  Rack::Utils.secure_compare(::Digest::SHA256.hexdigest(user), ::Digest::SHA256.hexdigest(ENV["SIDEKIQ_USER"])) &  Rack::Utils.secure_compare(::Digest::SHA256.hexdigest(password), ::Digest::SHA256.hexdigest(ENV["SIDEKIQ_PASSWORD"]))end# https://github.com/sidekiq/sidekiq/wiki/Using-RedisSidekiq.configure_server do |config|  config.redis = { url: ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" }, password: ENV['REDIS_PASSWORD'] }endSidekiq.configure_client do |config|  config.redis = { url: ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" }, password: ENV['REDIS_PASSWORD'] }end

I have a url that takes me to the sidekiq web admin. I see few tabs and the one that's causes the issue is the "Scheduled" tab. After adding a job to the job queue, I get the an error as in title, in production. Not sure where to raise the issue: Sidekiq or redis itself. Has anyone seen this issue before? I'm not a redis expert, sorry.


Viewing all articles
Browse latest Browse all 873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>