Ubuntu 16.04上的Hyperledger Fabric v1.1.0 byfn教程 [英] Hyperledger Fabric v1.1.0 byfn tutorial on Ubuntu 16.04

查看:106
本文介绍了Ubuntu 16.04上的Hyperledger Fabric v1.1.0 byfn教程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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.

I installed hyperledger fabric v1.1.0-rc1 using byfn.sh.

(参考: http://hyperledger-fabric.readthedocs.io/en/lastest/build_network. html )

但是我失败了.这是Fabric CA问题吗?

But I got some failure. It's Fabric CA problem?

[已执行]

./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

my configtx.yaml is https://github.com/hyperledger/fabric-samples/blob/release-1.1/first-network/configtx.yaml

推荐答案

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

I faced a similar issue. What helped me was to start over.

  • 关闭网络:./byfn.sh -m down
  • 清理生成的工件
    • rm crypto-config
    • rm channel-artifacts
    • Bring down the network: ./byfn.sh -m down
    • Clean up the generated artifacts
      • rm crypto-config
      • rm channel-artifacts

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

      Then issue again the commands. This helped me, the channel.tx and other were successfully created. No need to change the configtx.yaml from the sample.

      这篇关于Ubuntu 16.04上的Hyperledger Fabric v1.1.0 byfn教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