我启动时使用的是etcdv3单服务器,etcdctl get / put没有问题,但服务器控制台有一些错误日志以及如何修复它
2017-06-19 09:26:42.225787 I | etcdserver/api/v3rpc: grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: dial tcp [::]:2379: connect: cannot assign requested address"; Reconnecting to {[::]:2379 <nil>}
2017-06-19 09:27:01.415397 I | etcdserver/api/v3rpc: grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: dial tcp [::]:2379: connect: cannot assign requested address"; Reconnecting to {[::]:2379 <nil>}
2017-06-19 09:27:08.209185 I | etcdserver/api/v3rpc: grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: dial tcp [::]:2379: connect: cannot assign requested address"; Reconnecting to {[::]:2379 <nil>}
2017-06-19 09:27:22.992708 I | etcdserver/api/v3rpc: grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: dial tcp [::]:2379: connect: cannot assign requested address"; Reconnecting to {[::]:2379 <nil>}
2017-06-19 09:27:40.156845 I | etcdserver/api/v3rpc: grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: dial tcp [::]:2379: connect: cannot assign requested address"; Reconnecting to {[::]:2379 <nil>}
服务器启动脚本为:
docker run \
--rm \
-p 2379:2379 \
-p 2380:2380 \
--name etcd-v3 \
--volume=/data/docker/etcd-sigle-data:/etcd-data \
quay.io/coreos/etcd:v3.2.0 \
/usr/local/bin/etcd \
--name my-etcd \
--data-dir /etcd-data \
--listen-client-urls http://0.0.0.0:2379 \
--advertise-client-urls http://xxx.xxx.xxx.xxx:2379
--listen-peer-urls http://0.0.0.0:2380 \
--initial-advertise-peer-urls http://xxx.xxx.xxx.xxx:2380 \
--initial-cluster my-etcd=http://xxx.xxx.xxx.xxx:2380 \
--initial-cluster-token etcd-cluster-token \
--initial-cluster-state new \
--auto-compaction-retention 1
发布于 2017-07-06 11:20:55
看起来问题与通过ipv6连接有关。尝试通过在ipv4中指定正确的IP地址而不是0.0.0.0
通配符来切换到--listen-client-urls
。
https://stackoverflow.com/questions/44627016
复制相似问题