hyperledger composer-cli在多主机上

问题描述 投票:0回答:1

我正在尝试使用swarm在多个主机上配置hyperledger fabric composer。我有一个对等体在一台PC上实例化,另一个对等体在另一台PC上实例化。他们都加入了频道,可以互相沟通。我正在使用以下指南寻求帮助:

https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f

我已将对端端口和PC的IP放在connection.json文件中,如下所示:

"peers": {
    "peer0.org1.example.com": {
        "url": "grpc://localhost:7051",
        "eventUrl": "grpc://localhost:7053"
    },
    "peer1.org1.example.com": {
        "url": "grpc://10.128.0.12:7051",
        "eventUrl": "grpc://10.128.0.12:7053"
    }

我面临的错误是这样的:

Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: 
Connect Failed
Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: 
Connect Failed

这发生在以下行:

composer network install -c PeerAdmin@fabric-network -a tutorial- 
[email protected]

任何帮助将不胜感激。

hyperledger-fabric hyperledger hyperledger-composer
1个回答
0
投票

对于peer0,尝试放入端口8051和事件8053.Peer1端口9051事件9053。

© www.soinside.com 2019 - 2024. All rights reserved.