5 fabric2.4本地启动网络遇到的问题

根据网上的教程,在fabric2.4版本,利用crypto-config生成了证书文件,利用configtx.yaml生成了创世区块文件,同时改写orderer.yaml和core.yaml分别启动了orderer模块和peer模块,创建通道提案文件fabrichannel.tx和锚节点通知提案Org1MSPanchors.tx,但在使用Peer生成创世通道初始块时报错: Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'fabricchannel', 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。 查看orderer的日志,提示是没有满足通道生成policy的管理员权限问题: 2022-05-20 02:17:47.485 CST 002a WARN [common.configtx] verifyDeltaSet -> policy not satisfied for channel configuration update key="[Group] /Channel/Application" policy="{0xc000368680 /Channel/Application/ChannelCreationPolicy}" signingIdenties="(mspid=BcOrg1MSP subject=CN=Admin@org1.qklszzn.com,OU=admin,L=San Francisco,ST=California,C=US issuer=CN=ca.org1.qklszzn.com,O=org1.qklszzn.com,L=San Francisco,ST=California,C=US serialnumber=91114124614091991289027671513182889381)" 2022-05-20 02:17:47.485 CST 002b WARN [orderer.common.broadcast] ProcessMessage -> [channel: fabricchannel] Rejecting broadcast of config message from 127.0.0.1:44158 because of error: error validating channel creation transaction for new channel 'fabricchannel', 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 但我已经配置过相关环境变量,是以管理员的证书发起交易的: export CORE_PEER_TLS_ENABLED=true

export set CORE_PEER_LOCALMSPID=BcOrg1MSP

export CORE_PEER_MSPCONFIGPATH=/var/qklszzn/crypto-config/peerOrganizations/org1.qklszzn.com/users/Admin@org1.qklszzn.com/msp

export CORE_PEER_TLS_ROOTCERT_FILE=/var/qklszzn/crypto-config/peerOrganizations/org1.qklszzn.com/users/Admin@org1.qklszzn.com/tls/ca.crt

export ORDERER_TLSCA=/var/qklszzn/crypto-config/ordererOrganizations/qklszzn.com/orderers/orderer.qklszzn.com/msp/tlscacerts/tlsca.qklszzn.com-cert.pem 请问有谁知道问题出在哪里吗?

请先 登录 后评论

1 个回答

Alan
请先 登录 后评论
  • 1 关注
  • 0 收藏,2912 浏览
  • Devin Williams 提出于 2022-05-20 02:28