【问题标题】:Hyperledger Fabric v1.1.0 byfn tutorial on Ubuntu 16.04Ubuntu 16.04上的Hyperledger Fabric v1.1.0 byfn教程
【发布时间】: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


【解决方案1】:

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

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

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

【讨论】:

  • 谢谢。对不起..我只是没有“./byfn.sh -m down”。但你的回答对我很有帮助。
【解决方案2】:

您不必删除文件,只需确保在 Crypto Generator 部分中的步骤之前执行了 ./byfn.sh -m down

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-08
    • 1970-01-01
    • 1970-01-01
    • 2017-12-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多