Hyperledger Explorer显示空数据

问题描述 投票:0回答:3

我的Hyperledger作曲家游乐场和休息服务器工作正常,但资源管理器显示没有数据。

Explorer配置:

{
"network-config": {
    "org1": {
        "name": "hlfv1",
        "mspid": "Org1MSP",
        "peer1": {
            "requests": "grpc://localhost:7050",
            "events": "grpc://localhost:7053",
            "server-hostname": "peer0.org1.example.com"
        },
        "admin": {
            "key": "../fabric-tools/fabric-scripts/hlfv1/composer/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/keystore",
            "cert": "../fabric-tools/fabric-scripts/hlfv1/composer/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/signcerts"
        }

    }
},
"host": "localhost",
"port": "5000",
"channel": "composerchannel",
"keyValueStore": "/tmp/fabric-client-kvs",
"eventWaitTime": "30000",
"mysql":{
    "host":"127.0.0.1",
    "database":"fabricexplorer",
    "username":"root",
    "passwd":"******"
}

当我检查日志时,它显示以下错误:

[client-utils.js]: sendPeersProposal - Promise is rejected: Error: 12 UNIMPLEMENTED: unknown service protos.Endorser
    at new createStatusError (/blockchain-explorer/node_modules/grpc/src/client.js:65:15)
    at /blockchain-explorer/node_modules/grpc/src/client.js:568:15
[Channel.js]: Failed Query channel info. Error: Error: 12 UNIMPLEMENTED: unknown service protos.Endorser
    at new createStatusError (/blockchain-explorer/node_modules/grpc/src/client.js:65:15)
    at /blockchain-explorer/node_modules/grpc/src/client.js:568:15
[ERROR] Query - [39mError: 12 UNIMPLEMENTED: unknown service protos.Endorser
    at new createStatusError (/blockchain-explorer/node_modules/grpc/src/client.js:65:15)
    at /blockchain-explorer/node_modules/grpc/src/client.js:568:15
[31m[2018-02-08 13:54:07.217] [ERROR] blockscanner -[39mTypeError: Cannot read property 'low' of undefined
    at getChainInfo.then.response (/blockchain-explorer/app/query.js:208:33)
    at <anonymous> ....

配置有什么问题吗?关于如何将资源管理器与作曲家集成,没有明确的tuto。谢谢

hyperledger-fabric hyperledger hyperledger-composer hyperledger-explorer
3个回答
0
投票

使用标准的Development Fabric,我可以使用以下配置运行Explorer:

  • 因为-v 8 9. 0
  • 作曲家 - v0.17.3
  • 面料 - 1.1.0-alpha
  • mysql - 5.7.21

我的配置文件与您的不同之处在于我使用证书的绝对路径而不是相对路径。我的配置如下。

{
"network-config": {
    "org1": {
        "name": "peerOrg1",
        "mspid": "Org1MSP",
        "peer1": {
            "requests": "grpc://127.0.0.1:7051",
            "events": "grpc://127.0.0.1:7053",
            "server-hostname": "peer0.org1.example.com",
            "tls_cacerts": "/home/ibm/fabric-tools/fabric-scripts/hlfv11/composer/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"
        },
        "admin": {
            "key": "/home/ibm/fabric-tools/fabric-scripts/hlfv11/composer/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/keystore",
            "cert": "/home/ibm/fabric-tools/fabric-scripts/hlfv11/composer/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/signcerts"
        }
    }
},
"host": "localhost",
"port": "8081",
"channel": "composerchannel",
"keyValueStore": "/tmp/fabric-client-kvs",
"eventWaitTime": "30000",
"mysql": {
    "host": "127.0.0.1",
    "port": "3306",
    "database": "fabricexplorer",
    "username": "root",
    "passwd": "****"
}
}

0
投票

我收到此错误是因为我为请求 "requests": "grpc://localhost:7050", 设置了错误的端口

应该是 "requests": "grpc://localhost:7051",


0
投票

在我的环境中,只需将tls_cacerts添加到config.json上的对等配置即可解决问题。

https://stackoverflow.com/a/49934968/8874164

@ r-thatcher提供的config.json对我来说非常有用。

© www.soinside.com 2019 - 2024. All rights reserved.