- Newest
- Most votes
- Most comments
When working with Amazon Managed Blockchain (AMB) Hyperledger Fabric with a single organization and peer, you're encountering an endorsement policy failure during chaincode commitment despite successful installation and approval.
The issue likely stems from your endorsement policy configuration. In your configtx.yaml, you've set both the LifecycleEndorsement and Endorsement policies to "MAJORITY Endorsement" which works well in multi-organization networks but can cause issues in a single-org setup.
For a single organization network, try changing these policies to "ANY Endorsement" instead of "MAJORITY Endorsement" in both the Channel and Application sections. This change allows any valid endorser to satisfy the policy rather than requiring a majority, which makes more sense for your current single-org setup.
Additionally, when committing chaincode, you might need to explicitly specify the endorsement policy that matches your network configuration. Since you're using a single organization, you could try committing with an explicit endorsement policy parameter that specifies your organization as the only endorser.
Another thing to check is that your peer node has the proper permissions and that the identity you're using for these operations has the required authorization to perform chaincode operations. The error could also indicate issues with the certificates or identity configuration.
Remember that peer nodes in Amazon Managed Blockchain have specific security requirements, including no direct internet access, which means all dependencies must be properly bundled with your chaincode when deploying.
Sources
Troubleshooting Amazon Managed Blockchain (AMB) Hyperledger Fabric identity and access - Amazon Managed Blockchain (AMB)
How to bundle and commit Node.js chaincode on Amazon Managed Blockchain Hyperledger Fabric | AWS re:Post
answered a year ago
Relevant content
asked 3 years ago
asked 3 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 8 months ago
