Hostname lookup failures for Redis

I'm getting `getaddrinfo: Name or service not known` when trying to connect to Redis.

on EC2: restarting the instance where your application runs or moving to a new instance will resolve the issue.

on Heroku: run `heroku ps:restart`. If you know which individual dyno is affected, run `heroku ps:restart [DYNO]`. To automatically detect and resolve this error condition on the platform, crash your application during startup with a script like this: check Heroku dyno connectivity.

on other platforms: a `restart` will resolve this error on most highly-available platforms. Check with your service provider for details or send us a note and let us know which platform you're on, and we'll point you in the right direction.

If you experience this error when trying to connect to RedisGreen, let us know so we can share additional information.

Explore Your Redis Memory Usage with an Interactive Map

RedisMonitor shows you large keys, memory leaks, old keys, and other potential problems quickly. Try it today without a credit card.

← Back to docs