zkteco-home / redis-windows

Native port of Redis for Windows,it can be installed as service.
MIT License
1.84k stars 167 forks source link

Redis Service error after reboot #77

Open JackGH9 opened 3 months ago

JackGH9 commented 3 months ago

Hello,

i'm encountering an issue with the redis server startup after reboot of the server. The service is installed on a Windows Server 2019. This is the error reported in the log file and there is no way to make the server start normally. After removing the old rdb file the server starts fine (since a new one is created automatically).

"[003572] 14 Jun 04:26:17.833 RedisWin version=7.2.5, bits=64, commit=19/05/2024, modified=0, pid=3572, just started [003572] 14 Jun 04:26:17.834 Configuration loaded [003572] 14 Jun 04:26:17.842 monotonic clock: X64 clock_gettime [003572] 14 Jun 04:26:17.862 Running mode=standalone, port=6379. [003572] 14 Jun 04:26:17.863 Server initialized [003572] 14 Jun 04:26:17.880 Loading RDB produced by version 7.2.5 [003572] 14 Jun 04:26:17.888 RDB age 211 seconds [003572] 14 Jun 04:26:17.918 RDB memory usage when created 0.00 Mb [003572] 14 Jun 04:26:17.958 # Internal error in RDB reading offset 0, function at rdb.c:2173 -> OOM in dictTryExpand 5 [003572] 14 Jun 04:26:17.959 # Terminating server after rdb file reading failure."

Moreover i did notice that even if with "rdbchecksum yes" set in our config i still see this line in the log when the service restarts (only the service, not the machine)

"RDB file was saved with checksum disabled: no check performed"

Down below is my config:

"save 120 1 60 100 30 1000 port 6379 requirepass '' maxmemory 2gb appendonly no maxmemory-policy noeviction bind 0.0.0.0 rdbchecksum yes protected-mode no dbfilename redis.rdb dir "S:/Program Files/Redis/data" logfile "S:/Program Files/Redis/log/redis.log" maxclients 5000"

Thanks

diantu188 commented 2 months ago

the same problem

zkteco-home commented 3 weeks ago

Thanks for you feedback,i hope i can get your rdb file,send it to my email: my9988@126.com