JedisDataException: ERR Client sent AUTH, but no password is set

Posted 醇氧

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JedisDataException: ERR Client sent AUTH, but no password is set相关的知识,希望对你有一定的参考价值。

使用Redis 时候报错了,提示信息为:

threw exception [Request processing failed; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool] with root cause
redis.clients.jedis.exceptions.JedisDataException: ERR Client sent AUTH, but no password is set



怎么破?

问题已经很明确的了:

    jedisDataException: ERR Client sent AUTH, but no password is set

    意思就是redis服务器没有设置密码,但客户端向其发送了AUTH请求

  所以我在配置文件里面去掉了密码结果还是不行。

#redis组配置信息
redis.name=redis
redis.ip=192.168.0.1
redis.poolConf.maxActive=50
redis.poolConf.maxIdle=10
redis.poolConf.maxWait=5000
redis.poolConf.minIdle=1
redis.password=

之后把整个配置(redis.password=)都去掉了。重启项目然后就成功了。


以上是关于JedisDataException: ERR Client sent AUTH, but no password is set的主要内容,如果未能解决你的问题,请参考以下文章

redis.clients.jedis.exceptions.JedisDataException: ERR unknown command 'PSETEX'

Exception in thread “main“ redis.clients.jedis.exceptions.JedisDataException: ERR no such key

Redis错误:jedis.exceptions.JedisDataException: ERR Client sent AUTH, but no password is set

redis.clients.jedis.exceptions.JedisDataException: ERR Client sent AUTH, but no password is set

redis.clients.jedis.exceptions.JedisDataException: ERR Client sent AUTH, but no password is set

redis.clients.jedis.exceptions.JedisDataException: ERR Client sent AUTH, but no password is set