Skip to content

Instantly share code, notes, and snippets.

@sotayamashita
Last active December 6, 2018 17:12
Show Gist options
  • Save sotayamashita/851259faf5b2e1681f0debb9509073fb to your computer and use it in GitHub Desktop.
Save sotayamashita/851259faf5b2e1681f0debb9509073fb to your computer and use it in GitHub Desktop.
Sidekiq & Redis troubleshooting on Heroku

Redis database cannot found

  1. Click Redis Cloud or Redis To Go on resources
  2. Remove the add-on
  3. Reinstall add-on

Sidekiq started with {url: nil}

2018-12-06T17:00:31.908993+00:00 app[worker.1]: 4 TID-gohdohhj4 INFO: Booting Sidekiq 5.2.3 with redis options {:url=>"nil", :id=>"Sidekiq-server-PID-4"}

with Redis Cloud add-on: (make sure there is REDISCLOUD_URL=~ in config)

heroku config:set REDIS_PROVIDER=REDISCLOUD_URL

with Redis To Go add-on: (make sure there is REDISTOGO_URL=~ in config)

heroku config:set REDIS_PROVIDER=REDISTOGO_URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment