0

我正在尝试为结构 1.4 版集成 Explorer 0.3.9。使用我的第一个应用程序示例代码(1 个对等)当我根据 GitHub 的指令使用“./start.sh”启动资源管理器时,控制台.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

我的资源管理器的 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"
}
4

1 回答 1

0

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

然后需要完成Fabric Setup

一旦所有这些步骤完成并出现任何错误,然后运行资源管理器网络

于 2019-03-05T18:25:26.250 回答