Reputation: 417
I am getting the "Connection Reset by Peer" error in Redis Log.
Upvotes: 1
Views: 12507
Reputation: 9131
If you try to connect to redis before it's fully started, you might get this error from the client.
I fixed it by adding a two-second sleep after starting the container and before trying to connect. Better would be to wait for some kind of healthy indicator.
Upvotes: 0
Reputation: 49187
probably your client either timed out or has raised another exception that disconnects the connection before redis was able to write to it. or it has crashed.
either increase your client's timeout, or check the client logs to see what happens.
Upvotes: 1