Skip to content

Instantly share code, notes, and snippets.

@rudSarkar
Created March 5, 2021 13:55
Show Gist options
  • Save rudSarkar/c97f9c96f813d8544392bf0f7bcf06ae to your computer and use it in GitHub Desktop.
Save rudSarkar/c97f9c96f813d8544392bf0f7bcf06ae to your computer and use it in GitHub Desktop.
fix redis connection refuse issue

While I was working with celery & redis I got a issue like this on MacOS

ERROR/MainProcess] consumer: Cannot connect to redis://localhost:6379/0: Error 61 connecting to localhost:6379. Connection refused..
Trying again in 2.00 seconds...

So what I did is deleted the log

rm -rf /usr/local/var/log

and run the command

celery -A task worker --pool=solo --loglevel=info

working like charm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment