在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網路后解決如上問題

成功解決: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的問題,
歡迎小伙伴討論,文章內容如有錯誤請在評論區評論或發私聊訊息,謝謝你,
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/246213.html
標籤:區塊鏈
上一篇:golang性能優化筆記
下一篇:prim演算法的證明
