【问题标题】:Hyperledger Fabric: ClientHandshake Error: Client TLS handshake failed with error: EOF remoteaddress=[::1]:7051Hyperledger Fabric:ClientHandshake 错误:客户端 TLS 握手失败并出现错误:EOF remoteaddress=[::1]:7051
【发布时间】: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 错误有关:

  1. Hyperledger Fabric: ServerHandshake TLS handshake bad certificate server=PeerServer AND ServerHandshake TLS handshake EOF
  2. Hyperledger Fabric How to generate peer sans certificates via fabric-ca-client

任何明确说明我应该采取哪些步骤来解决此错误的解决方案将不胜感激。

【问题讨论】:

    标签: ssl hyperledger-fabric


    【解决方案1】:

    此错误是由于所有 peer、orderers、couchdb 和其他容器(如果有)的端口映射不正确造成的。

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

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

    对等1 - 9051:9051 - 19051:19051 对等体2 - 9061:9061 - 19061:19061

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-08-18
      • 2021-06-06
      • 1970-01-01
      • 1970-01-01
      • 2020-10-11
      • 2017-05-06
      • 1970-01-01
      相关资源
      最近更新 更多