gpt4 book ai didi

ssl - Hyperledger Fabric Explorer config.json 握手错误

转载 作者:太空宇宙 更新时间:2023-11-03 13:44:03 39 4
gpt4 key购买 nike

大家好,我正在使用 Hyperledger Fabric 网络和区 block 链浏览器。我测试了 explorer 的“first-network”,我成功了。之后因为想搭建多机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/fabricexplorerE0925 17:00:41.804738425 14014 ssl_transport_security.cc:989] 握手失败,出现 fatal error SSL_ERROR_SSL:错误:1408F10B:SSL 例程:SSL3_GET_RECORD:版本号错误。E0925 17:00:42.805918378 14014 ssl_transport_security.cc:989] 握手失败,出现 fatal error SSL_ERROR_SSL:错误:1408F10B:SSL 例程:SSL3_GET_RECORD:版本号错误。E0925 17:00:44.589563663 14014 ssl_transport_security.cc:989] 握手失败,出现 fatal error SSL_ERROR_SSL:错误:1408F10B:SSL 例程:SSL3_GET_RECORD:版本号错误。[31merror[39m: [Remote.js]: 错误: 在截止日期前连接失败[31merror[39m: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Failed to connect before the deadline 在检查状态(/home/ubuntu/blockchain-explorer/node_modules/grpc/src/client.js:838:16)


错误:无法连接客户端对等点,请检查配置和对等点状态信息:Explorer 将继续仅处理数据库数据


请打开浏览器访问: http://localhost:8080/

进程号为 14014

<<<<<<<<<<<<<<<<<<<<<<<< 资源管理器错误 >>>>>>>>>>>>>>>>>>>>>>错误:['默认客户端对端已关闭,没有可用数据库的 channel 详细信息']E0925 17:00:46.797189353 14014 ssl_transport_security.cc:989] 握手失败,出现 fatal error SSL_ERROR_SSL:错误:1408F10B:SSL 例程:SSL3_GET_RECORD:版本号错误。收到kill信号,正常关机<<<<<<<<<<<<<<<<<<<<<<<<< 关闭浏览器>>>>>>>>>>>>>>>>>>>>>>关闭连接

有谁知道如何解决这个问题吗?

最佳答案

当我尝试将 Hyperledger Explorer 连接到基本网络示例时,我遇到了与您发布的问题相同的问题。

我在下面的链接中找到了这篇文章,它可以解决我的问题,希望它也能帮助到你。

Unable to setup hyperledger explorer with one node (like basic network example)

关于ssl - Hyperledger Fabric Explorer config.json 握手错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52493358/

39 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com