大家好,我正在使用 Hyperledger Fabric 网络和区块链浏览器。我为“第一网络”测试了资源管理器,我成功了。之后因为想搭建多机 Fabric 网络,所以参考了https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f并且为了测试我跑了所有的 docker 容器(CA , ORDERER, 2PEERS, CLI) 到本地机器并编辑 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": {},
"peer1.org1.example.com": {}
},
"connection": {
"timeout": {
"peer": {
"endorser": "6000",
"eventHub": "6000",
"eventReg": "6000"
}
}
}
}
},
"organizations": {
"Org1MSP": {
"mspid": "Org1MSP",
"fullpath": false,
"adminPrivateKey": {
"path":
"/home/ubuntu/fabric-samples/Build-Multi-Host-Network-Hyperledger/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore"
},
"signedCert": {
"path":
"/home/ubuntu/fabric-samples/Build-Multi-Host-Network-Hyperledger/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts"
}
},
"OrdererMSP": {
"mspid": "OrdererMSP",
"adminPrivateKey": {
"path":
"/home/ubuntu/fabric-samples/Build-Multi-Host-Network-Hyperledger/crypto-config/ordererOrganizations/example.com/users/Admin@example.com/msp/keystore"
}
}
},
"peers": {
"peer0.org1.example.com": {
"tlsCACerts": {
"path":
"/home/ubuntu/fabric-samples/Build-Multi-Host-Network-Hyperledger/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"
},
"url": "grpcs://localhost:8051",
"eventUrl": "grpcs://localhost:8053",
"grpcOptions": {
"ssl-target-name-override": "peer0.org1.example.com"
}
},
"peer1.org1.example.com": {
"tlsCACerts": {
"path":
"/home/ubuntu/fabric-samples/Build-Multi-Host-Network-Hyperledger/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt"
},
"url": "grpcs://localhost:9051",
"eventUrl": "grpcs://localhost:9053",
"grpcOptions": {
"ssl-target-name-override": "peer1.org1.example.com"
}
}
},
"orderers": {
"orderer.example.com": {
"url": "grpcs://localhost:7050"
}
}
},
"network-2": {}
},
"configtxgenToolPath": "/home/ubuntu/fabric-samples/bin",
"license": "Apache-2.0"
}
我得到了错误。下面有错误日志
postgres://hppoc:password@127.0.0.1:5432/fabricexplorer E0925 17:00:41.804738425 14014 ssl_transport_security.cc:989] 握手失败,出现致命错误 SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number。E0925 17:00:42.805918378 14014 ssl_transport_security.cc:989] 握手失败,出现致命错误 SSL_ERROR_SSL:错误:1408F10B:SSL 例程:SSL3_GET_RECORD:版本号错误。E0925 17:00:44.589563663 14014 ssl_transport_security.cc:989] 握手失败,出现致命错误 SSL_ERROR_SSL:错误:1408F10B:SSL 例程:SSL3_GET_RECORD:版本号错误。[31merror [39m:[Remote.js]:错误:在截止日期之前无法连接[31merror [39m:[client-utils.js]:sendPeersProposal - 承诺被拒绝:错误:
错误:无法连接客户端对等体,请检查配置和对等体状态信息:资源管理器将继续仅使用数据库数据
请打开浏览器访问:<a href="http://localhost:8080/" rel="nofollow noreferrer">http://localhost:8080/
PID 是 14014
<<<<<<<<<<<<<<<<<<<<<<<<<< 资源管理器错误>>>>>>>>>>>>>>>>>>>>>> 错误:['默认客户端对等方已关闭,没有可用的通道详细信息数据库'] E0925 17:00:46.797189353 14014 ssl_transport_security.cc:989]握手失败,出现致命错误SSL_ERROR_SSL:错误:1408F10B:SSL例程:SSL3_GET_RECORD:错误的版本号。收到kill信号,正常关闭<<<<<<<<<<<<<<<<<<<<<<<<<关闭浏览器>>>>>>>>>>>>>>> >>>>>> 关闭连接
有没有人知道如何解决这个问题?