我最近安装了 Hyperledger Explorer。运行资源管理器时,它不会向浏览器返回任何内容并给出错误:
postgres://hppoc:password@127.0.0.1:5432/fabricexplorer
Please open web browser to access :http://localhost:8080/
[2018-04-16 08:15:18.542] [ERROR] Query - Error: No identity has been assigned to this client
at Client._getSigningIdentity (/home/ubuntu/blockchain-explorer/node_modules/fabric-client/lib/Client.js:1206:11)
at Channel.queryInfo (/home/ubuntu/blockchain-explorer/node_modules/fabric-client/lib/Channel.js:896:36)
at helper.getOrgAdmin.then (/home/ubuntu/blockchain-explorer/app/query.js:98:18)
at <anonymous>
我试图console.log
输出的变量blockchain-explorer/node_modules/fabric-client/lib/Client.js:1206:11
确实是admin
undefined
这很奇怪,因为我在此之前安装了 Composer,它运行得非常好。所有crypto-config
使用 Composer 示例提供的默认设置。
版本(几乎是最新的稳定版本):
- 操作系统:Ubuntu 16.04 LTS
- 码头工人:18.03.0-ce
- 节点:v8.11.1
- 超级账本结构:1.1.0
- 超级账本作曲家:0.19
Explorerconfig.json
几乎是默认的,没有 TLS:
{
"network-config": {
"org1": {
"name": "hlfv1",
"mspid": "Org1MSP",
"peer1": {
"requests": "grpc://127.0.0.1:7051",
"events": "grpc://127.0.0.1:7053",
"server-hostname": "peer0.org1.example.com"
},
"admin": {
"key": "/home/ubuntu/fabric-tools/fabric-scripts/hlfv11/composer/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore",
"cert": "/home/ubuntu/fabric-tools/fabric-scripts/hlfv11/composer/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts"
}
}
},
"host": "localhost",
"port": "8080",
"channel": "composerchannel",
"keyValueStore": "/tmp/fabric-client-kvs",
"eventWaitTime": "30000",
"pg": {
"host": "127.0.0.1",
"port": "5432",
"database": "fabricexplorer",
"username": "hppoc",
"passwd": "password"
},
"license": "Apache-2.0"
}
我错过了什么/提示?预先感谢。