将Hyperledger Fabric Explorer连接到托管在不同实例上的结构网络

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

我正在尝试连接区块链资源管理器(在本地运行)与超级网络(在ec2实例上运行)。我正面临一些问题。这些是我遵循的步骤:

  1. Hyperledger网络正在ec2实例上运行。检查日志并确保端口不被防火墙阻止。
  2. 在资源管理器config.json中将同步类型设置为“host”
  3. 网络是非TLS。所以,在config.json文件中给出“tlsEnable”:false。也使用grpc而不是grpcs。网址如grpc://2.43.155.20:7051,其中2.43.155.20是ec2实例的ip。
  4. 构建之后,当我运行./start.sh时,出现以下错误:

2019-02-26T09:40:11.361Z - [31merror [39m:[Remote.js]:错误:在截止日期之前连接失败:grpc:// localhost:7050 <<<<<<<<<<< <<<<<<<<<<<<<<< Explorer错误>>>>>>>>>>>>>>>>>>>>> {错误:在截止日期之前连接失败:grpc :// localhost:7050 at checkState(blockchain-explorer / node_modules / grpc / src / client.js:720:16)connectFailed:true}收到kill信号,正常关闭关闭连接

任何人都可以让我知道可能导致此问题的原因是什么?

**注意:我在同一个实例上安装了explorer和fabric网络并连接了它们。有效。现在,当我尝试连接到托管我的网络的其他实例时,它不起作用。

编辑

config.json的位置:blockchain-explorer / app / platform / fabric / config.json。

内容:

{ "network-configs": { "network-1": { "version": "1.0", "clients": { "client-1": { "tlsEnable": false, "organization": "Org1MSP", "channel": "mychannel", "credentialStore": { "path": "./tmp/credentialStore_Org1/credential", "cryptoStore": { "path": "./tmp/credentialStore_Org1/crypto" } } } }, "channels": { "mychannel": { "peers": { "peer0.org1.example.com": {} }, "connection": { "timeout": { "peer": { "endorser": "6000", "eventHub": "6000", "eventReg": "6000" } } } } }, "organizations": { "Org1MSP": { "mspid": "Org1MSP", "fullpath": false, "adminPrivateKey": { "path": "$PATH/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/keystore" }, "signedCert": { "path": "$PATH/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/signcerts" } }, "OrdererMSP": { "mspid": "OrdererMSP", "adminPrivateKey": { "path": "$PATH/crypto-config/ordererOrganizations/example.com/users/[email protected]/msp/keystore" } } }, "peers": { "peer0.org1.example.com": { "tlsCACerts": { "path": "$PATH/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt" }, "url": "grpc://2.43.155.20::7051", "eventUrl": "grpc://2.43.155.20::7053", "grpcOptions": { "ssl-target-name-override": "peer0.org1.example.com" } }, "peer1.org1.example.com": { "url": "grpc://2.43.155.20::8051" } }, "orderers": { "orderer.example.com": { "url": "grpc://2.43.155.20::7050" } } }, "network-2": {} }, "configtxgenToolPath": "$SOME_PATH/hyperledger/fabric/common/tools", "license": "Apache-2.0" }

hyperledger-fabric hyperledger
1个回答
0
投票

Hyperledger Explorer正在尝试连接到订货人节点,但他使用的是错误的主机。你在config.json中检查了orderer节点主机吗?

GRPC://2.43.155.20:7050

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