[英]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:
我执行的步骤:
keyfile
& certfile
.keyfile
和certfile
设置 fabric-ca-server- certfile
。 started CA serverNow 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.yaml
, GenesisMethod
设置为file
,因此它正在创建系统通道并查看OrdererMSP
管理员的签名。 Changing GenesisMethod
to provisional
got channel creation worked.将
GenesisMethod
更改为provisional
频道创建工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.