首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将Hyperledger Fabric Explorer连接到承载在不同实例上的fabric网络

将Hyperledger Fabric Explorer连接到承载在不同实例上的fabric网络
EN

Stack Overflow用户
提问于 2019-02-26 10:30:03
回答 1查看 680关注 0票数 3

我正在尝试将块链资源管理器(在本地运行)与超级分类账网络(运行在ec2实例上)连接起来。我正面临一些问题。以下是我遵循的步骤:

  1. Hyperledger网络运行在ec2实例上。检查日志并确保端口不被防火墙阻塞。
  2. 在explorerconfig.json中将同步类型设置为“主机”
  3. 网络是非TLS的。因此,给定"tlsEnable":config.json文件中的false。还使用了grpc而不是grpc。url类似于grpc:// 2.43.155.20 :7051,其中2.43.155.20是ec2实例的ip。
  4. 构建之后,当我运行./start.sh时,会得到以下错误:

2019-02-26T09:40:11.361Z -[31 31merror[39m: Remote.js: Error:未能在截止日期之前连接:grpc://localhost:7050 <<<<<<<<<<<<<<<<<<<<<<<<<<资源管理器错误“>>>>>>>>>>>>>>>>>>>>>”)

有人能告诉我是什么导致了这个问题吗?

**注:我在同一个实例上安装了资源管理器和织物网络,并将它们连接起来。啊,真灵。现在,当我试图连接到承载我的网络的另一个实例时,它不起作用。

编辑

blockchain-explorer/app/platform/fabric/config.json.:config.json的位置

内容:

{ "network-configs": { "network-1": { "version": "1.0", "clients": { "client-1": { "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": "6000", "eventHub": "6000", "eventReg": "6000" } } } } }, "organizations": { "Org1MSP": { "mspid": "Org1MSP", "fullpath": false, "adminPrivateKey": { "path": "$PATH/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore" }, "signedCert": { "path": "$PATH/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts" } }, "OrdererMSP": { "mspid": "OrdererMSP", "adminPrivateKey": { "path": "$PATH/crypto-config/ordererOrganizations/example.com/users/Admin@example.com/msp/keystore" } } }, "peers": { "peer0.org1.example.com": { "tlsCACerts": { "path": "$PATH/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt" }, "url": "grpc://2.43.155.20::7051", "eventUrl": "grpc://2.43.155.20::7053", "grpcOptions": { "ssl-target-name-override": "peer0.org1.example.com" } }, "peer1.org1.example.com": { "url": "grpc://2.43.155.20::8051" } }, "orderers": { "orderer.example.com": { "url": "grpc://2.43.155.20::7050" } } }, "network-2": {} }, "configtxgenToolPath": "$SOME_PATH/hyperledger/fabric/common/tools", "license": "Apache-2.0" }

EN

回答 1

Stack Overflow用户

发布于 2019-02-26 11:24:06

Hyperledger正在尝试连接到orderer节点,但他使用的主机错误。您检查了config.json中的orderer节点主机吗?

grpc://2.43.155.20:7050

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54883394

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档