【发布时间】:2021-06-24 16:51:07
【问题描述】:
我正在运行 Fabric 测试网络 v2.2。一切都设置成功。我现在正在尝试向网络添加一个额外的组织。
我已经生成了加密材料,并且配置更新 tx.我签署了交易,基本上,一切都正确执行,获得了关于添加对等点的成功消息。
编辑:
虽然似乎正确添加了来自新组织 (org5) 的 peer0,但 org5 日志显示:
2021-05-31 13:13:50.794 UTC [peer.blocksprovider] DeliverBlocks -> WARN 7b0 Could not connect to ordering service: could not dial endpoint 'orderer.example.com:7050': failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host" channel=mychannel
peer0.org1.example.com 同样显示:
2021-05-31 13:13:06.802 UTC [gossip.gossip] func1 -> WARN 409 Deep probe of org5.example.com:11071 failed: context deadline exceeded
2021-05-31 13:13:06.802 UTC [gossip.discovery] func1 -> WARN 40a Could not connect to Endpoint: org5.example.com:11071, InternalEndpoint: org5.example.com:11071, PKI-ID: <nil>, Metadata: : context deadline exceeded
关于如何解决这个问题的任何想法?
日志:
订购者日志:https://gist.github.com/RafaelAPB/bada1278a096e252060e3d117b3c5719
peer0.org1.example.com 日志:https://gist.github.com/RafaelAPB/d5b6af66a62a18d9572399274a0a6aa5
org5 日志:https://gist.github.com/RafaelAPB/cddba91566e66ca45f5494dff43196a0
peer 5 docker-compose: https://gist.github.com/RafaelAPB/b82a64d4122e103f06dd7e4b9bc9023c
【问题讨论】:
-
尝试编辑 /etc/hosts 并添加 '127.0.0.1 org5.example.com' 而不是 'localhost org5.example.com'
-
我认为应该是 peer0.org5.example.com 而不是 org5.example.com,如果你设置 org5.example.com,你可能会得到“tls bad certificate”
-
这很有帮助,@LiXian。但是我仍然无法将 org5 对等点连接到有序和其他对等点 2021-05-31 11:30:27.751 UTC [gossip.gossip] func1 -> WARN 159 对 org5.example.com:11071 的深度探测失败:超出上下文截止日期2021-05-31 11:30:27.751 UTC [gossip.discovery] func1 -> WARN 15a 无法连接到端点:org5.example.com:11071,InternalEndpoint:org5.example.com:11071,PKI-ID:,元数据::超出上下文截止日期
-
你能给我看看你的 peer0.org5.example.com yaml 文件吗?我猜那是因为你的 env 或 docker 网络不正确。
标签: docker networking hyperledger-fabric hyperledger