admin管理员组文章数量:1391739
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.
本文标签:
版权声明:本文标题:amazon managed blockchain - AWS AMB HyperLedger Fabric Error: Policy Validation Failed During Channel Creation - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744762278a2623822.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论