Hyperledger fabric Ubuntu 16.04上的Hyperledger Fabric v1.1.0 byfn教程

Hyperledger fabric Ubuntu 16.04上的Hyperledger Fabric v1.1.0 byfn教程,hyperledger-fabric,hyperledger,Hyperledger Fabric,Hyperledger,我使用byfn.sh安装了hyperledger fabric v1.1.0-rc1 (参考: ) 但是我失败了。这是个问题吗 [执行] root@sungil:~/fabric-samples/first-network# export CHANNEL_NAME=mychannel root@sungil:~/fabric-samples/first-network# ../bin/configtxgen -profile TwoOrgsChannel -outputCreateChannel

我使用byfn.sh安装了hyperledger fabric v1.1.0-rc1

(参考: )

但是我失败了。这是个问题吗

[执行]

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")

我的configtx.yaml是

我遇到了类似的问题。帮助我的是重新开始

  • 关闭网络:
    /byfn.sh-m down
  • 清理生成的工件
    • rm加密配置
    • rm通道工件

然后再次发出命令。这对我很有帮助,channel.tx和其他文件都成功创建。无需更改示例中的configtx.yaml。

您不必删除文件,只需确保在加密生成器部分的步骤之前执行了./byfn.sh-m down即可。

您需要添加configtx.yaml文件的内容,因为问题似乎存在。@artemberger我正在使用示例configtx.yaml文件。没有编辑configtx.yaml。请解释一下如何编辑这篇文章…谢谢。对不起。。我只是没有“/byfn.sh-m down”。但是你的回答对我很有帮助。
./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