运行第一个网络 byfn.sh up 命令时满足结构错误 0 子策略



大家好,我遵循了Hyperledger-fabric教程,并安装了Fabric docker镜像和fabric-samples存储库。当我运行byfn.shup 命令时,它会抛出以下错误。

/ ___|  |_   _|    /     |  _   |_   _|
___     | |     / _    | |_) |   | |  
___) |   | |    / ___   |  _ <    | |  
|____/    |_|   /_/   _ |_| _   |_|  
Build your first network (BYFN) end-to-end test
Channel name : mychannel
Creating channel...
+ peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
+ res=1
+ set +x
2019-09-09 02:32:24.220 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 succesfully 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
!!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!
========= ERROR !!! FAILED to execute End-2-End Scenario ===========

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

如何修复此错误? 谢谢

尝试执行docker volume prunedocker system prune -a命令删除结构样本并重新安装二进制文件和映像,然后重新运行./byfn.sh up命令。 当我遇到此错误时,我执行了上述步骤并修复了它。

您应该在每个命令后插入"睡眠 10 秒"。

最新更新