【问题标题】:Hyperledger explorer | start.sh | ssl_transport_security | SSL3_GET_RECORD超级账本浏览器 |开始.sh | ssl_transport_security | SSL3_GET_RECORD
【发布时间】:2019-08-16 09:57:20
【问题描述】:

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

************************************************************************************
**************************** 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

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

【问题讨论】:

  • 该博客是一个旧教程,可能最好从官方文档获取最新信息:github.com/hyperledger/… - 乍一看,您可以检查您的容器是否在同一网络上 docker network inspect net_byfn | jq ".[].Containers[].Name" | sort 或者您的explorer 容器可以解析 byfn 节点,例如 docker exec explorer.mynetwork.com ping -c 1 peer0.org1.example.com

标签: hyperledger-fabric hyperledger-explorer


【解决方案1】:

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

您必须设置"tlsEnable": false,,然后将节点的 url 协议从 grpcs 更改为 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"
            }
        }
    }
}

【讨论】:

    【解决方案2】:

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

    You can check solution from here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-24
      • 1970-01-01
      • 1970-01-01
      • 2018-03-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多