0

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

Cœur
  • 37,241
  • 25
  • 195
  • 267
vijay
  • 397
  • 1
  • 7
  • 9
  • Please elaborate some more info: Which client do you use to connect to Redis, how frequent the error occurs / what has happened just before the error etc. – Ofer Zelig Feb 29 '12 at 16:51
  • See also http://stackoverflow.com/questions/2576882/redis-timeout-with-predis – The Nail Feb 29 '12 at 21:49
  • If this is in the server log, doesn't this just mean that the client closed the connection? Is there any 'problem' related to this event? – The Nail Feb 29 '12 at 21:51
  • https://stackoverflow.com/search?q=%22connection+reset+by+peer%22+redis – Cœur Oct 09 '17 at 06:17

2 Answers2

1

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.

Not_a_Golfer
  • 47,012
  • 14
  • 126
  • 92
0

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.

MatrixManAtYrService
  • 8,023
  • 1
  • 50
  • 61