Error: 2 UNKNOWN: access denied: channel [contentbackchainchannel] creator org

♀尐吖头ヾ 提交于 2019-12-03 08:00:40

问题


I've fabric network setup with two orgs; orchestratororg and participantorg.

With user of orchestratororg I can invoke or query chaincode but when trying to query with user of participantorg I get an error as follows:

"Error: 2 UNKNOWN: access denied: channel [contentbackchainchannel] creator org [ParticipantOrgMSP]"

You can access my network setup under Network config


回答1:


Try to use following commands,

Inside fabric-tools folder

./teardownFabric.sh
./startFabric.sh
./createPeerAdminCard.sh

Then go to business card and run following.

Make sure you already created archive file for your business card (tutorial-network):

composer network install --card PeerAdmin@hlfv1 --archiveFile tutorial-network@0.0.1.bna

composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card

Refer this link for more https://hyperledger.github.io/composer/latest/tutorials/developer-tutorial




回答2:


you need to check the value of CORE_PEER_LOCALMSPID if exactly same as the value that you have set in the configtx.yaml. or maybe already channel exists




回答3:


Check if the participantorg's peers joined to the channel or not.
The peer who is interacting with channel must joined the channel.
Channel also have one channel MSP in which it keep the information of joined peers.
So when you're trying to interact with channel with the peer which is yet not joined the channel will get the error message.



来源:https://stackoverflow.com/questions/51282620/error-2-unknown-access-denied-channel-contentbackchainchannel-creator-org

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!