Redis-Server Connection Errors after Docker Restart


#1

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
PONG

And

# 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?


#3

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/INSTALL-cloud.md 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.