Re: When I run `peer lifecycle chaincode approveformyorg`, I always get the error: ENDORSEMENT_POLICY_FAILURE


Nikhil Gupta
 

The deploy a chaincode to a channel tutorial also has a troubleshooting section that may be helpful: https://hyperledger-fabric.readthedocs.io/en/latest/deploy_chaincode.html#troubleshooting

Nik



-----fabric@... wrote: -----
To: fabric@...
From: "Pam Andrejko"
Sent by: fabric@...
Date: 07/06/2020 08:16AM
Subject: [EXTERNAL] Re: [Hyperledger Fabric] When I run `peer lifecycle chaincode approveformyorg`, I always get the error: ENDORSEMENT_POLICY_FAILURE

I think the problem here is that you are using org1’s admin identity to execute peer lifecycle chaincode approveformyorg

The approval needs to be done by a peer.

See the new channel tutorial: https://hyperledger-fabric.readthedocs.io/en/latest/create_channel/channel_policies.html#signature-policies

The Admins policy can only be satisfied by transactions submitted by an identity with an admin role, while only identities with a peer role can satisfy the Endorsement policy.

Pam


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