Camilo
05/16/2023, 3:07 AM$ sudo /usr/local/bin/fleet serve --config /etc/fleetdm/fleetdm.yml
Using config file: /etc/fleetdm/fleetdm.yml
Failed to start: initialize Redis: refresh cluster: redisc: all nodes failed
ERR unknown command 'CLUSTER', with args beginning with: 'SLOTS'
CLUSTER SLOTS
has been deprecated in 7.0. I've found this open issue but without any updates for a while.mysql:
address: mysql.server.domain:17315
database: fleetdm
username: username
password: mysql_secret
redis:
address: redis.server.domain:17316
username: default
password: redis_secret
use_tls: true
cluster_follow_redirections: true
connect_retry_attempts: 3
server:
address: 0.0.0.0:8080
cert: /etc/fleetdm/server.crt
key: /etc/fleetdm/server.key
auth:
jwt_key: key_secret
filesystem:
status_log_file: /var/log/fleetdm/status.log
result_log_file: /var/log/fleetdm/result.log
enable_log_rotation: true
logging:
json: true
use_tls: false
, then just using address
and username
in the config, but this time the ouput doesn't really show what's is wrong. See below. So, again I suspect it might be related to the redis version
Using config file: /etc/fleetdm/fleetdm.yml
Failed to start: initialize Redis: refresh cluster: redisc: all nodes failed
EOF
Kathy Satterlee
05/16/2023, 4:14 PMredis-cli
and run INFO server
and get us the output (mostly interested in redis_mode
, it might not be a Redis Cluster), and if it does say cluster
, then also run CLUSTER INFO
which will give health information about the cluster (it may be in a failed mode).Camilo
05/16/2023, 8:35 PMredis_mode:standalone
Full output:
INFO server
# Server
redis_version:7.0.11
redis_git_sha1:f9a42950
redis_git_dirty:0
redis_build_id:49adc3127143cf45
redis_mode:standalone
os:Linux XXXXXXX
arch_bits:64
monotonic_clock:POSIX clock_gettime
multiplexing_api:epoll
atomicvar_api:c11-builtin
gcc_version:12.2.1
tcp_port:17315
server_time_usec:1684269072250033
uptime_in_seconds:265
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:6547472
executable:/usr/bin/redis-server
config_file:/etc/redis.conf
io_threads_active:0
Kathy Satterlee
05/16/2023, 8:59 PMcluster_follow_redirections: true
connect_retry_attempts: 3
Camilo
05/16/2023, 9:05 PMUsing config file: /etc/fleetdm/fleetdm.yml
Failed to start: initialize Redis: refresh cluster: redisc: all nodes failed
ERR unknown command 'CLUSTER', with args beginning with: 'SLOTS'
Redis config:
redis:
address: <http://redis-1234.com:17316|redis-1234.com:17316>
username: default
password: redis_secret
use_tls: true
use_tls: true
the error changes to just
Using config file: /etc/fleetdm/fleetdm.yml
Failed to start: initialize Redis: refresh cluster: redisc: all nodes failed
EOF