vijay
vijay

Reputation: 417

Redis Log says Connection Reset by Peer

I am getting the "Connection Reset by Peer" error in Redis Log.

Upvotes: 1

Views: 12507

Answers (2)

MatrixManAtYrService
MatrixManAtYrService

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

Not_a_Golfer
Not_a_Golfer

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

Related Questions