在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