Run for a long time the environment unexpectedly can not log in, view the error of the newspaper, and Redis auth relationship, because the session of multiple servers exist Redis, Redis Connection failed to save the user's login sessions. Fortunately, this problem occurred in the test environment and did not cause too much problem.
After the investigation, found that Redis service started, but the startup is not normal, after the query found Redis startup is not in accordance with the development of the configuration file to start, is the default. The/redis-server method started, causing Redis to not set the password. However, when the background program connects to the Redis server, the password is set to cause this error.
So when you start the Redis server, the specified profile starts:./redis-service/etc/redis/redis.conf &
Redis.clients.jedis.exceptions.JedisDataException:ERR Client sent AUTH, but no password is set at Redis.clients.jedis.Pr Otocol.processerror (protocol.java:104) at redis.clients.jedis.Protocol.process (protocol.java:122) at Redis.clients.jedis.Protocol.read (protocol.java:191) at Redis.clients.jedis.Connection.getStatusCodeReply ( connection.java:175) at Redis.clients.jedis.BinaryJedis.auth (binaryjedis.java:2132) at Redis.clients.jedis.JedisFactory.makeObject (jedisfactory.java:67) at Org.apache.commons.pool2.impl.GenericObjectPool.create (genericobjectpool.java:819) at Org.apache.commons.pool2.impl.GenericObjectPool.borrowObject (genericobjectpool.java:429) at Org.apache.commons.pool2.impl.GenericObjectPool.borrowObject (genericobjectpool.java:360) at Redis.clients.util.Pool.getResource (pool.java:40) at Org.springframework.data.redis.connection.jedis.JedisConnectionFactory.fetchJedisConnector ( JEDISCONNECTIONFACTORY.JAVA:90) at Org.springframework.data.redis.connection.jedis.JedisCoNnectionfactory.getconnection (jedisconnectionfactory.java:143) at Org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection ( jedisconnectionfactory.java:41) at Org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection ( redisconnectionutils.java:85) at Org.springframework.data.redis.core.RedisConnectionUtils.getConnection ( redisconnectionutils.java:55) at Org.springframework.data.redis.core.RedisTemplate.execute (Redistemplate.java : 169) at Org.springframework.data.redis.core.RedisTemplate.execute (redistemplate.java:149) at Org.springframework.data.redis.core.AbstractOperations.execute (abstractoperations.java:84) at Org.springframework.data.redis.core.DefaultHashOperations.putAll (defaulthashoperations.java:127) at Com.tj.tv.common.session.SessionService.setSessionDevUser (sessionservice.java:138) at Com.tj.tv.user.service.impl.DevTvUserServiceImpl.login (devtvuserserviceimpl.java:95) at SUN.REFLECT.NATIVEMETHODACCESSORIMPL.INVOKE0 (Native MethOD) at Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:57) at Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43) at Java.lang.reflect.Method.invoke (method.java:606) at Org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection (aoputils.java:317) at Org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint (Reflectivemethodinvocation.java : 190) at Org.springframework.aop.framework.ReflectiveMethodInvocation.proceed (Reflectivemethodinvocation.java : 157) at Org.springframework.transaction.interceptor.transactioninterceptor$1.proceedwithinvocation ( TRANSACTIONINTERCEPTOR.JAVA:98) at Org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction ( transactionaspectsupport.java:262) at Org.springframework.transaction.interceptor.TransactionInterceptor.invoke ( transactioninterceptor.java:95) at Org.springframework.aop.framework.ReflectiveMethodInvocation.proceed (Reflectivemethodinvocation.java:179) at Org.springframework.aop.framework.JdkDynamicAopProxy.invoke ( jdkdynamicaopproxy.java:207 com.sun.proxy. $Proxy 76.login (Unknown Source) at Com.tj.tv.user.controller.DevTvUserController.DevUserLogin (devtvusercontroller.java:42) at Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) at Sun.reflect.NativeMethodAccessorImpl.invoke ( nativemethodaccessorimpl.java:57) at Sun.reflect.DelegatingMethodAccessorImpl.invoke ( delegatingmethodaccessorimpl.java:43) at Java.lang.reflect.Method.invoke (method.java:606) at Org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod ( handlermethodinvoker.java:175) at Org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod ( annotationmethodhandleradapter.java:446) at Org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle ( annotationmethodhandleradapter.java:434) at Org.springframework.web.servlet.DispatcherSerVlet.dodispatch (dispatcherservlet.java:938) at Org.springframework.web.servlet.DispatcherServlet.doService ( dispatcherservlet.java:870) at Org.springframework.web.servlet.FrameworkServlet.processRequest (
frameworkservlet.java:961) at Org.springframework.web.servlet.FrameworkServlet.doGet (frameworkservlet.java:852) At Javax.servlet.http.HttpServlet.service (httpservlet.java:624) at Org.springframework.web.servlet.FrameworkServlet.service (frameworkservlet.java:837) at Javax.servlet.http.HttpServlet.service (httpservlet.java:731) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:303) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:208) at Org.apache.tomcat.websocket.server.WsFilter.doFilter (wsfilter.java:52) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:241) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:208) at Org.jeecgframework.core.aop.GZipFilter.doFilter (gzipfilter.java:88) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:241) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:208) at Com.alibaba.druid.support.http.WebStatFilter.doFilter (webstatfilter.java:140) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:241) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:208) at Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (characterencodingfilter.java:88) at Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:107) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:241) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:208) at Org.springframework.orm.hibernate4.support.OpenSessioninviewfilter.dofilterinternal (opensessioninviewfilter.java:150) at Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:107) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:241) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:208) at Org.apache.catalina.core.StandardWrapperValve.invoke (standardwrappervalve.java:220) at Org.apache.catalina.core.StandardContextValve.invoke (standardcontextvalve.java:122) at Org.apache.catalina.core.StandardHostValve.invoke (standardhostvalve.java:170) at Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:103) at Org.apache.catalina.valves.AccessLogValve.invoke (accesslogvalve.java:957) at Org.apache.catalina.core.StandardEngineValve.invoke (standardenginevalve.java:116) at Org.apache.catalina.connector.CoyoteAdapter.service (coyoteadapter.java:423) at Org.apache.coyote.http11.AbstractHttp11Processor.Process (abstracthttp11processor.java:1079) at org.apache.coyote.abstractprotocol$ Abstractconnectionhandler.process (abstractprotocol.java:620) at org.apache.tomcat.util.net.jioendpoint$ Socketprocessor.run (jioendpoint.java:316) at Java.util.concurrent.ThreadPoolExecutor.runWorker (
threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (ThreadPoolExecutor.java:615) At Org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run (taskthread.java:61) at Java.lang.Thread.run ( thread.java:744)