-
Notifications
You must be signed in to change notification settings - Fork 556
Description
Introduction
I've been using grokzen's RedisCluster for the past few years. It was working fine so far. However once I've tried to migrate to 7.2.5 version it stopped working and it seems he can't even form a cluster.
Environment
- docker-redis-cluster version: 7.2.5
- redis-server version: 7.x
- git hash (If applicable):
- CLI command used to build the container: docker run -e "IP=0.0.0.0" -p 7000-7005:7000-7005 grokzen/redis-cluster:7.2.5
Steps to Reproduce
It's enough to run this command: docker run -e "IP=0.0.0.0" -p 7000-7005:7000-7005 grokzen/redis-cluster:7.2.5
Expected Behavior
Fully formed/operable Redis cluster to which I can connect.
Observed Behavior
It seems that the Redis Cluster cannot be formed. Moreover, it looks like the individual Redis nodes are not starting up correctly. To support my theory, I paste the logs of Docker Redis cluster below:
docker run -e "IP=0.0.0.0" -p 7000-7005:7000-7005 grokzen/redis-cluster:7.2.5
-- IP Before trim: '0.0.0.0'
-- IP Before split: '0.0.0.0'
-- IP After trim: '0.0.0.0'
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Using redis-cli to create the cluster
Could not connect to Redis at 0.0.0.0:7000: Connection refused
==> /var/log/supervisor/redis-1.log <==
38:C 29 Mar 2025 11:26:43.381 # WARNING: Changing databases number from 16 to 1 since we are in cluster mode
38:C 29 Mar 2025 11:26:43.381 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
38:C 29 Mar 2025 11:26:43.381 * Redis version=7.2.5, bits=64, commit=00000000, modified=0, pid=38, just started
38:C 29 Mar 2025 11:26:43.381 * Configuration loaded
38:M 29 Mar 2025 11:26:43.381 # Failed to configure LOCALE for invalid locale name.
44:C 29 Mar 2025 11:26:44.396 # WARNING: Changing databases number from 16 to 1 since we are in cluster mode
44:C 29 Mar 2025 11:26:44.396 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
44:C 29 Mar 2025 11:26:44.396 * Redis version=7.2.5, bits=64, commit=00000000, modified=0, pid=44, just started
44:C 29 Mar 2025 11:26:44.396 * Configuration loaded
44:M 29 Mar 2025 11:26:44.396 # Failed to configure LOCALE for invalid locale name.
==> /var/log/supervisor/redis-2.log <==
39:C 29 Mar 2025 11:26:43.382 # WARNING: Changing databases number from 16 to 1 since we are in cluster mode
39:C 29 Mar 2025 11:26:43.382 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
39:C 29 Mar 2025 11:26:43.382 * Redis version=7.2.5, bits=64, commit=00000000, modified=0, pid=39, just started
39:C 29 Mar 2025 11:26:43.382 * Configuration loaded
39:M 29 Mar 2025 11:26:43.382 # Failed to configure LOCALE for invalid locale name.
45:C 29 Mar 2025 11:26:44.397 # WARNING: Changing databases number from 16 to 1 since we are in cluster mode
45:C 29 Mar 2025 11:26:44.397 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
45:C 29 Mar 2025 11:26:44.397 * Redis version=7.2.5, bits=64, commit=00000000, modified=0, pid=45, just started
45:C 29 Mar 2025 11:26:44.397 * Configuration loaded
45:M 29 Mar 2025 11:26:44.397 # Failed to configure LOCALE for invalid locale name.
==> /var/log/supervisor/redis-3.log <==
40:C 29 Mar 2025 11:26:43.383 # WARNING: Changing databases number from 16 to 1 since we are in cluster mode
40:C 29 Mar 2025 11:26:43.383 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
40:C 29 Mar 2025 11:26:43.383 * Redis version=7.2.5, bits=64, commit=00000000, modified=0, pid=40, just started
40:C 29 Mar 2025 11:26:43.383 * Configuration loaded
40:M 29 Mar 2025 11:26:43.383 # Failed to configure LOCALE for invalid locale name.
46:C 29 Mar 2025 11:26:44.398 # WARNING: Changing databases number from 16 to 1 since we are in cluster mode
46:C 29 Mar 2025 11:26:44.398 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
46:C 29 Mar 2025 11:26:44.398 * Redis version=7.2.5, bits=64, commit=00000000, modified=0, pid=46, just started
46:C 29 Mar 2025 11:26:44.398 * Configuration loaded
46:M 29 Mar 2025 11:26:44.398 # Failed to configure LOCALE for invalid locale name.
==> /var/log/supervisor/redis-4.log <==
41:C 29 Mar 2025 11:26:43.384 # WARNING: Changing databases number from 16 to 1 since we are in cluster mode
41:C 29 Mar 2025 11:26:43.384 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
41:C 29 Mar 2025 11:26:43.384 * Redis version=7.2.5, bits=64, commit=00000000, modified=0, pid=41, just started
41:C 29 Mar 2025 11:26:43.384 * Configuration loaded
41:M 29 Mar 2025 11:26:43.384 # Failed to configure LOCALE for invalid locale name.
47:C 29 Mar 2025 11:26:44.397 # WARNING: Changing databases number from 16 to 1 since we are in cluster mode
47:C 29 Mar 2025 11:26:44.397 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
47:C 29 Mar 2025 11:26:44.397 * Redis version=7.2.5, bits=64, commit=00000000, modified=0, pid=47, just started
47:C 29 Mar 2025 11:26:44.397 * Configuration loaded
47:M 29 Mar 2025 11:26:44.397 # Failed to configure LOCALE for invalid locale name.
==> /var/log/supervisor/redis-5.log <==
42:C 29 Mar 2025 11:26:43.384 # WARNING: Changing databases number from 16 to 1 since we are in cluster mode
42:C 29 Mar 2025 11:26:43.385 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
42:C 29 Mar 2025 11:26:43.385 * Redis version=7.2.5, bits=64, commit=00000000, modified=0, pid=42, just started
42:C 29 Mar 2025 11:26:43.385 * Configuration loaded
42:M 29 Mar 2025 11:26:43.385 # Failed to configure LOCALE for invalid locale name.
48:C 29 Mar 2025 11:26:44.399 # WARNING: Changing databases number from 16 to 1 since we are in cluster mode
48:C 29 Mar 2025 11:26:44.399 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
48:C 29 Mar 2025 11:26:44.399 * Redis version=7.2.5, bits=64, commit=00000000, modified=0, pid=48, just started
48:C 29 Mar 2025 11:26:44.399 * Configuration loaded
48:M 29 Mar 2025 11:26:44.399 # Failed to configure LOCALE for invalid locale name.
==> /var/log/supervisor/redis-6.log <==
43:C 29 Mar 2025 11:26:43.386 # WARNING: Changing databases number from 16 to 1 since we are in cluster mode
43:C 29 Mar 2025 11:26:43.386 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
43:C 29 Mar 2025 11:26:43.386 * Redis version=7.2.5, bits=64, commit=00000000, modified=0, pid=43, just started
43:C 29 Mar 2025 11:26:43.386 * Configuration loaded
43:M 29 Mar 2025 11:26:43.386 # Failed to configure LOCALE for invalid locale name.
49:C 29 Mar 2025 11:26:44.400 # WARNING: Changing databases number from 16 to 1 since we are in cluster mode
49:C 29 Mar 2025 11:26:44.400 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
49:C 29 Mar 2025 11:26:44.400 * Redis version=7.2.5, bits=64, commit=00000000, modified=0, pid=49, just started
49:C 29 Mar 2025 11:26:44.400 * Configuration loaded
49:M 29 Mar 2025 11:26:44.400 # Failed to configure LOCALE for invalid locale name.
There are multiple strange issues. The first one which troubles me is:
Using redis-cli to create the cluster
Could not connect to Redis at 0.0.0.0:7000: Connection refused
Which would indicate that the 7000 node is not running at all. I've verified that by going into container itself and checking the open ports - there is no port opened, suggesting that all the nodes are down.
Then according to those logs, it's clear that the nodes are in some kind of a loop, trying to start but somehow it fails.
There is also this LOCALE error. However, I don't believe that it causes Redis nodes to fail.