简体   繁体   English

使用 Node.js 在 Hyperledger Fabric 中创建通道时出错

[英]Error in Channel Creation in Hyperledger Fabric using Node.js

I am looking to setup a simple Hyperledger Fabric network without using docker and trying to create channel by following this tutorial using Node.js.我希望在不使用 docker 的情况下设置一个简单的 Hyperledger Fabric 网络,并尝试按照 教程使用 Node.js 创建通道。 Steps i performed:我执行的步骤:

  1. Setup crypto-config.yaml and generated crypto-material (crypto-config)设置 crypto-config.yaml 和生成的加密材料 (crypto-config)
  2. Setup fabric-ca-server-config.yaml by updating keyfile & certfile .通过更新keyfilecertfile设置 fabric-ca-server- certfile started CA server启动 CA 服务器
  3. Setup configtx.yaml by defining one orderer and one organization.通过定义一个排序者和一个组织来设置 configtx.yaml。 Created genesis block and configuration transaction创建创世区块和配置交易

Now by when i run above tutorial node.js code, i get error on order terminal & as response of node.js call:现在,当我在教程 node.js 代码上方运行时,我在订单终端和作为 node.js 调用的响应上收到错误:

2019-01-09 16:16:54.619 IST [msp] DeserializeIdentity -> INFO 007 Obtaining identity 2019-01-09 16:16:54.619 IST [msp] DeserializeIdentity -> INFO 007 获取身份

2019-01-09 16:16:54.619 IST [orderer/common/broadcast] Handle -> WARN 008 [channel: firstchannel] 2019-01-09 16:16:54.619 IST [orderer/common/broadcast] 处理 -> WARN 008 [channel: firstchannel]

Rejecting broadcast of config message from 127.0.0.1:44198 because of error: Failed to reach implicit threshold of 1 sub-policies, required 1 remaining: permission denied拒绝广播来自 127.0.0.1:44198 的配置消息,因为错误:未能达到 1 个子策略的隐式阈值,需要 1 个:权限被拒绝

I tried many changes and still getting same error.我尝试了很多更改,但仍然遇到相同的错误。 Same error also appear while creating channel through terminal using ./peer channel create -o localhost:7050 -c firstchannel -f ./channel.tx使用./peer channel create -o localhost:7050 -c firstchannel -f ./channel.tx通过终端创建频道时也会出现同样的错误

Here is my channel.tx converted in JSON. 是我在 JSON 中转换的 channel.tx。

How this can be resolved?如何解决?

I got it worked!我成功了! Actually in orderer.yaml , i set LOG to DEBUG and now i can see the problem in channel creation well descriptive.实际上在orderer.yaml ,我将LOG设置为DEBUG ,现在我可以很好地描述频道创建中的问题。

There were multiple things which i needed to improve but main thing was that in orderer.yaml , GenesisMethod was set to file , so it was creating system channel and was looking the signature of the OrdererMSP admin.我有很多需要改进的地方,但主要是在orderer.yamlGenesisMethod设置为file ,因此它正在创建系统通道并查看OrdererMSP管理员的签名。 Changing GenesisMethod to provisional got channel creation worked.GenesisMethod更改为provisional频道创建工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Hyperledger Fabric Node JS创建频道时出错 - Error when Creating Channel Using Hyperledger Fabric Node JS Hyperledger Fabric和Node.js成功创建环境并在执行中出现一些错误 - Hyperledger Fabric and Node.js creation of environment successfully and getting some error in execution Hyperledger Fabric Node.js Sdk 出现错误:访问被拒绝 - Hyperledger Fabric Node.js Sdk got error :access denied HyperLedger Fabric 获取区块信息 - 使用 node.js - HyperLedger Fabric Get Block Info - using node.js 在超级账本结构中使用节点 js sdk 时出错? - Error while using node js sdk in hyperledger fabric? 如何使用Node SDK Hyperledger Fabric在通道上添加锚点对等点 - How to add anchor peers on channel using node sdk hyperledger fabric 如何使用node.js SDK和TLS查询Hyperledger Fabric Go Chaincode? - How to query Hyperledger Fabric Go Chaincode by using the node.js SDK and TLS? Hyperledger Fabric 2.0,无法使用 Node.js SDK 访问用户的 Fabtoken - Hyperledger Fabric 2.0, Can't Access Fabtokens of Users Using Node.js SDK 关于适用于node.js的Hyperledger Fabric SDK的类型定义 - About type definition of Hyperledger Fabric SDK for node.js Hyperledger Fabric Node.js SDK:离线交易签名问题 - Hyperledger Fabric Node.js SDK: Issue with offline transaction signatures
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM