配置 Hyperledger Explorer 时,初始加载消息后显示空白网页。
版本:版本(几乎是最新的稳定版本):操作系统:Ubuntu 16.04 LTS Docker:18.03.0-ce 节点:v9.11.1 Hyperledger Fabric:1.1.0 Hyperledger Composer:0.19
{
"network-config": {
"org1": {
"name": "peerOrg1",
"mspid": "Org1MSP",
"peer1": {
"requests": "grpc://localhost:7051",
"events": "grpc://localhost:7053",
"server-hostname": "peer0.org1.example.com"
},
"admin": {
"key": "/home/pwc/fabric-tools/fabric-scripts/hlfv1/composer/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore",
"cert": "/home/pwc/fabric-tools/fabric-scripts/hlfv1/composer/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts"
}
}
},
"host": "localhost",
"port": "8085",
"channel": "composerchannel",
"keyValueStore": "/home/pwc/.composer-credentials",
"eventWaitTime": "30000",
"users":[
{
"username":"admin",
"secret":"adminpw"
}
],
"pg": {
"host": "localhost",
"port": "5432",
"database": "fabricexplorer",
"username": "hppoc",
"passwd": "password"
},
"license": "Apache-2.0"
}
在系统上运行的 Docker 容器:
Config.json
文件:
登录Log.log
文件:
postgres://hppoc:password@localhost:5432/fabricexplorer Please open web browser to access :http://localhost:8085/ Insert sql is INSERT INTO chaincodes ( "name","version","path","channelname" ) VALUES( $1,$2,$3,$4 ) RETURNING *; INSERT ID: 20 Insert sql is INSERT INTO blocks ( "blocknum","channelname","prehash","datahash","txcount","createdt" ) VALUES( $1,$2,$3,$4,$5,$6 ) RETURNING *; INSERT ID: 8 Insert sql is INSERT INTO transaction ( "channelname","blockid","txhash","createdt","chaincodename","chaincode_id","status","creator_msp_id","endorser_msp_id","type","read_set","write_set" ) VALUES( $1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12 ) RETURNING *; INSERT ID: 13
尝试使用以下链接中提到的解决方案,但没有帮助: Hyperledger Explorer + Composer not show data