Enroll ID type error #fabric


George
 

Hello
Im trying to invoke a transaction on basic network
The error that I get is:
[discovery] chaincodeQuery -> ERRO 06c Failed constructing descriptor for chaincode chaincodes:<name:"mycc" > ,: cannot satisfy any principal combination

After a search I did i found that this error occurs when the peer's enroll id type does not match the smart contract endorsement policy that was configured when the smart contract was instantiated on the channel.
The fix for that as described on this link: https://cloud.ibm.com/docs/services/blockchain-rhos?topic=blockchain-rhos-ibp-v2-troubleshooting#ibp-v2-troubleshooting-anchor-peer
is that the only way to resolve this error is to delete the peer and create a new one with an enroll id that has the correct type peer.

How am I doing that?

I have succesfully install, instantiated and run contracts on byfn(first network sample). Whats different on the basic network other than the existence of a CA container.

Thats how I instantianted the contract:
peer chaincode instantiate -o orderer.example.com:7050 -C $CHANNEL_NAME -n mycc -l node -v 1.0 -c '{"Args":[]}' -P "AND ('Org1MSP.peer')"

Thanks in advance

Join fabric@lists.hyperledger.org to automatically receive all group messages.