Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sidekiq can't connect to redis in rails

I have my redis server installed and running, but when I connect sidekiq using bundle exec sidekiq it throws an error message

Timed out connecting to Redis on localhost:6379

Redis Server is running on port: 6379.

like image 566
Akash Soti Avatar asked Feb 13 '13 09:02

Akash Soti


People also ask

Does Sidekiq need Redis?

Sidekiq uses simple and efficient background processing. Sidekiq is supported by Redis as a job management tool to process thousands of jobs in a second. Follow the steps to add Sidekiq and Redis to your existing application.

Can't connect to Redis?

Firewall restriction is another common reason that can trigger the “could not connect to Redis connection refused”. By default Redis server listen to the TCP port 6379. If another application is using the port or if the firewall restrictions blocks the port, it can trigger the connection refused error.

What is Sidekiq and Redis in Rails?

Sidekiq is one of the more widely used background job frameworks that you can implement in a Rails application. It is backed by Redis, an in-memory key-value store known for its flexibility and performance. Sidekiq uses Redis as a job management store to process thousands of jobs per second.


1 Answers

Why are you using bundle exec sidekiq?

Try connecting with "redis-cli -h localhost"

like image 196
Henley Avatar answered Oct 06 '22 22:10

Henley