551 Star 5.1K Fork 2.1K

yadong.zhang / OneBlog

 / 详情

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

已完成
创建于  
2018-06-19 16:28

问题描述:首次clone,只修改了数据库链接,redis默认配置,可以成功启动,但访问后台会报redis.clients.jedis.exceptions.JedisDataException: ERR Client sent AUTH, but no password is set。经检查发现是jedisPool = new JedisPool(new JedisPoolConfig(), this.host, this.port, this.timeout, this.password, database); 初始化时获取到的this.password的值为空字符串,导致Client sent AUTH

解决方式:若redis没设置连接密码,可以在初始化池前,判断下,若为空字符串,则重设值为null,则可不启用认证模式。

评论 (1)

zmingchun 创建了任务
zmingchun 更新了任务
zmingchun 更新了任务

已修复,感谢反馈。
除了你提到的判断password外,还可以通过去掉password这个配置项解决。
再次感谢 :tw-1f1e8-1f1f3:

yadong.zhang 关闭了任务

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
784199 yadong.zhang 1578932767
Java
1
https://gitee.com/yadong.zhang/DBlog.git
git@gitee.com:yadong.zhang/DBlog.git
yadong.zhang
DBlog
OneBlog

搜索帮助

344bd9b3 5694891 D2dac590 5694891