Welcome to the Linux Foundation Forum!

Lab 4 - Error Instatiating Chaincode "error endorsing chaincode: rpc error"

Hi,

I got the following error while trying to instantiate the contract with and without endorsing policy.
Any idea as to why both commands are faling?

Command:
peer chaincode instantiate -n ccForAll -v 1.0 \ -o orderer.example.com:7050 -C allarewelcome \ -c '{"Args":["Mach","50"]}' \ --policy "AND('Org1.peer', OR ('Org1.member))"

Result:
Error: error getting channel (allarewelcome) orderer endpoint: error bad proposal response 500: access denied for [GetConfigBlock][allarewelcome]: Failed to get policy manager for channel [allarewelcome]

command:

peer chaincode instantiate -n ccForAll -v 1.0 -o orderer.example.com:7050 -C allarewelcome -c '{"Args":["Mach","50"]}'

Result:
Error: error endorsing chaincode: rpc error: code = Unknown desc = access denied: channel [allarewelcome] creator org [Org1MSP]

Comments

  • kmyatt
    kmyatt Posts: 39

    I noticed you posted the same issue in a separate thread(which looks to have been resolved). Closing this out, if you still have not moved past this error, feel free to let me know. Thanks

  • Can you share the link to the thread where the solution/fix is provided?

Categories

Upcoming Training