Describe the bug Error: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.

Expected behavior Redis can restore normal write operations

Comment From: sundb

@CCTV-six can you give the output of INFO ALL. did you check if the rdb or aof can be saved successfully?

Comment From: raminrahimzada

Hi, I have encountered the save 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

This is the server_log fragment:

=== REDIS BUG REPORT START: Cut & paste starting from here ===
Redis version: 5.0.14.1
[14216] 01 Aug 13:19:43.197 # --- EXCEPTION_ACCESS_VIOLATION
[14216] 01 Aug 13:19:43.198 # --- STACK TRACE
redis-server.exe!StackTraceInfo((null):0)(0x14018C230, 0x0014FF60, 0x00000001, 0x0014E140)
redis-server.exe!UnhandledExceptiontHandler((null):0)(0x0014E140, 0x00000001, 0x00000000, 0x4C010000000200)
KERNELBASE.dll!UnhandledExceptionFilter((null):0)(0x0005AF49, 0x7FFCBCEB2BC8, 0x00000000, 0x7FFCBCD70F5A)
ntdll.dll!RtlCopyMemory((null):0)(0x0014E210, 0x00000000, 0x0014E1C8, 0x0014E7B0)
ntdll.dll!_C_specific_handler((null):0)(0x00000000, 0x0014E710, 0x0014EDF0, 0x0014EDF0)
ntdll.dll!_chkstk((null):0)(0x0014EDF0, 0x7FFCBCD50000, 0x7FFCBCDAAF28, 0x7FFCBCEDEBF8)
ntdll.dll!RtlFindCharInUnicodeString((null):0)(0x00000002, 0x7FFC00000104, 0x0014F200, 0x300000208)
ntdll.dll!KiUserExceptionDispatcher((null):0)(0x0014F128, 0xFFFFFFFFFFFFFFFF, 0x00000000, 0x00000000)
redis-server.exe!rdbSaveObjectType(D:\dev\GitHub\redis\src\rdb.c:656)(0x00000001, 0x140048700, 0x1DAE3F3F1AB79ED, 0x0014F200)
redis-server.exe!rdbSaveKeyValuePair(D:\dev\GitHub\redis\src\rdb.c:1071)(0x0014F200, 0x00000000, 0x07800150, 0x7E0FB400)
redis-server.exe!rdbSaveRio(D:\dev\GitHub\redis\src\rdb.c:1219)(0x0051D4A0, 0x00E00000, 0x00000000, 0x00003788)
redis-server.exe!rdbSave(D:\dev\GitHub\redis\src\rdb.c:1321)(0x0000021A, 0x000001FC, 0x00E00000, 0x0000021A)
redis-server.exe!QForkChildInit(D:\dev\GitHub\redis\src\rdb.c:1321)(0x00000240, 0x00000000, 0x00000240, 0x2AAAAAAAAAAAAAAB)
redis-server.exe!main(D:\dev\GitHub\redis\src\rdb.c:1321)(0x00000000, 0x00000000, 0x0043D670, 0x00000000)
redis-server.exe!__scrt_common_main_seh(d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288)(0x00000000, 0x00000000, 0x00000000, 0x00000000)
KERNEL32.DLL!BaseThreadInitThunk(d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288)(0x00000000, 0x00000000, 0x00000000, 0x00000000)
ntdll.dll!RtlUserThreadStart(d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288)(0x00000000, 0x00000000, 0x00000000, 0x00000000)
ntdll.dll!RtlUserThreadStart(d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288)(0x00000000, 0x00000000, 0x00000000, 0x00000000)
[14216] 01 Aug 13:19:43.218 # --- INFO OUTPUT

and this is the info all output:

# Server
redis_version:5.0.14.1
redis_git_sha1:ec77f72d
redis_git_dirty:0
redis_build_id:5627b8177c9289c
redis_mode:standalone
os:Windows
arch_bits:64
multiplexing_api:WinSock_IOCP
atomicvar_api:pthread-mutex
process_id:25156
run_id:19f6d0395927d6fd50b0bec0832285363e95212c
tcp_port:6379
uptime_in_seconds:6666
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:11228581
executable:C:\Program Files\Redis\"c:\program files\redis\redis-server.exe"
config_file:C:\Program Files\Redis\redis.windows-service.conf

# Clients
connected_clients:3
client_recent_max_input_buffer:2
client_recent_max_output_buffer:0
blocked_clients:0

