【发布时间】:2023-03-23 04:25:01
【问题描述】:
我正在尝试使用 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 错误有关:
- Hyperledger Fabric: ServerHandshake TLS handshake bad certificate server=PeerServer AND ServerHandshake TLS handshake EOF
- Hyperledger Fabric How to generate peer sans certificates via fabric-ca-client
任何明确说明我应该采取哪些步骤来解决此错误的解决方案将不胜感激。
【问题讨论】: