cluster_manager.py script fails to start regular standalone server instance
Yury-Fridlyand opened this issue · 0 comments
Yury-Fridlyand commented
Describe the bug
Trying to start a standalone server
python3 ../utils/cluster_manager.py start -p 6380
INFO:root:## Executing cluster_manager.py with the following args:
Namespace(host='127.0.0.1', tls=False, auth=None, log='info', logfile=None, action='start', cluster_mode=False, folder_path='/mnt/c/GitHub/babushka/utils/clusters', ports=[6380], shard_count=3, replica_count=1, prefix='redis-cluster', load_module=None)
usage: cluster_manager.py [-h] [-H HOST] [--tls] [--auth AUTH] [-log LOG] [--logfile LOGFILE] {start,stop} ...
cluster_manager.py: error: The number of ports must be equal to the total number of nodes. Number of passed ports == 1, number of nodes == 2
It fails, because by default scripts start a replica for each node. Ok, setting number of replicas to 0:
python3 utils/cluster_manager.py start -p 6380 -r 0
INFO:root:## Executing cluster_manager.py with the following args:
Namespace(host='127.0.0.1', tls=False, auth=None, log='info', logfile=None, action='start', cluster_mode=False, folder_path='/mnt/c/GitHub/babushka/utils/clusters', ports=[6380], shard_count=3, replica_count=0, prefix='redis-cluster', load_module=None)
INFO:root:2024-01-22 17:44:35.364661+00:00 Starting script for cluster /mnt/c/GitHub/babushka/utils/clusters/redis-cluster-2024-01-22T17:44:35Z-2TVLZo
LOG_FILE=/mnt/c/GitHub/babushka/utils/clusters/redis-cluster-2024-01-22T17:44:35Z-2TVLZo/cluster_manager.log
^R
/mnt/c/GitHub/babushka/java/../utils/cluster_manager.py:611: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead
logging.warn(f"Timeout exceeded trying to check if {log_file} contains {message}")
WARNING:root:Timeout exceeded trying to check if /mnt/c/GitHub/babushka/utils/clusters/redis-cluster-2024-01-22T17:44:35Z-2TVLZo/6380/redis.log contains sync: Finished with success
Traceback (most recent call last):
File "/mnt/c/GitHub/babushka/java/../utils/cluster_manager.py", line 1030, in <module>
main()
File "/mnt/c/GitHub/babushka/java/../utils/cluster_manager.py", line 988, in main
create_standalone_replication(
File "/mnt/c/GitHub/babushka/java/../utils/cluster_manager.py", line 473, in create_standalone_replication
wait_for_a_message_in_redis_logs(
File "/mnt/c/GitHub/babushka/java/../utils/cluster_manager.py", line 499, in wait_for_a_message_in_redis_logs
raise Exception(
Exception: During the timeout duration, the server logs associated with port /mnt/c/GitHub/babushka/utils/clusters/redis-cluster-2024-01-22T17:44:35Z-2TVLZo/6380 did not contain the message:sync: Finished with success.See /mnt/c/GitHub/babushka/utils/clusters/redis-cluster-2024-01-22T17:44:35Z-2TVLZo/6380/redis.log for more information
Expected Behavior
Should start a standalone server with one node running
Current Behavior
Script fails
Reproduction Steps
python3 utils/cluster_manager.py start -p 6380 -r 0
Possible Solution
No response
Additional Information/Context
No response
Client version used
N/A
Redis Version
6.0.16
OS
Linux
Language
Python
Language Version
3.10.12
Cluster information
No response
Logs
No response
Other information
No response