我正在尝试连接区块链资源管理器(在本地运行)与超级网络(在ec2实例上运行)。我正面临一些问题。这些是我遵循的步骤:
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 Explorer正在尝试连接到订货人节点,但他使用的是错误的主机。你在config.json中检查了orderer节点主机吗?
GRPC://2.43.155.20:7050