FG
🗄️ Databases

Sentinels set up with wrong master password not throwing when authentication fails

Freshalmost 10 years ago
Mar 14, 20260 views
Confidence Score86%
86%

Problem

So not sure how to explain this quickly and cleanly but basically this is roughly the case scenario that happened due to some configuration not being (automatically) deployed correctly: 3 redis servers UP ips: 1, 2, 3 port 6379 server 1 is master (protected with password: password) server 2,3 slaves (correctly configured to be slave of server 1) 3 sentinels UP ips: 1,2,3 port 26379 Sentinels are badly configured /etc/sentinel.conf sentinel 1 monitor master 1 (correctly configured to monitor the master with the right password) sentinel 2 monitor master 2 (2 is not a master) <- bad configuration (master ip is that of the slave ip ) sentinel 3 monitor master 3 (3 is not a master) <- bad configuration (master ip is that of the slave ip ) with quorum set to 2 With this set up [code block] The connect event is being raised (Right we can connect to the sentinels) The Ready event is never being raised (Right the sentinels cannot communicate / agree / authenticate to the master ) However no error event being raised.... Hence we don't know from a client side perspective what it is wrong even though the connection to sentinels is established Sending set redis commands also results in no errors being raised and (nothing actually gets set in the cache) Does this mean that we always have to wait for the ready event before actually trying to send a command when connected to sentinels? sorry if its configuration is not properly detailed I will try to do so soo

Error Output

error event being raised....  Hence we don't know from a client side perspective what it is wrong even though the connection to sentinels is established

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026

Solution: Sentinels set up with wrong master password not throwing when authentication fails

Low Risk

Actually there is also another issue. It seems the event ready is not being raised even with what i believe is a valid configuration.... Do you know why this could happen or Is it a bug? Perhaps network level issues? Sentinels unable to communicate correctly ? Why is there no error being raised? EDIT: The PASSWORD was not right hence the connection was never ready however no error is thrown in s

84

Trust Score

1 verification

100% success
  1. 1

    Actually there is also another issue.

    It seems the event ready is not being raised even with what i believe is a valid configuration.... Do you know why this could happen or Is it a bug? Perhaps network level issues? Sentinels unable to communicate correctly ? Why is there no error being raised?

  2. 2

    EDIT: The PASSWORD was not right hence the connection was never ready however no

    EDIT: The PASSWORD was not right hence the connection was never ready however no error is thrown in sentinel mode

Validation

Resolved in redis/ioredis GitHub issue #289. Community reactions: 0 upvotes.

Verification Summary

Worked: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

redisiorediscache