我正在尝试使用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-
network@0.0.1.bna
任何帮助将不胜感激。
答案 0 :(得分:0)
对于peer0,请尝试将端口8051和事件8053放入。Peer1端口9051的事件9053。