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/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 容器: 在系统上运行的 Docker 容器的图像

Config.json文件: 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

4

1 回答 1

0

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

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

于 2018-09-11T09:19:29.173 回答