1 唐僧叨叨的error.log文件中一直有"error": "dial tcp: lookup redis on 127.0.0.11:53: no such host" 报错
2 健康检查报错 dial tcp: lookup redis on 127.0.0.11:53: no such host
2 docker ps查看,发现redis镜像一直在restart
3 docker logs tsdd-redis-1查看redis日志,有报错
日志
{"level":"error","time":"2024-10-01 18:52:23","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"}
{"level":"error","time":"2024-10-01 18:52:26","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"}
{"level":"error","time":"2024-10-01 18:52:29","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"}
{"level":"error","time":"2024-10-01 18:52:32","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"}
{"level":"error","time":"2024-10-01 18:52:35","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"}
{"level":"error","time":"2024-10-01 18:52:38","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"}
{"level":"error","time":"2024-10-01 18:52:41","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"}
{"level":"error","time":"2024-10-01 18:52:44","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"}
{"level":"error","time":"2024-10-01 18:52:47","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"}
{"level":"error","time":"2024-10-01 18:52:50","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"}
{"level":"error","time":"2024-10-01 18:52:53","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"}
{"level":"error","time":"2024-10-01 18:52:56","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"}
docker logs tsdd-redis-1查看redis日志
1:C 01 Oct 2024 11:02:56.483 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 01 Oct 2024 11:02:56.483 * Redis version=7.2.3, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 01 Oct 2024 11:02:56.483 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
1:M 01 Oct 2024 11:02:56.483 * monotonic clock: POSIX clock_gettime
1:M 01 Oct 2024 11:02:56.489 * Running mode=standalone, port=6379.
1:M 01 Oct 2024 11:02:56.489 * Server initialized
1:M 01 Oct 2024 11:02:56.489 # Can't handle RDB format version 12
1:M 01 Oct 2024 11:02:56.489 # Fatal error loading the DB, check server logs. Exiting.
现象
1 唐僧叨叨的error.log文件中一直有"error": "dial tcp: lookup redis on 127.0.0.11:53: no such host" 报错 2 健康检查报错 dial tcp: lookup redis on 127.0.0.11:53: no such host 2 docker ps查看,发现redis镜像一直在restart 3 docker logs tsdd-redis-1查看redis日志,有报错
日志
{"level":"error","time":"2024-10-01 18:52:23","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"} {"level":"error","time":"2024-10-01 18:52:26","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"} {"level":"error","time":"2024-10-01 18:52:29","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"} {"level":"error","time":"2024-10-01 18:52:32","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"} {"level":"error","time":"2024-10-01 18:52:35","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"} {"level":"error","time":"2024-10-01 18:52:38","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"} {"level":"error","time":"2024-10-01 18:52:41","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"} {"level":"error","time":"2024-10-01 18:52:44","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"} {"level":"error","time":"2024-10-01 18:52:47","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"} {"level":"error","time":"2024-10-01 18:52:50","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"} {"level":"error","time":"2024-10-01 18:52:53","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"} {"level":"error","time":"2024-10-01 18:52:56","msg":"【Message】获取已读消息keys错误","error":"dial tcp: lookup redis on 127.0.0.11:53: no such host"}
docker logs tsdd-redis-1查看redis日志
我自己解决了,修改了deploy-compose.yaml中redis的版本
image: redis:latest