milvus-standalone启动失败unhealthy

报错内容

报错一

显示milvus-standalone显示unhealthy

bash 复制代码
# docker-compose ps
      Name                     Command                   State                             Ports
----------------------------------------------------------------------------------------------------------------------
milvus-etcd         etcd -advertise-client-url ...   Up (healthy)     2379/tcp, 2380/tcp
milvus-minio        /usr/bin/docker-entrypoint ...   Up (healthy)     0.0.0.0:9000->9000/tcp, 0.0.0.0:9001->9001/tcp
milvus-standalone   /tini -- milvus run standalone   Up (unhealthy)   0.0.0.0:19530->19530/tcp, 0.0.0.0:9091->9091/tcp

查看日志疑似etcd网络联不通

bash 复制代码
[2024/03/18 01:35:03.562 +00:00] [DEBUG] [sessionutil/session_util.go:256] ["Session try to connect to etcd"]
{"level":"warn","ts":"2024-03-18T01:35:08.429Z","logger":"etcd-client","caller":"v3@v3.5.5/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0x40002e2000/etcd:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = \"transport: Error while dialing: dial tcp 172.22.0.3:2379: connect: no routeto host\""}
[2024/03/18 01:35:24.430 +00:00] [ERROR] [sessionutil/session_util.go:265] ["retry func failed"] ["retry time"=52] [error="context deadline exceeded"] [stack="github.com/milvus-io/milvus/internal/util/sessionutil.NewSessionWithEtcd\n\t/go/src/github.com/milvus-io/milvus/internal/util/sessionutil/session_util.go:265\ngithub.com/milvus-io/milvus/internal/util/sessionutil.NewSession\n\t/go/src/github.com/milvus-io/milvus/internal/util/sessionutil/session_util.go:217\ngithub.com/milvus-io/milvus/internal/distributed/rootcoord/client.NewClient\n\t/go/src/github.com/milvus-io/milvus/internal/distributed/rootcoord/client/client.go:57\ngithub.com/milvus-io/milvus/internal/distributed/proxy.(*Server).init\n\t/go/src/github.com/milvus-io/milvus/internal/distributed/proxy/service.go:566\ngithub.com/milvus-io/milvus/internal/distributed/proxy.(*Server).Run\n\t/go/src/github.com/milvus-io/milvus/internal/distributed/proxy/service.go:400\ngithub.com/milvus-io/milvus/cmd/components.(*Proxy).Run\n\t/go/src/github.com/milvus-io/milvus/cmd/components/proxy.go:54\ngithub.com/milvus-io/milvus/cmd/roles.runComponent[...].func1\n\t/go/src/github.com/milvus-io/milvus/cmd/roles/roles.go:115"]

报错二

bash 复制代码
# docker-compose up -d
Creating network "milvus" with the default driver
ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule:  (iptables failed: iptables --wait -t nat -I DOCKER -i br-e08d28765425 -j RETURN: iptables: No chain/target/match by that name.
 (exit status 1))

报错原因

防火墙阻止网络连通

解决方案

bash 复制代码
sudo systemctl stop firewalld
sudo systemctl stop docker
sudo iptables -F
sudo systemctl start docker

尝试过开放端口,无效

相关推荐
意疏12 小时前
【Linux 篇】Docker 的容器之海与镜像之岛:于 Linux 系统内探索容器化的奇妙航行
linux·docker
墨鸦_Cormorant12 小时前
使用docker快速部署Nginx、Redis、MySQL、Tomcat以及制作镜像
redis·nginx·docker
Code_Artist12 小时前
Docker镜像加速解决方案:配置HTTP代理,让Docker学会科学上网!
docker·云原生·容器
wanmei00214 小时前
Dockerfile复制目录进入镜像里
docker
inter_peng14 小时前
[Docker-显示所有容器IP] 显示docker-compose.yml中所有容器IP的方法
tcp/ip·docker·eureka
Linux运维日记14 小时前
k8s1.31版本最新版本集群使用容器镜像仓库Harbor
linux·docker·云原生·容器·kubernetes
一名路过的小码农16 小时前
ceph 18.2.4二次开发,docker镜像制作
ceph·docker·容器
xiangshangdemayi18 小时前
Windows环境GeoServer打包Docker极速入门
windows·docker·容器·geoserver·打包·数据挂载
程序员JerrySUN19 小时前
熟悉的 Docker,陌生的 Podman
linux·docker·容器·系统架构·podman
gobeyye20 小时前
Docker 用法详解
运维·docker·容器