Skip to content
This repository has been archived by the owner on Mar 10, 2019. It is now read-only.

As Sentinel doesn't support AUTH command (as of Redis 4.0.7), passwor… #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aminet
Copy link

@aminet aminet commented Apr 20, 2018

Hi,

Context: 3 nodes under Debian Strech with backports (redis 4.0.7) with sentinel and redundis and an application which need to connect to a Redis server (a master with slaves in replication mode/auto-failover).

With redis configured without requirepass there is no problem.

But with requirepass set up :

./redundis -m mymaster -p ********************************************
2018-04-19 12:32:08 [redundis] INFO Listening on '127.0.0.1:6379'
2018-04-19 12:32:08 [redundis] INFO Monitoring master...
2018-04-19 12:32:08 [redundis] ERROR Failed to update master - Failed to reach sentinel - ERR unknown command 'AUTH'

The "missing" AUTH command on sentinel is known: redis/redis#3279 (comment) , so connecting to sentinel with NOAUTH is actually mandatory.

Sentinel could be fixed with redis/redis#3329

Until it append, this is a little PR as AUTH must only be used for Master (not on Sentinel) and as a result argument --sentinel-password doesn't make send but --master-password does

…d must only be used for Master, as a result argument --sentinel-password doesn't make send but --master-password does
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant