10 安装blockchain explorer后无法查看区块中数据

在A机安装的fabric1.0.2 在B机安装最新的blockchain explorer,./start.sh后logs/console下日志抛如下错误

(node:24982) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'channel' of undefined
    at Proxy.getGenesisBlock (/opt/blockchain-explorer-master/app/platform/fabric/Proxy.js:98:44)
    at Proxy.getGenesisBlockHash (/opt/blockchain-explorer-master/app/platform/fabric/Proxy.js:248:33)
    at /opt/blockchain-explorer-master/app/explorer/rest/platformroutes.js:78:13
    at Layer.handle [as handle_request] (/opt/blockchain-explorer-master/node_modules/express/lib/router/layer.js:95:5)
    at next (/opt/blockchain-explorer-master/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/opt/blockchain-explorer-master/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/opt/blockchain-explorer-master/node_modules/express/lib/router/layer.js:95:5)
    at /opt/blockchain-explorer-master/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/opt/blockchain-explorer-master/node_modules/express/lib/router/index.js:335:12)
    at next (/opt/blockchain-explorer-master/node_modules/express/lib/router/index.js:275:10)
(node:24982) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:24982) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:24982) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'channel' of undefined
    at Proxy.getGenesisBlock (/opt/blockchain-explorer-master/app/platform/fabric/Proxy.js:98:44)
    at Proxy.getGenesisBlockHash (/opt/blockchain-explorer-master/app/platform/fabric/Proxy.js:248:33)
    at /opt/blockchain-explorer-master/app/explorer/rest/platformroutes.js:78:13
    at Layer.handle [as handle_request] (/opt/blockchain-explorer-master/node_modules/express/lib/router/layer.js:95:5)
    at next (/opt/blockchain-explorer-master/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/opt/blockchain-explorer-master/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/opt/blockchain-explorer-master/node_modules/express/lib/router/layer.js:95:5)
    at /opt/blockchain-explorer-master/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/opt/blockchain-explorer-master/node_modules/express/lib/router/index.js:335:12)
    at next (/opt/blockchain-explorer-master/node_modules/express/lib/router/index.js:275:10)



app/platform/fabric配置如下
        {
        "network-config": {
                "org2": {
                        "name": "org2",
                        "mspid": "org2PeerMSP",
                        "peer1": {
                                "requests": "grpc://99.12.95.201:27051",
                                "events": "grpc://99.12.95.201:27053",
                                "server-hostname": "peer0.org2",
                                "tls_cacerts": "/home/hc/fabric-1.0.2/crypto-config/peerOrganizations/org2/peers/peer0.org2/tls/ca.crt"
                        },
                        "admin": {
                                "key": "/home/hc/fabric-1.0.2/crypto-config/peerOrganizations/org2/users/Admin@org2/msp/keystore",
                                "cert": "/home/hc/fabric-1.0.2/crypto-config/peerOrganizations/org2/users/Admin@org2/msp/signcerts"
                        }
                }
        },
        "channel": "hc1channel",
        "orderers":[
                                {
                                "mspid": "org2OrdererMSP",
                                "server-hostname":"orderer0.org2",
                                "requests":"grpc://99.12.95.201:27050",
                                "tls_cacerts":"/home/hc/fabric-1.0.2/crypto-config/ordererOrganizations/org2/orderers/orderer0.org2/tls/ca.crt"
                                }
                                ],
        "keyValueStore": "/tmp/fabric-client-kvs",
        "configtxgenToolPath": "/home/hc/fabric-1.0.2",
        "SYNC_START_DATE_FORMAT":"YYYY/MM/DD",
        "syncStartDate":"2018/07/01",
        "eventWaitTime": "30000",
        "license": "Apache-2.0",
        "version": "1.1"
        }

请先 登录 后评论
  • 1 关注
  • 0 收藏,544 浏览
  • jfzshandong 提出于 2018-08-13 18:47

相似问题