我正在尝试将区块链资源管理器(在本地运行)与超级账本网络(在ec2实例上运行)连接。我面临一些问题。这些是我遵循的步骤:
2019-02-26T09:40:11.361Z-[31merror [39m:[Remote.js]]:错误:失败 在截止日期URL之前连接:grpc:// localhost:7050 <<<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Explorer >>>>>>>>>>>>>>>>>>>>>>> { 错误:在截止日期URL:grpc:// localhost:7050之前无法连接 在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/Admin@org1.example.com/msp/keystore"
},
"signedCert": {
"path": "$PATH/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts"
}
},
"OrdererMSP": {
"mspid": "OrdererMSP",
"adminPrivateKey": {
"path": "$PATH/crypto-config/ordererOrganizations/example.com/users/Admin@example.com/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"
}
答案 0 :(得分:0)
Hyperledger Explorer尝试连接到订购者节点,但是他使用了错误的主机。您是否在config.json中检查了订购者节点主机?
grpc://2.43.155.20:7050