# Memory
used_memory:805618808
used_memory_human:768.00M
used_memory_rss:805558792
used_memory_rss_human:768.00M
used_memory_peak:1746513992
used_memory_peak_human:1.63G
used_memory_peak_perc:46.13%
used_memory_overhead:693813134
used_memory_startup:660408
used_memory_dataset:111805674
used_memory_dataset_perc:13.89%
allocator_allocated:805665296
allocator_active:1103101952
allocator_resident:1119879168
total_system_memory:0
total_system_memory_human:0B
used_memory_lua:37888
used_memory_lua_human:37.00K
used_memory_scripts:0
used_memory_scripts_human:0B
number_of_cached_scripts:0
maxmemory:1073741824
maxmemory_human:1.00G
maxmemory_policy:noeviction
allocator_frag_ratio:1.37
allocator_frag_bytes:297436656
allocator_rss_ratio:1.02
allocator_rss_bytes:16777216
rss_overhead_ratio:0.72
rss_overhead_bytes:-314320376
mem_fragmentation_ratio:1.00
mem_fragmentation_bytes:0
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_clients_slaves:0
mem_clients_normal:117078
mem_aof_buffer:0
mem_allocator:jemalloc-5.2.1-redis
active_defrag_running:0
lazyfree_pending_objects:0

# Persistence
loading:0
rdb_changes_since_last_save:263190
rdb_bgsave_in_progress:0
rdb_last_save_time:1722504573
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:12
rdb_current_bgsave_time_sec:-1
rdb_last_cow_size:0
aof_enabled:0
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:-1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok
aof_last_write_status:ok
aof_last_cow_size:0

# Stats
total_connections_received:43
total_commands_processed:14082277
instantaneous_ops_per_sec:5188
total_net_input_bytes:605542986
total_net_output_bytes:70538216
instantaneous_input_kbps:217.86
instantaneous_output_kbps:25.33
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:0
expired_stale_perc:0.00
expired_time_cap_reached_count:0
evicted_keys:0
keyspace_hits:7
keyspace_misses:21
pubsub_channels:1
pubsub_patterns:0
latest_fork_usec:27442
migrate_cached_sockets:0
slave_expires_tracked_keys:0
active_defrag_hits:0
active_defrag_misses:0
active_defrag_key_hits:0
active_defrag_key_misses:0

# Replication
role:master
connected_slaves:0
master_replid:1891949ff2b5e46135c57908f46496edb50b01dd
master_replid2:0000000000000000000000000000000000000000
master_repl_offset:0
second_repl_offset:-1
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0

# CPU
used_cpu_sys:51.500000
used_cpu_user:45.015625
used_cpu_sys_children:0.000000
used_cpu_user_children:0.000000

# Commandstats
cmdstat_echo:calls=38,usec=27,usec_per_call=0.71
cmdstat_debug:calls=3,usec=337,usec_per_call=112.33
cmdstat_info:calls=118,usec=1646874,usec_per_call=13956.56
cmdstat_config:calls=38,usec=1574,usec_per_call=41.42
cmdstat_set:calls=14081759,usec=70516336,usec_per_call=5.01
cmdstat_subscribe:calls=19,usec=235,usec_per_call=12.37
cmdstat_setbit:calls=10,usec=1330134,usec_per_call=133013.41
cmdstat_get:calls=28,usec=74,usec_per_call=2.64
cmdstat_save:calls=10,usec=25279221,usec_per_call=2527922.00
cmdstat_ping:calls=59,usec=256,usec_per_call=4.34
cmdstat_keys:calls=4,usec=234,usec_per_call=58.50
cmdstat_command:calls=5,usec=25265,usec_per_call=5053.00
cmdstat_client:calls=152,usec=180544,usec_per_call=1187.79
cmdstat_flushall:calls=14,usec=11938089,usec_per_call=852720.62
cmdstat_cluster:calls=19,usec=403,usec_per_call=21.21
cmdstat_dbsize:calls=1,usec=2,usec_per_call=2.00

# Cluster
cluster_enabled:0

# Keyspace
db0:keys=13970448,expires=0,avg_ttl=0

Comment From: sundb

@CCTV-six windows version is not maintained by official, you should get help from the project that you are using.

os:Windows
arch_bits:64
multiplexing_api:WinSock_IOCP