代码之家  ›  专栏  ›  技术社区  ›  Paradox

在资源管理器中使用hyperledger composer时出错

  •  0
  • Paradox  · 技术社区  · 7 年前

    postgres://hppoc:password@127.0.0.1:5432/fabricexplorer
    <<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Error >>>>>>>>>>>>>>>>>>>>>
    TypeError: Cannot read property 'size' of undefined
        at Platform.initialize (/home/paradox/hyperledger/fabric/blockchain-explorer/app/platform/fabric/Platform.js:54:48)
        at <anonymous>
        at process._tickCallback (internal/process/next_tick.js:189:7)
    (node:23248) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
    Received kill signal, shutting down gracefully
    Closed out connections
    

    应用程序日志:

    [2018-10-29 22:14:30.719] [DEBUG] Platform - ******* Initialization started for hyperledger fabric platform ******
    [2018-10-29 22:14:30.719] [DEBUG] Platform - Setting admin organization enrolment files
    

    数据库日志:

    [2018-10-29 22:14:22.055] [INFO] pgservice - Please set logger.setLevel to DEBUG in ./app/helper.js to log the debugging.
    


    配置:

    {
      "network-config": {
        "org1": {
          "name": "Org1",
          "mspid": "Org1MSP",
          "peer1": {
            "requests": "grpcs://127.0.0.1:7051",
            "events": "grpcs://127.0.0.1:7053",
            "server-hostname": "peer0.org1.example.com",
            "tls_cacerts": "/home/paradox/hyperledger/fabric/fabric-dev-servers/fabric-scripts/hlfv12/composer/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"
          },
          "admin": {
            "key": "/home/paradox/hyperledger/fabric/fabric-dev-servers/fabric-scripts/hlfv12/composer/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore",
            "cert": "/home/paradox/hyperledger/fabric/fabric-dev-servers/fabric-scripts/hlfv12/composer/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts"
          }
        }
      },
      "channel": "composerchannel",
      "orderers": [
        {
          "mspid": "OrdererMSP",
          "server-hostname": "orderer.example.com",
          "requests": "grpcs://127.0.0.1:7050",
          "tls_cacerts": "/home/paradox/hyperledger/fabric/fabric-dev-servers/fabric-scripts/hlfv12/composer/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/ca.crt"
        }
      ],
      "keyValueStore": "/tmp/fabric-client-kvs",
      "configtxgenToolPath": "/home/playground/fabric-samples/bin",
      "SYNC_START_DATE_FORMAT": "YYYY/MM/DD",
      "syncStartDate": "2018/9/01",
      "eventWaitTime": "30000",
      "license": "Apache-2.0",
      "version": 1.0
    }
    
    2 回复  |  直到 7 年前
        1
  •  1
  •   vikas balyan    7 年前

    1. 从给定的url下载explorer3.5。
      https://github.com/hyperledger/blockchain-explorer/tree/v0.3.5.1

    2. 运行Hyperledger资源管理器

    我希望它能帮助你!

        2
  •  0
  •   Paul Russell    7 年前

    看看你的 config.json 文件,看起来您可能正在使用旧版本的Explorer,或者 . 对Fabric 1.2的支持(看起来您正在使用它)只在Explorer3.7中添加,同时对 .

    因此,我建议如下: