Error: connection reset by peer

887 views
Skip to first unread message

Navin Devassy

unread,
May 6, 2021, 8:16:05 AM5/6/21
to Redis DB
Hi,
When redis try to save rdb snapshot I am getting the following error "Error: connection reset by peer".
Anyone have any idea why this error occurs ?
redis version: 6.0.6
environment : AWS ec2 (ubuntu)

sundb

unread,
May 6, 2021, 9:11:03 AM5/6/21
to Redis DB
Can you tell us the exact steps? This error is printed from redis-cli?

Navin Devassy

unread,
May 6, 2021, 9:27:20 AM5/6/21
to Redis DB
My Redis server was stopping randomly. When I try to ping I got the following error:
"(error) MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error."

I understood that the server stops because it failed to save. So I tried to save from react-cli using save command. Then I got the error ""Error: connection reset by peer"".

I know if I set "stop-writes-on-bgsave-error" to NO, then the server won't stop. But I want to know why the save process failed.

sundb

unread,
May 6, 2021, 11:19:43 AM5/6/21
to redi...@googlegroups.com
Redis will reject all write command (save is write command) if there are problems persisting on disk until rdb save successfully.

Navin Devassy

unread,
May 6, 2021, 11:21:43 AM5/6/21
to redi...@googlegroups.com
I am trying to figure out what might be the problem causing that. so where can I find some error logs or something.

On Thu, 6 May 2021 at 8:49 PM, sundb <sund...@gmail.com> wrote:
Redis will reject all write command (save is write command) if there are problems persisting on disk until rdb save successfully.

--
You received this message because you are subscribed to a topic in the Google Groups "Redis DB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/redis-db/dnP2qMvMp_A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to redis-db+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/CAJWqF5Ck7z22hy%2BZtqXSGfFywr%3DVkU-7qVGQAxPosMDMTy9J9Q%40mail.gmail.com.

Greg Andrews

unread,
May 6, 2021, 3:28:19 PM5/6/21
to Redis DB
The redis-server process is the one experiencing the trouble saving to disk.  It also has logging that you can enable via its config file.  This would be the right place to obtain logs with the specific error that's preventing snapshots from working.
Reply all
Reply to author
Forward
0 new messages