Hyperledger fabric 无法将peer0.org2加入频道-背书人客户端无法连接到peer0.org2.example.com:连接被拒绝
我正在尝试建立一个网络,有两个组织,每个组织有一个对等点,并尝试将它们加入到一个公共通道中。所有cryptogen工件均按预期生成。请在下面查找yaml文件 crypto-config.yaml configtx.yaml docker-compose.yaml 所有docker容器都已成功创建Hyperledger fabric 无法将peer0.org2加入频道-背书人客户端无法连接到peer0.org2.example.com:连接被拒绝,hyperledger-fabric,hyperledger,Hyperledger Fabric,Hyperledger,我正在尝试建立一个网络,有两个组织,每个组织有一个对等点,并尝试将它们加入到一个公共通道中。所有cryptogen工件均按预期生成。请在下面查找yaml文件 crypto-config.yaml configtx.yaml docker-compose.yaml 所有docker容器都已成功创建 CONTAINER ID IMAGE COMMAND CREATED STATUS
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
614685a858c0 hyperledger/fabric-tools "/bin/bash" 18 hours ago Up 18 hours cli
cead74ff3acf hyperledger/fabric-peer "peer node start" 18 hours ago Up 18 hours 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0.org1.example.com
abd07c877081 hyperledger/fabric-peer "peer node start" 18 hours ago Up 18 hours 0.0.0.0:10201->10201/tcp peer0.org2.example.com
70ac639b1b7a hyperledger/fabric-couchdb "tini -- /docker-ent…" 18 hours ago Up 18 hours 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp couchdb
e8d04f5cac45 hyperledger/fabric-orderer "orderer" 18 hours ago Up 18 hours 0.0.0.0:7050->7050/tcp orderer.example.com
3fafc99fe92d hyperledger/fabric-ca "sh -c 'fabric-ca-se…" 18 hours ago Up 18 hours 0.0.0.0:7054->7054/tcp ca.org1.example.com
c9b830eecf8a hyperledger/fabric-ca "sh -c 'fabric-ca-se…" 18 hours ago Up 18 hours 7054/tcp, 0.0.0.0:8054->8054/tcp ca.org2.example.com
当我进入peer0.org1.example.com或cli容器并运行“peer channel..”命令时,它工作正常,没有问题
root@cead74ff3acf:/opt/gopath/src/github.com/hyperledger/fabric# peer channel list
2020-03-04 07:55:39.000 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
Channels peers has joined:
但是当我进入peer0.org2.example.com容器并运行它们时,我得到了以下错误:
root@abd07c877081:/opt/gopath/src/github.com/hyperledger/fabric# peer channel list
Error: error getting endorser client for channel: endorser client failed to connect to peer0.org2.example.com:10201: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 172.23.0.6:10201: connect: connection refused"
peer0.org2日志中显示的一些警告如下:
[gossip.gossip] NewGossipService -> WARN 017 External endpoint is empty, peer will not be accessible outside of its organization
[gossip.comm] sendToEndpoint -> WARN 103 Failed obtaining connection for , PKIid:1fff29d8bd80fe1df86bbd7b23f14059a0ad1ac10fd0e790b133d6f84433087d reason: context deadline exceeded
[comm.grpc.server] 1 -> INFO 122 unary call completed grpc.service=gossip.Gossip grpc.method=Ping grpc.request_deadline=2020-03-03T14:50:08.415Z grpc.peer_address=127.0.0.1:40334 grpc.code=OK grpc.call_duration=160.19µs
[gossip.comm] func1 -> WARN 123 127.0.0.1:7051, PKIid:1fff29d8bd80fe1df86bbd7b23f14059a0ad1ac10fd0e790b133d6f84433087d isn't responsive: EOF
您能确定问题吗?您的对等机上缺少CORE\u PEER\u ListendAddress,让它在端口10201上实际侦听
自定义端口时,需要确保覆盖所有相关配置,请参阅:
root@cead74ff3acf:/opt/gopath/src/github.com/hyperledger/fabric# peer channel list
2020-03-04 07:55:39.000 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
Channels peers has joined:
root@abd07c877081:/opt/gopath/src/github.com/hyperledger/fabric# peer channel list
Error: error getting endorser client for channel: endorser client failed to connect to peer0.org2.example.com:10201: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 172.23.0.6:10201: connect: connection refused"
[gossip.gossip] NewGossipService -> WARN 017 External endpoint is empty, peer will not be accessible outside of its organization
[gossip.comm] sendToEndpoint -> WARN 103 Failed obtaining connection for , PKIid:1fff29d8bd80fe1df86bbd7b23f14059a0ad1ac10fd0e790b133d6f84433087d reason: context deadline exceeded
[comm.grpc.server] 1 -> INFO 122 unary call completed grpc.service=gossip.Gossip grpc.method=Ping grpc.request_deadline=2020-03-03T14:50:08.415Z grpc.peer_address=127.0.0.1:40334 grpc.code=OK grpc.call_duration=160.19µs
[gossip.comm] func1 -> WARN 123 127.0.0.1:7051, PKIid:1fff29d8bd80fe1df86bbd7b23f14059a0ad1ac10fd0e790b133d6f84433087d isn't responsive: EOF