Connecting to a sentinel Redis 5.0.1 server fails with `NOAUTH Authentication required`
See original GitHub issueExpected behavior
I should be able to connect to a sentinel node of Redis 5.
Actual behavior
I am trying to connect to the sentinel node of a Redis setup in AWS, and I am getting the message:
NOAUTH Authentication required.
Steps to reproduce or test case
Redis version
5.0.1
Redisson version
3.10.4
Redisson configuration
Config config = new Config();
SentinelServersConfig sentinelConfig = config.useSentinelServers();
sentinelConfig.setPassword("**************");
sentinelConfig
.setMasterName("redis-master")
.addSentinelAddress("redis://redis-sentinel");
RedissonClient client = Redisson.create(config);
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Redis (error) NOAUTH Authentication required - Server Fault
Setting the requirepass configuration directive causes the server to require password authentication with the AUTH command before sending other commands.
Read more >Redis raises "NOAUTH Authentication required" error but ...
I got error NOAUTH Authentication required when I connect to Redis server via command: redis-cli and run ping to check if Redis is...
Read more >Redis NOAUTH authentication required - How we fix it?
The error Redis NOAUTH authentication required occurs when the redis has a password set. We can fix it by using the AUTH command...
Read more >How To Install and Secure Redis on Ubuntu 20.04
Configuring a Redis password enables one of its two built-in security features — the auth command, which requires clients to authenticate to ...
Read more >External Redis Sentinel Cluster NOAUTH Authentication ...
Steps to reproduce. Disable the bundled Redis with a cluster (see configuration part), reconfigure. What is the current bug behavior? Error 500 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello, just found this issue due to a regression in the behaviour of my app. In my case a password is set for Redis master/slaves, and no auth is set for sentinels, as I am running Redis 4. I am also using spring boot, and setting up Redis connection factories et al through redisson-spring-boot-starter. Right now there is no way to configure the app to start when Redis 4 is being used and master/slaves are configured with password. I believe the change where a password set is copied for both master/slaves and sentinels should be reverted, and re-introduced after the resolution of #81. The initialization process as it stands right now is only feasible with Redis 5 and the same password shared between all of Redis types.
Please note that the RedisProperties configuration class of spring boot is also used for Jedis and Lettuce initialization, and neither make use of the password as is currently coded in 3.10.6 (i.e. a non authenticated sentinel is assumed).
Will revert to 3.10.4 for now.
Awesome, many thanks! 👍