【发布时间】:2019-05-30 22:22:18
【问题描述】:
root@sungil:~/fabric-samples/first-network# export CHANNEL_NAME=mychannel
root@sungil:~/fabric-samples/first-network# ../bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME
2018-03-19 13:11:51.489 KST [common/tools/configtxgen] main -> INFO 001 Loading configuration
2018-03-19 13:11:51.494 KST [common/tools/configtxgen] doOutputChannelCreateTx -> INFO 002 Generating new channel configtx
2018-03-19 13:11:51.495 KST [msp] getMspConfig -> INFO 003 Loading NodeOUs
2018-03-19 13:11:51.495 KST [msp] getMspConfig -> INFO 004 Loading NodeOUs
2018-03-19 13:11:51.510 KST [common/tools/configtxgen] main -> CRIT 005 Error on outputChannelCreateTx: config update generation failure: could not parse application to application group: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org2.example.com")
我使用 byfn.sh 安装了 hyperledger fabric v1.1.0-rc1。
(参考: http://hyperledger-fabric.readthedocs.io/en/lastest/build_network.html)
但我遇到了一些失败。是 Fabric CA 的问题吗?
[执行]
./byfn.sh -m generate
./byfn.sh -m up
../bin/cryptogen generate --config=./crypto-config.yaml
export FABRIC_CFG_PATH=$PWD
../bin/configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block
export CHANNEL_NAME=mychannel
./bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME
我的 configtx.yaml 是 https://github.com/hyperledger/fabric-samples/blob/release-1.1/first-network/configtx.yaml
【问题讨论】:
-
您需要添加 configtx.yaml 文件的内容,因为看起来问题就在那里。
-
@ArtemBarger 我正在使用示例 configtx.yaml 文件。没有编辑 configtx.yaml。请解释如何编辑这种情况...
标签: hyperledger-fabric hyperledger