tporadowski / redis

Native port of Redis for Windows. Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs. This repository contains unofficial port of Redis to Windows.
http://redis.io
Other
8.88k stars 1.09k forks source link

Why do services always restart #111

Open heylogt opened 3 years ago

heylogt commented 3 years ago

Describe the bug/issue Why do services always restart?

To Reproduce === REDIS BUG REPORT START: Cut & paste starting from here === Redis version: 5.0.10 [8280] 06 Feb 11:35:06.013 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo [8280] 06 Feb 11:35:06.013 # Redis version=5.0.10, bits=64, commit=1c047b68, modified=0, pid=8280, just started [8280] 06 Feb 11:35:06.013 # Configuration loaded [8280] 06 Feb 11:35:06.017 Running mode=standalone, port=9876. [8280] 06 Feb 11:35:06.017 # Server initialized [8280] 06 Feb 11:35:06.018 . Unrecognized RDB AUX field: 'redis-ver' [8280] 06 Feb 11:35:06.018 . Unrecognized RDB AUX field: 'redis-bits' [8280] 06 Feb 11:35:06.018 . Unrecognized RDB AUX field: 'ctime' [8280] 06 Feb 11:35:06.018 . Unrecognized RDB AUX field: 'used-mem' [8280] 06 Feb 11:35:06.018 . Unrecognized RDB AUX field: 'aof-preamble' [8280] 06 Feb 11:35:06.019 DB loaded from disk: 0.001 seconds [8280] 06 Feb 11:35:06.019 * Ready to accept connections

[8280] 06 Feb 11:37:55.644 # Accepting client connection: accept: 应用程序没有调用 WSAStartup,或者 WSAStartup 失败。 [2124] 06 Feb 11:37:57.170 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo [2124] 06 Feb 11:37:57.171 # Redis version=5.0.10, bits=64, commit=1c047b68, modified=0, pid=2124, just started [2124] 06 Feb 11:37:57.171 # Configuration loaded [2124] 06 Feb 11:37:57.174 Running mode=standalone, port=9876. [2124] 06 Feb 11:37:57.175 # Server initialized [2124] 06 Feb 11:37:57.175 DB loaded from disk: 0.000 seconds [2124] 06 Feb 11:37:57.175 * Ready to accept connections

[5160] 07 Feb 09:22:32.114 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo [5160] 07 Feb 09:22:32.124 # Redis version=5.0.10, bits=64, commit=1c047b68, modified=0, pid=5160, just started [5160] 07 Feb 09:22:32.124 # Configuration loaded [5160] 07 Feb 09:22:32.129 Running mode=standalone, port=9876. [5160] 07 Feb 09:22:32.129 # Server initialized [5160] 07 Feb 09:22:32.146 DB loaded from disk: 0.017 seconds [5160] 07 Feb 09:22:32.146 * Ready to accept connections

