NOAUTH HELLO must be called with the client already authenticated #2303
Unanswered
beloshapkabs
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Please set the protocol version to RESP2 (using ClientOptions) to avoid HELLO commands with Sentinel. Sentinel had for quite a time a broken HELLO implementation. |
Beta Was this translation helpful? Give feedback.
1 reply
-
So the connection to sentinel works, but the connection to the radis drops :(
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Help! Can't work with radish sentinel.
Error: Caused by: io.lettuce.core.RedisCommandExecutionException: NOAUTH HELLO must be called with the client already authenticated, otherwise the HELLO AUTH option can be used to authenticate the client and select the RESP protocol version at the same time.
im use spring-boot-starter-data-redis:2.6.6
redis server v=6.0.16
`
@bean
public RedisURI redisUri() {
return RedisURI.create("redis-sentinel://pass@host1:port1,host2:port2,host3:port3/1?sentinelMasterId=mymaster");
}
@bean
public RedisClient redisClient(RedisURI redisUri) {
return RedisClient.create(redisUri);
}
@bean
public StatefulRedisConnection<String, String> statefulRedisConnection(RedisClient redisClient) {
return redisClient.connect();
}
@bean
public RedisCommands<String, String> redisCommands(StatefulRedisConnection<String, String> statefulRedisConnection) {
return statefulRedisConnection.sync();
}
`
Where can i set the password?
Beta Was this translation helpful? Give feedback.
All reactions