question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connecting to a sentinel Redis 5.0.1 server fails with `NOAUTH Authentication required`

See original GitHub issue

Expected 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:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mranestcommented, Apr 18, 2019

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.

0reactions
mranestcommented, Apr 19, 2019

@mranest

Fixed!

Awesome, many thanks! 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found