Hyperledger结构:ClientHandshake错误:客户端TLS握手失败,错误为:EOF remoteadd



我正在尝试使用Hyperledger Fabric教程在提供的Fabric示例中使用测试网络。我已经成功安装了所有先决条件并启动了网络,但当我尝试创建通道时,它会抛出ClientHandshake错误。

教程的相关页面:https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html
Github链接,您可以在其中查看测试网络:https://github.com/hyperledger/fabric-samples/tree/main/test-network

我使用的是macOS Big Sur〔2020 MacBook Pro〕,并遵循了教程中的macOS说明。

错误消息:

...
Channel 'mychannel' created
Joining org1 peer to the channel...
Using organization 1
+ peer channel join -b ./channel-artifacts/mychannel.block
+ res=1
+ peer channel join -b ./channel-artifacts/mychannel.block
+ res=1
+ peer channel join -b ./channel-artifacts/mychannel.block
+ res=1
+ peer channel join -b ./channel-artifacts/mychannel.block
+ res=1
2021-06-10 19:38:34.968 IST [comm.tls] ClientHandshake -> ERRO 001 Client TLS handshake failed after 1.178599ms with error: EOF remoteaddress=[::1]:7051
2021-06-10 19:38:35.972 IST [comm.tls] ClientHandshake -> ERRO 002 Client TLS handshake failed after 1.881928ms with error: EOF remoteaddress=[::1]:7051
2021-06-10 19:38:37.503 IST [comm.tls] ClientHandshake -> ERRO 003 Client TLS handshake failed after 2.60866ms with error: EOF remoteaddress=[::1]:7051
Error: error getting endorser client for channel: endorser client failed to connect to localhost:7051: failed to create new connection: context deadline exceeded
After 5 attempts, peer0.org1 has failed to join channel 'mychannel' 

这与TLS证书有关吗?我遇到了两个可能相关的问题,除了它们是关于ServerHandshake错误:

  1. Hyperledger结构:ServerHandshake TLS握手错误证书服务器=对等服务器AND ServerHandshakeTLS握手EOF
  2. Hyperledger Fabric如何通过Fabric ca客户端生成无证书对等

任何能清楚解释我应该采取哪些步骤来解决这个错误的解决方案都将不胜感激。

发生此错误的原因是所有对等方、订购方、couchdb和其他容器(如果有(的端口映射不正确。

始终使用正确的端口映射。

示例-订货人-7050:7050-17050:17050

同行1-9051:9051-19051:19051同行2-9061:9061-19061:19061

最新更新