Redis Error
All of a sudden I got the following error about 30 minutes ago and my service on Linode stopped working:
Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 127.0.0.1:6379
This happened without me making any changes to the server or the code.
Any help would be greatly appreciated!
1 Reply
According to this documentation, that error message shows the Redis client is trying to connect to 127.0.0.1. It is usually caused when the Redis service is stopped in the server. There are several reasons why this error can occur, which includes:
- Redis-Server not Started
- Firewall Restriction
- Resource usage
The most common reason for the connection refused error is that the Redis-Server
service is not started. This StackOverflow post and the provided documentation earlier states that the Redis server needs to be started to use the Redis client after the installation. It can be done with the following command.
redis-server
If you're still experiencing issues with Redis, the above documentation goes into detail what other troubleshooting steps you can take if the issue does not lie with restarting the Redis service.