gpt4 book ai didi

ssl - Hyperledger Fabric(第一个应用程序)+ Hyperledger Explorer 错误

转载 作者:太空宇宙 更新时间:2023-11-03 14:28:17 24 4
gpt4 key购买 nike

我正在尝试为结构版本 1.4 集成 Explorer 0.3.9。使用我的第一个应用程序示例代码(1 对等)当我根据 GitHub 的说明使用“./start.sh”启动资源管理器时,错误消息如下来自 console.log:

我认为这可能是与 SSL 相关的初始连接过程问题。但我不能轻易找到它。我已禁用 TLS,所以实际上,我不知道为什么会收到“版本号错误”错误。

我还尝试了 config-basic-network.json 文件

谢谢

postgres://hppoc:password@127.0.0.1:5432/fabricexplorer
(node:70471) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
E0305 09:27:28.326740427 70471 ssl_transport_security.cc:1227] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
E0305 09:27:29.327317682 70471 ssl_transport_security.cc:1227] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
E0305 09:27:31.025392003 70471 ssl_transport_security.cc:1227] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
2019-03-05T17:27:31.323Z - [31merror[39m: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7050
<<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Error >>>>>>>>>>>>>>>>>>>>>
{ Error: Failed to connect before the deadline URL:grpcs://localhost:7050
at checkState (/home/user/blockchain-explorer/node_modules/grpc/src/client.js:720:16) connectFailed: true }
Received kill signal, shutting down gracefully
Closed out connections

我的Explorer的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": "/home/user/fabric-samples/basic-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore"
},
"signedCert": {
"path": "/home/user/fabric-samples/basic-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts"
}
},
"OrdererMSP": {
"mspid": "OrdererMSP",
"adminPrivateKey": {
"path": "/home/user/fabric-samples/basic-network/crypto-config/ordererOrganizations/example.com/users/Admin@example.com/msp/keystore"
}
}
},
"peers": {
"peer0.org1.example.com": {
"tlsCACerts": {
"path": "/home/user/fabric-samples/basic-network/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"
},
"url": "grpcs://127.0.0.1:7051",
"eventUrl": "grpcs://127.0.0.1:7053",
"grpcOptions": {
"ssl-target-name-override": "peer0.org1.example.com"
}
}
},
"orderers": {
"orderer.example.com": {
"url": "grpcs://127.0.0.1:7050"
}
}
},
"network-2": {}
},
"configtxgenToolPath": "/home/user/fabric-samples/bin",
"license": "Apache-2.0"
}

最佳答案

您是否使用 https://github.com/hyperledger/blockchain-explorer#database-setup 上的说明正确设置了数据库?

然后 Fabric Setup需要完成

一旦所有这些步骤完成并出现任何错误,然后 run explorer network

关于ssl - Hyperledger Fabric(第一个应用程序)+ Hyperledger Explorer 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55009035/

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