[4692] 19 Feb 08:41:37.832 # Server initialized [4692] 19 Feb 08:41:37.843 DB loaded from disk: 0.011 seconds [4692] 19 Feb 08:41:37.843 Ready to accept connections [4872] 20 Feb 14:11:45.682 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo [4872] 20 Feb 14:11:45.730 # Redis version=5.0.10, bits=64, commit=1c047b68, modified=0, pid=4872, just started [4872] 20 Feb 14:11:45.730 # Configuration loaded [4872] 20 Feb 14:11:45.735 Running mode=standalone, port=9876. [4872] 20 Feb 14:11:45.735 # Server initialized [4872] 20 Feb 14:11:45.743 DB loaded from disk: 0.007 seconds [4872] 20 Feb 14:11:45.743 Ready to accept connections [5740] 24 Feb 15:36:45.564 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo [5740] 24 Feb 15:36:45.569 # Redis version=5.0.10, bits=64, commit=1c047b68, modified=0, pid=5740, just started [5740] 24 Feb 15:36:45.569 # Configuration loaded [5740] 24 Feb 15:36:45.572 Running mode=standalone, port=9876. [5740] 24 Feb 15:36:45.573 # Server initialized [5740] 24 Feb 15:36:45.591 DB loaded from disk: 0.018 seconds [5740] 24 Feb 15:36:45.591 Ready to accept connections [4980] 24 Feb 17:45:03.724 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo [4980] 24 Feb 17:45:03.739 # Redis version=5.0.10, bits=64, commit=1c047b68, modified=0, pid=4980, just started [4980] 24 Feb 17:45:03.739 # Configuration loaded [4980] 24 Feb 17:45:03.743 Running mode=standalone, port=9876. [4980] 24 Feb 17:45:03.743 # Server initialized [4980] 24 Feb 17:45:03.773 DB loaded from disk: 0.030 seconds [4980] 24 Feb 17:45:03.773 Ready to accept connections [4868] 25 Feb 08:43:40.495 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo [4868] 25 Feb 08:43:40.511 # Redis version=5.0.10, bits=64, commit=1c047b68, modified=0, pid=4868, just started [4868] 25 Feb 08:43:40.512 # Configuration loaded [4868] 25 Feb 08:43:40.528 Running mode=standalone, port=9876. [4868] 25 Feb 08:43:40.528 # Server initialized [4868] 25 Feb 08:43:40.548 DB loaded from disk: 0.019 seconds [4868] 25 Feb 08:43:40.548 Ready to accept connections [5240] 01 Mar 09:29:17.519 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo [5240] 01 Mar 09:29:17.544 # Redis version=5.0.10, bits=64, commit=1c047b68, modified=0, pid=5240, just started [5240] 01 Mar 09:29:17.544 # Configuration loaded [5240] 01 Mar 09:29:17.611 Running mode=standalone, port=9876. [5240] 01 Mar 09:29:17.611 # Server initialized [5240] 01 Mar 09:29:17.646 DB loaded from disk: 0.035 seconds [5240] 01 Mar 09:29:17.646 Ready to accept connections [5144] 04 Mar 11:56:41.809 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo [5144] 04 Mar 11:56:41.829 # Redis version=5.0.10, bits=64, commit=1c047b68, modified=0, pid=5144, just started [5144] 04 Mar 11:56:41.830 # Configuration loaded [5144] 04 Mar 11:56:41.834 Running mode=standalone, port=9876. [5144] 04 Mar 11:56:41.834 # Server initialized [5144] 04 Mar 11:56:41.860 DB loaded from disk: 0.026 seconds [5144] 04 Mar 11:56:41.860 Ready to accept connections

Crash report === REDIS BUG REPORT START: Cut & paste starting from here === Redis version: 5.0.10 [8280] 06 Feb 11:35:06.013 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo [8280] 06 Feb 11:35:06.013 # Redis version=5.0.10, bits=64, commit=1c047b68, modified=0, pid=8280, just started [8280] 06 Feb 11:35:06.013 # Configuration loaded [8280] 06 Feb 11:35:06.017 Running mode=standalone, port=9876. [8280] 06 Feb 11:35:06.017 # Server initialized [8280] 06 Feb 11:35:06.018 . Unrecognized RDB AUX field: 'redis-ver' [8280] 06 Feb 11:35:06.018 . Unrecognized RDB AUX field: 'redis-bits' [8280] 06 Feb 11:35:06.018 . Unrecognized RDB AUX field: 'ctime' [8280] 06 Feb 11:35:06.018 . Unrecognized RDB AUX field: 'used-mem' [8280] 06 Feb 11:35:06.018 . Unrecognized RDB AUX field: 'aof-preamble' [8280] 06 Feb 11:35:06.019 DB loaded from disk: 0.001 seconds [8280] 06 Feb 11:35:06.019 * Ready to accept connections

INFO output

Event Log nothing

Additional context Win10 professional 64bits. Redis (standalonel) server_log.txt

tporadowski commented 3 years ago

It should normally not restart on its own at any time. This could be either forced by the operating system for some reason or requested to shutdown via some command like SHUTDOWN. Perhaps you could increase logging verbosity to find out more?