Record a redis switching accident in the
production environment. The redis switching in the production environment was changed from the original direct connection ip service to Ali’s redis cluster, and there was an error of link failure. The
org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: MOVED 12910 172.16.4.99:6379
reason is that the spring configuration method of the cluster is different from that of the
stand-alone machine. The connection method of the stand-alone machine
spring:
redis:
host: 127.0.0.1
port: 6379
password: 123
database: 0
Cluster configuration
spring:
redis:
cluster:
nodes: safasafdsasdasas.dsad.asf.aliyuncs.com:6379
password: dsafdfaasdf
database: 0
Read More:
- Error reported when springboot connects to redis nested exception is redis.clients.jedis . exceptions.JedisConnectionException
- Springboot integrates redis factory method ‘redisconnectionfactory’ threw exception; nested exception is
- Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: [How to Solve]
- How to Solve Redis Cluster Error: (Error) Moved
- Redis Exception | DENIED Redis is running in protected mode because protected mode is enabled
- [Solved] Error in integrating redis with springboot: unable to connect to redis
- NestedServletException, Handler dispatch failed; nested exception is java.lang.StackOverflowError [Solved]
- [Solved] Request processing failed; nested exception is java.lang.NullPointerException
- POI Export Excel Error: HTTP Status 500 – Request processing failed; nested exception is java.lang.NullPointerException
- [Solved] Redis—-(error) MISCONF Redis is configured to save RDB snapshots
- Request processing failed; nested exception is com.alibaba.fastjson.JSONException: can not cast to J
- [Solved] swagger3 Error: org.springframework.context.ApplicationContextException: Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException
- [Solved] jedis Connect redis Error: connect timed out
- [Solved] Redis Execute redis-cli shutdown Error: (error) ERR Errors trying to SHUTDOWN. Check logs.
- Redis use command access exception: (error) noauth authentication required
- Redis cannot double-click redis-server.exe to start normally
- [Solved] Error occurred during connect to primary: exception 3000301: Connection could not be established
- [Solved] SpringBoot integration with Redis error: java.net.ConnectException: Connection refused: no further information
- [Solved] (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.
- [Solved] Mac starts redis error: there is no specified conf file