I've set up a private network on Amazon Managed Blockchain (AMB) using Hyperledger Fabric and am following this AWS guide to finish the setup. I’ve gone through all the steps one by one. I've hit a roadblock at the step where we need to create the channel.
I'm encountering the following error while executing the create channel command:
[ec2-user@ip-xx-xx-xx-xx ~]$ docker exec cli peer channel create -c mychannel -f /opt/home/mychannel.pb -o orderer.n-xxxxxxxxxxxx.managedblockchain.us-east-1.amazonaws:30001 --cafile /opt/home/managedblockchain-tls-chain.pem --tls
2025-03-11 14:29:02.157 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not successfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied
I've set up a private network on Amazon Managed Blockchain (AMB) using Hyperledger Fabric and am following this AWS guide to finish the setup. I’ve gone through all the steps one by one. I've hit a roadblock at the step where we need to create the channel.
I'm encountering the following error while executing the create channel command:
[ec2-user@ip-xx-xx-xx-xx ~]$ docker exec cli peer channel create -c mychannel -f /opt/home/mychannel.pb -o orderer.n-xxxxxxxxxxxx.managedblockchain.us-east-1.amazonaws:30001 --cafile /opt/home/managedblockchain-tls-chain.pem --tls
2025-03-11 14:29:02.157 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not successfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied
Share Improve this question asked Mar 12 at 9:19 Vinay UttekarVinay Uttekar 111 bronze badge1 Answer
Reset to default 0I fixed the problem. It was related to the configtx.yaml file. I noticed the issue after regenerating the fabric-ca-client-cli Docker container and changing the logging setting from FABRIC_LOGGING_SPEC=INFO
to FABRIC_LOGGING_SPEC=DEBUG
in the docker-compose-cli.yaml file. This allowed me to see the actual error, which was a JSON unmarshal error in the debug log. The problem happened because of how I pasted the configtx.yaml content using the VI editor.
Important: Configtx.yaml file is sensitive. Artifacts from pasting can cause the file to fail with marshalling errors. We recommend using emacs
to edit it. You can also use VI
, but before using VI
, enter :set paste
, press i
to enter insert mode, paste the contents, press escape, and then enter :set nopaste
before saving.