启动Hyperledger Explorer时会显示空白页面

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

配置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/[email protected]/msp/keystore",
            "cert": "/home/pwc/fabric-tools/fabric-scripts/hlfv1/composer/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/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 showing data

hyperledger hyperledger-composer hyperledger-explorer
1个回答
0
投票

您使用的是哪种版本的Hyperledger Explorer? V0.3.5?您可能需要将节点版本降级到8.X(不支持9,至少对于V0.3.5)

此外,如果您的UI是空白的,可能是您错过了“npm run build”步骤

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