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

时间:2018-05-15 09:20:40

标签: hyperledger hyperledger-composer hyperledger-explorer

配置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容器: image of Docker Containers Running on System

Config.json档案: image of Config.json File

登录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

1 个答案:

答案 0 :(得分:0)

您正在使用哪个版本的Hyperledger Explorer? V0.3.5? 您可能需要将节点版本降级到8.X(至少在V0.3.5中不支持9)

此外,如果您的用户界面为空白,则可能是您错过了“ npm run build”步骤