1

我尝试使用以下 URL 帖子安装和运行超级账本资源管理器, 一切正常。但最后,我得到了错误

************************************************************************************
**************************** Hyperledger Explorer **********************************
************************************************************************************
***** Please check the log [logs/console/console-2019-08-16.log] for any error *****
************************************************************************************

An identity for the admin user: admin already exists in the wallet 

E0816 13:40:17.255321114    4411 ssl_transport_security.cc:1229] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number. 

E0816 13:40:18.256594682    4411 ssl_transport_security.cc:1229] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number. 

E0816 13:40:20.126334198    4411 ssl_transport_security.cc:1229] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number. 2019-08-16T08:10:20.256Z - [31merror[39m: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 2019-08-16T08:10:20.257Z - [31merror[39m: [Channel.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051 

E0816 13:40:23.194952082    4411 ssl_transport_security.cc:1229] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number. 2019-08-16T08:10:23.263Z - [31merror[39m: [Remote.js]: Error: Failed to connect before the deadline URL:grpcs://localhost:7051

FabricConfig, this.config.channels  mychannel
<<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Error >>>>>>>>>>>>>>>>>>>>>
Error :  [ 'Default client peer is down and no channel details available database' ]
Received kill signal, shutting down gracefully
<<<<<<<<<<<<<<<<<<<<<<<<<< Closing explorer  >>>>>>>>>>>>>>>>>>>>>
Closed out connections

请给出解决问题的解决方案。

4

2 回答 2

1

我假设您正在尝试将 HP Explorer 连接到 HP Fabric 网络。如果您想为 Hyperledger Explorer 禁用 TLS,您必须对连接配置文件进行两项更改。它通常位于app/platform/fabric/connection-profile/first-network.json. 文件的名称取决于您使用的网络。

您必须设置"tlsEnable": false,然后将对等方的 url 的协议从 grpc s更改为 grpc 例如"url": "grpc://localhost:7051",

我的整个连接配置文件如下所示:

{
    "name": "first-network",
    "version": "1.0.0",
    "license": "Apache-2.0",
    "client": {
        "tlsEnable": false,
        "adminUser": "admin",
        "adminPassword": "adminpw",
        "enableAuthentication": true,
        "organization": "Org1",
        "connection": {
            "timeout": {
                "peer": {
                    "endorser": "300"
                },
                "orderer": "300"
            }
        }
    },
    "channels": {
        "mychannel": {
            "peers": {
                "peer0.org1.example.com": {}
            },
            "connection": {
                "timeout": {
                    "peer": {
                        "endorser": "6000",
                        "eventHub": "6000",
                        "eventReg": "6000"
                    }
                }
            }
        }
    },
    "organizations": {
        "Org1": {
            "mspid": "Org1MSP",
            "adminPrivateKey": {
                "path": "/tmp/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/key.pem"
            },
            "signedCert": {
                "path": "/tmp/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts/Admin@org1.example.com-cert.pem"
            }
        }
    },
    "peers": {
        "peer0.org1.example.com": {
            "tlsCACerts": {
                "path": "/tmp/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"
            },
            "url": "grpc://localhost:7051",
            "grpcOptions": {
                "ssl-target-name-override": "peer0.org1.example.com"
            }
        }
    }
}
于 2020-05-13T11:25:59.920 回答
0

您的远程站点中未启用 TLS,但您正在尝试建立 TSL 连接。我在我的网络中集成客户端应用程序时遇到了同样的错误。

您可以从这里检查解决方案

于 2019-10-03T07:18:58.623 回答