Redis-Server Connection Errors after Docker Restart


I have Discourse running on Digital Ocean. Things were working fine until today. For some reason the site will not load and I’m seeing the following errors in production.log

Failed to log exception Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED) -4130889355464129288
Reason: Redis::CannotConnectError Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED)

As far as I can tell, the redis-server is running

# redis-cli ping


# redis-server
# Creating Server TCP listening socket *:6379: bind: Address already in use

Any ideas as to why Discourse is unable to connect to the redis server ?

QuotaExceededError - storage - exceeded the quota
(Jens Maier) #2

Are you running the recommended docker installation? Did you restart the container?


A DNS error is to blame for the site being down, but the redis issue still remains.

I believe I have the recommended setup. I followed this guide intially: discourse/ at master · discourse/discourse · GitHub

I’ve tried

service docker restart
starting and stopping the ./launcher
./launcher rebuild

(Jens Maier) #4

Ok, this is weird. Restarting the docker service may have left your container running in a weird state. Try a full reboot with shutdown -r now.