我正在为在某些不同机器(比如 IP 12.34.56.78)上运行的结构网络设置资源管理器,当我尝试从资源管理器启动脚本 start.sh 时,我遇到了这个错误。在单个实例上成功连接(单个机器上的资源管理器和结构),但在尝试在不同机器上连接时遇到错误。
这是我要更改参数的 config.json 文件。
{
"network-configs": {
"network-1": {
"version": "1.0",
"clients": {
"client-1": {
"tlsEnable": true,
"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": "/home/dinesh/HyperExplorer/fabric-samples/first-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore"
},
"signedCert": {
"path": "/home/dinesh/HyperExplorer/fabric-samples/first-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts"
}
},
"Org2MSP": {
"mspid": "Org2MSP",
"adminPrivateKey": {
"path": "/home/dinesh/HyperExplorer/fabric-samples/first-network/crypto-config/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/keystore"
}
},
"OrdererMSP": {
"mspid": "OrdererMSP",
"adminPrivateKey": {
"path": "/home/dinesh/HyperExplorer/fabric-samples/first-network/crypto-config/ordererOrganizations/example.com/users/Admin@example.com/msp/keystore"
}
}
},
"peers": {
"peer0.org1.example.com": {
"tlsCACerts": {
"path": "/home/dinesh/HyperExplorer/fabric-samples/first-network/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"
},
"url": "grpcs://12.34.56.78:7051",
"eventUrl": "grpcs://l12.34.56.78:7053",
"grpcOptions": {
"ssl-target-name-override": "peer0.org1.example.com"
}
},
"peer1.org1.example.com": {
"url": "grpcs://12.34.56.78:8051"
},
"peer0.org2.example.com": {
"url": "grpcs://12.34.56.78:9051"
},
"peer1.org2.example.com": {
"url": "grpcs://12.34.56.78:10051"
}
},
"orderers": {
"orderer.example.com": {
"url": "grpcs://12.34.56.78:7050"
}
}
},
"network-2": {}
},
"configtxgenToolPath": "/home/dinesh/HyperExplorer/fabric-samples/bin",
"license": "Apache-2.0"
}
错误
(节点:16024)弃用警告:grpc.load:将@grpc/proto-loader模块与grpc.loadPackageDefinition一起使用2019-05-28T13:26:18.102Z - 错误:[Remote.js]:错误:之前无法连接截止时间 URL:grpcs://localhost:7050 <<<<<<<<<<<<<<<<<<<<<<<<< Explorer Error >>>>>>>>>>> >>>>>>>>>> { 错误:在截止日期前连接失败 URL:grpcs://localhost:7050 at checkState (/home/dinesh/Music/blockchain-explorer-master/node_modules/grpc/src/ client.js:720:16) connectFailed: true }