成功解决0 sub-policies were satisfied, but this policy requires 1 of the ‘Writers‘ sub-policies to be sa

在Fabric网络中创建通道时报错:

Error: got unexpected status: FORBIDDEN -- config update for existing channel did not pass initial checks: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied

在这里插入图片描述

原因通过configtxgen命令生成创世区块时使用的通道名与创建通道时使用的通道名一样,如下所示,channelID-c通道名均为amops

configtxgen -profile SampleMultiNodeEtcdRaft -channelID amops -outputBlock ./channel-artifacts/genesis.block
peer channel create -o agridepartorderer.amops.com:7050 -c amops -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/amops.com/orderers/agridepartorderer.amops.com/msp/tlscacerts/tlsca.amops.com-cert.pem

configtxgen指令中的channel修改成不一样的即可

configtxgen -profile SampleMultiNodeEtcdRaft -channelID amopsdeploy -outputBlock ./channel-artifacts/genesis.block

重启Fabric网络后解决如上问题
成功解决0 sub-policies were satisfied, but this policy requires 1 of the ‘Writers‘ sub-policies to be sa_第1张图片

成功解决:Error: got unexpected status: FORBIDDEN -- config update for existing channel did not pass initial checks: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied的问题。

欢迎小伙伴讨论,文章内容如有错误请在评论区评论或发私聊消息,谢谢你。

你可能感兴趣的:(区块链,Hyperledger,Fabric,2.x,fabric,区块链,linux)