当前位置:   article > 正文

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解决办法

报错信息:

  1. redis.clients.jedis.exceptions.JedisDataException: ERR Client sent AUTH, but no password is set
  2. at redis.clients.jedis.Protocol.processError(Protocol.java:127)
  3. at redis.clients.jedis.Protocol.process(Protocol.java:161)
  4. at redis.clients.jedis.Protocol.read(Protocol.java:215)
  5. at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340)
  6. at redis.clients.jedis.Connection.getStatusCodeReply(Connection.java:239)
  7. at redis.clients.jedis.BinaryJedis.auth(BinaryJedis.java:2139)
  8. at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:108)
  9. at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:889)
  10. at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:433)
  11. at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:362)
  12. at redis.clients.util.Pool.getResource(Pool.java:49)
  13. at redis.clients.jedis.JedisPool.getResource(JedisPool.java:226)
  14. at com.zyd.shiro.framework.redis.CustomRedisManager.get(CustomRedisManager.java:47)
  15. at org.crazycake.shiro.RedisSessionDAO.doReadSession(RedisSessionDAO.java:89)
  16. at org.apache.shiro.session.mgt.eis.AbstractSessionDAO.readSession(AbstractSessionDAO.java:168)
  17. at org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSessionFromDataSource(DefaultSessionManager.java:236)
  18. at org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSession(DefaultSessionManager.java:222)
  19. at org.apache.shiro.session.mgt.AbstractValidatingSessionManager.doGetSession(AbstractValidatingSessionManager.java:118)
  20. at org.apache.shiro.session.mgt.AbstractNativeSessionManager.lookupSession(AbstractNativeSessionManager.java:148)
  21. at org.apache.shiro.session.mgt.AbstractNativeSessionManager.getSession(AbstractNativeSessionManager.java:140)
  22. at org.apache.shiro.mgt.SessionsSecurityManager.getSession(SessionsSecurityManager.java:156)
  23. at org.apache.shiro.mgt.DefaultSecurityManager.resolveContextSession(DefaultSecurityManager.java:460)
  24. at org.apache.shiro.mgt.DefaultSecurityManager.resolveSession(DefaultSecurityManager.java:446)
  25. at org.apache.shiro.mgt.DefaultSecurityManager.createSubject(DefaultSecurityManager.java:342)
  26. at org.apache.shiro.subject.Subject$Builder.buildSubject(Subject.java:845)
  27. at org.apache.shiro.web.subject.WebSubject$Builder.buildWebSubject(WebSubject.java:148)
  28. at org.apache.shiro.web.servlet.AbstractShiroFilter.createSubject(AbstractShiroFilter.java:292)
  29. at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:359)
  30. at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
  31. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  32. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  33. at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)
  34. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  35. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  36. at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
  37. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  38. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  39. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  40. at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)
  41. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  42. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  43. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  44. at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
  45. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  46. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  47. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  48. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
  49. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  50. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  51. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  52. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
  53. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  54. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496)
  55. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
  56. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
  57. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
  58. at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:677)
  59. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
  60. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
  61. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
  62. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
  63. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
  64. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  65. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  66. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  67. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  68. at java.lang.Thread.run(Thread.java:748)

问题分析:

没有设置redis密码

解决办法:

找到redis安装路径

我的路径 C:\Program Files\Redis

打开redis-cil.exe应用程序

查看是否设置了密码,验证密码

auth redis123456

报错以下信息说明没设置密码

无密码时配置密码

config set requirepass redis123456

显示ok,redis密码配置成功

 

有密码时更改密码

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/554917
推荐阅读
相关标签
  

闽ICP备14008679号