Reputation: 2170
This has been asked many times before but I haven't found any solutions to my exact problem. I have a Rails 4 app and I have installed SideKiq to handle backgroud email processing. i have followed the basic instructions but keep getting a long error when I run
bundle exec sidekiq
The main portion of the error is
Redis::CannotConnectError: Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED)
This is pretty self-explanatory however it does appear to say in the documentation how to resolve this (unless I have misread). Clearly my set up wrong. I have tried adding a sidekiq.rb file with
redis = { url: (ENV['REDIS_URL'] || 'redis://127.0.0.1:6379'), namespace: 'sidekiq' }
Sidekiq.configure_server do |config|
config.redis = redis
end
Sidekiq.configure_client do |config|
config.redis = redis
end
But no luck. Help wold be greatly appreciated.
Upvotes: 0
Views: 490
Reputation: 18784
Are you sure you even installed redis?
You can check with redis-cli ping
.
It seems the Sidekiq docs assume you have Redis running already.
brew install redis
if you are using HomeBrew, or check out the RailsCast.
Upvotes: 1