1

我在 Ubuntu 16.04 上建立了一个结构网络(v1.1.0),并使用 Blockchain Explorer 查看交易详情。一切正常,但是当我向我的网络添加新事务时,Blockchain Explorer 无法从我的网络扫描块以插入数据库并通过此错误:

[错误] blocksscanner - TypeError:无法读取未定义的属性“数据”

[2018-05-30 02:30:11.684] [ERROR] Query - Error: No identity has been assigned to this client
    at Client._getSigningIdentity (/explorer/src/blockchain-explorer/node_modules/fabric-client/lib/Client.js:1207:11)
    at Client.queryInstalledChaincodes (/explorer/src/blockchain-explorer/node_modules/fabric-client/lib/Client.js:916:23)
    at helper.getOrgAdmin.then (/explorer/src/blockchain-explorer/app/query.js:127:18)
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: error executing chaincode: failed to execute transaction: timeout expired while executing transaction
    at new createStatusError (/explorer/src/blockchain-explorer/node_modules/grpc/src/client.js:64:15)
    at /explorer/src/blockchain-explorer/node_modules/grpc/src/client.js:583:15
error: [Channel.js]: Failed Query block. Error: Error: 2 UNKNOWN: error executing chaincode: failed to execute transaction: timeout expired while executing transaction
    at new createStatusError (/explorer/src/blockchain-explorer/node_modules/grpc/src/client.js:64:15)
    at /explorer/src/blockchain-explorer/node_modules/grpc/src/client.js:583:15
[2018-05-30 02:30:47.603] [ERROR] Query - Error: 2 UNKNOWN: error executing chaincode: failed to execute transaction: timeout expired while executing transaction
    at new createStatusError (/explorer/src/blockchain-explorer/node_modules/grpc/src/client.js:64:15)
    at /explorer/src/blockchain-explorer/node_modules/grpc/src/client.js:583:15
[2018-05-30 02:30:47.604] [ERROR] blockscanner - TypeError: Cannot read property 'data' of undefined
    at EventEmitter.<anonymous> (/explorer/src/blockchain-explorer/listener/blocklistener.js:29:30)
    at emitOne (events.js:96:13)
    at EventEmitter.emit (events.js:188:7)
    at saveBlockRange (/explorer/src/blockchain-explorer/service/blockscanner.js:60:23)
    at next (native)
    at onFulfilled (/explorer/src/blockchain-explorer/node_modules/co/index.js:65:19)

但是当我删除区块链资源管理器的 PostgreSQL 中的所有数据并再次启动资源管理器时,它工作正常吗?!有人收到此错误或知道如何解决吗?

我的资源管理器配置文件在这里:

{
"network-config": {
    "org1": {
        "name": "Org1",
        "mspid": "Org1MSP",
        "peer1": {
            "requests": "grpcs://peer0.org1.example.com:7051",
            "events": "grpcs://peer0.org1.example.com:7053",
            "server-hostname": "peer0.org1.example.com",
            "tls_cacerts": "/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"
        },
        "peer2": {
            "requests": "grpcs://peer1.org1.example.com:8051",
            "events": "grpcs://peer1.org1.example.com:8053",
            "server-hostname": "peer1.org1.example.com",
            "tls_cacerts": "/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt"
        },
        "admin": {
            "key": "/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore",
            "cert": "/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts"
        }
    }
},
"host": "localhost",
"port": "8080",
"channel": "my-channel",
"keyValueStore": "/tmp/fabric-client-kvs",
"eventWaitTime": "5000",
"pg": {
    "host": "127.0.0.1",
    "port": "5432",
    "database": "fabricexplorer",
    "username": "hppoc",
    "passwd": "password"
},
"license": "Apache-2.0"
}
4

1 回答 1

0

同样的问题,尝试了 3 个以前版本的资源管理器。

于 2018-06-06T09:27:00.293 回答