AWSAMB HYPERLEDGER面料错误:策略验证在频道创建期间失败

问题描述 投票:0回答:1

[ec2-user@ip-xx-xx-xx-xx〜] $ docker exec cli peer clunner create-c myChannel -f/opt/home/mychannel.pb -o order.n-xxxxxxxxxxxxxxxxxxxxxxxxxx x。 /OPT/HOME/MANAGEDBLOCKCHAIN-TLS-CHAIN.PEM-TLS 2025-03-1114:29:02.157 UTC [ChannelCMD] InitcmdFactory-> Info 001认可和订购器连接初始化 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

我解决了问题。它与configtx.yaml文件有关。在再生Fabric-Ca-Client-CLI Docker容器并将日志记录设置从docker-compose-cli.yaml文件中更改为

FABRIC_LOGGING_SPEC=INFO

之后,我注意到了问题。这使我可以看到实际错误,这是调试日志中的JSON Unmarshal错误。问题之所以发生是因为我是如何使用vi编辑器粘贴configtx.yaml内容的。 最重要的:configtx.yaml文件很敏感。粘贴的工件可能会导致文件随着编组错误而失败。我们建议使用

FABRIC_LOGGING_SPEC=DEBUG

对其进行编辑。您也可以使用

emacs

,但是在使用
hyperledger-fabric amazon-managed-blockchain
1个回答
0
投票
之前,输入

VI

,按
:set paste
输入插入模式,粘贴内容,按Escape,然后在保存之前输入
i


最新问题
© www.soinside.com 2019 - 2025. All rights reserved.