Hyperledger fabric 找不到的Hyperledger explorer[DEBUG]FabricClient-管理员对等点grpc://localhost:7051
无法使用结构1.2配置explorer 3.8 我正在尝试将hyperledger explorer与fabric集成,但我没有在我的案例中使用TLS。有人能帮我吗 超级分类账管理器3.8 Hyperledger结构1.2 节点JSV8.11.4 postgresql 9.5 logs/console/console.log 这是我的config.jsonHyperledger fabric 找不到的Hyperledger explorer[DEBUG]FabricClient-管理员对等点grpc://localhost:7051,hyperledger-fabric,hyperledger-explorer,Hyperledger Fabric,Hyperledger Explorer,无法使用结构1.2配置explorer 3.8 我正在尝试将hyperledger explorer与fabric集成,但我没有在我的案例中使用TLS。有人能帮我吗 超级分类账管理器3.8 Hyperledger结构1.2 节点JSV8.11.4 postgresql 9.5 logs/console/console.log 这是我的config.json 通过更新区块链资源管理器/app/platform/fabric/config.json来配置与fabric的连接,请参阅自述文件中提供的说
通过更新区块链资源管理器/app/platform/fabric/config.json来配置与fabric的连接,请参阅自述文件中提供的说明,搜索“fabric Configure Hyperledger explorer”。尝试添加最后一行CORE\u PEER\u Tassip\u EXTERNALENDPOINT
peer0.org1.example.com:
container_name: peer0.org1.example.com
image: hyperledger/fabric-peer
environment:
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- CORE_PEER_ID=peer0.org1.example.com
- CORE_LOGGING_PEER=info
- CORE_CHAINCODE_LOGGING_LEVEL=info
- CORE_PEER_LOCALMSPID=Org1MSP
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/
- CORE_PEER_ADDRESS=peer0.org1.example.com:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051
在相应的docker-compose.yml中,它描述了网络。
没有这一行,似乎只有组织内部才能看到对等体。
您还需要在网络中创建./generate.sh和./start.sh。
希望能有所帮助。感谢它为我所做的工作,但我再次收到了同步错误类型错误:this.client.hfc\u client.getEventHub不是函数类型错误:this.peerEventHub.disconnect不是函数类型错误:this.peerEventHub.disconnect不是一个函数,我正在获取空白页,比如无法获取/但此url工作正常对我来说,没有更多的细节很难猜测…这似乎是explorer安装的问题,可能与npm安装、测试等有关。你能检查一下你都做了吗?是的我做了。。但我的npm运行构建花费了很多时间,并没有响应,我的系统被挂起,除非我不终止构建过程。好吧,至少我们知道问题在哪里。尝试删除package-lock.json和整个node_modules目录。然后重做每个npm步骤安装依赖项、测试等。
[2018-10-26 10:20:35.233] [DEBUG] FabricClient - Channel genesis hash for channel [mychannel] >> ac4b7048da8b35c7b740babcb4dd8f911c94a15e45f442d5f6291a66f9b5ec5d
[2018-10-26 10:20:35.233] [DEBUG] FabricClient - Initialized channel >> mychannel
[2018-10-26 10:20:35.244] [DEBUG] FabricClient - Set client [cli] default orderer as >> grpc://localhost:7050
[2018-10-26 10:20:35.245] [DEBUG] FabricClient - Admin peer Not found for grpc://localhost:7051
{
"network-configs": {
"net_basic": {
"version": "1.0",
"clients": {
"org1": {
"tlsEnable": false,
"organization": "Org1MSP",
"channel": "mychannel",
"credentialStore": {
"path": "./tmp/credentialStore_Org1/credential",
"cryptoStore": {
"path": "./tmp/credentialStore_Org1/crypto"
}
}
}
},
"channels": {
"mychannel": {
"peers": {
"peer0.org1.example.com": {}
},
"connection": {
"timeout": {
"peer": {
"endorser": "9000",
"eventHub": "9000",
"eventReg": "9000"
}
}
}
}
},
"organizations": {
"Org1MSP": {
"mspid": "Org1MSP",
"fullpath": false,
"adminPrivateKey": {
"path": "/education/Example/basic-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore"
},
"signedCert": {
"path": "/education/Example/basic-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts"
}
},
"OrdererMSP": {
"mspid": "OrdererMSP",
"adminPrivateKey": {
"path": "/education/Example/basic-network/crypto-config/ordererOrganizations/example.com/users/Admin@example.com/msp/keystore"
}
}
},
"peers": {
"peer0.org1.example.com": {
"tlsCACerts": {
"path": "/education/Example/basic-network/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"
},
"url": "grpc://localhost:7051",
"eventUrl": "grpc://localhost:7053",
"grpcOptions": {
"ssl-target-name-override": "peer0.org1.example.com"
}
}
},
"orderers": {
"orderer.example.com": {
"url": "grpc://localhost:7050"
}
}
},
"network-2": {}
},
"configtxgenToolPath": "/home/ubuntu/user/binaries/fabric-samples/bin/",
"license": "Apache-2.0"
}
peer0.org1.example.com:
container_name: peer0.org1.example.com
image: hyperledger/fabric-peer
environment:
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- CORE_PEER_ID=peer0.org1.example.com
- CORE_LOGGING_PEER=info
- CORE_CHAINCODE_LOGGING_LEVEL=info
- CORE_PEER_LOCALMSPID=Org1MSP
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/
- CORE_PEER_ADDRESS=peer0.org1.example.com:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051