Hyperledger fabric 将hyperledger composer与资源管理器一起使用时出错
我正在尝试将hyperledger composer与hyperledger explorer一起使用。我在fabric dev服务器上部署了一个简单的业务网络。在编写器方面,它工作正常,我能够与网络完美交互,但当我尝试将其与hyperledger explorer集成时,启动时出现以下错误 控制台日志 数据库日志: 下面是我的config.json 配置:Hyperledger fabric 将hyperledger composer与资源管理器一起使用时出错,hyperledger-fabric,hyperledger,hyperledger-composer,hyperledger-explorer,Hyperledger Fabric,Hyperledger,Hyperledger Composer,Hyperledger Explorer,我正在尝试将hyperledger composer与hyperledger explorer一起使用。我在fabric dev服务器上部署了一个简单的业务网络。在编写器方面,它工作正常,我能够与网络完美交互,但当我尝试将其与hyperledger explorer集成时,启动时出现以下错误 控制台日志 数据库日志: 下面是我的config.json 配置: 查看config.json文件的格式,您可能正在使用旧版本的Explorer或旧的config.json。仅在Explorer 3.7中添
查看config.json文件的格式,您可能正在使用旧版本的Explorer或旧的config.json。仅在Explorer 3.7中添加了对Fabric 1.2的支持,并且对config.json的结构进行了更改 因此,我建议: 更新到Explorer 3.7分支版本3.7。 按照说明操作。
我遇到过类似的问题,并通过以下步骤解决了它 从给定的url下载Explorer 3.5。 Hyperledger Composer SetupUpdate config.json 构建超级分类账资源管理器 运行Hyperledger资源管理器 最后,它适用于Fabric 1.2和Composer@0.20.
我希望它能帮助你 Github repo上提供的示例配置在这里->。将上面的配置与此进行比较,您没有得到版本1.0的引号-不确定如果它是浮动的话是否会产生影响。仍然不好:您应该在Rocketchat channel hyperledger explorer->I上询问:实际上,POkay会调查它的。。!您好,但根据@Paul的说法,对fabric 1.2的支持只在v3.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
}