Closed ZhangJing1994 closed 3 years ago
Please configure the Sentinel password. It is supported with Spring Data Redis 2.2 and newer, there's no support for the 1.x development line anymore.
thank you , I configure the Sentinel password in sentinel.conf ,it is no problem with Redis 6.2.3 ,but it has this problem with Redis 5.0.3 the configuration like this
requirepass 97dyL77Cu7
sentinel auth-pass mymaster 97dyL77Cu7
redis: password: "97dyL77Cu7" database: 5 sentinel: master: mymaster nodes: 192.168.183.111:26380,192.168.183.111:26381,192.168.183.111:26382 session: store-type: redis timeout: 1800000 #半小时过期
error.log
2021-09-08 15:48:22.960 [localhost-startStop-1] INFO [redis.clients.jedis.JedisSentinelPool:141] - Trying to find master from available Sentinels... 2021-09-08 15:52:52.244 [localhost-startStop-1] WARN [redis.clients.jedis.JedisSentinelPool:169] - Cannot get master address from sentinel running @ 192.168.183.111:26380. Reason: redis.clients.jedis.exceptions.JedisDataException: NOAUTH Authentication required.. Trying next one. 2021-09-08 15:52:52.246 [localhost-startStop-1] WARN [redis.clients.jedis.JedisSentinelPool:169] - Cannot get master address from sentinel running @ 192.168.183.111:26381. Reason: redis.clients.jedis.exceptions.JedisDataException: NOAUTH Authentication required.. Trying next one. 2021-09-08 15:52:52.248 [localhost-startStop-1] WARN [redis.clients.jedis.JedisSentinelPool:169] - Cannot get master address from sentinel running @ 192.168.183.111:26382. Reason: redis.clients.jedis.exceptions.JedisDataException: NOAUTH Authentication required.. Trying next one.
redis.version redis-5.0.3 springboot.version 1.5.22.RELEASE spring-data-redis-1.8.23.RELEASE