简体   繁体   English

无法生成 orderer 创世块 - Hyperledger Fabric

[英]Failed to generate orderer genesis block - Hyperledger Fabric

I am trying to run the startFabric.sh script but it fails with the following error.我正在尝试运行 startFabric.sh 脚本,但它失败并出现以下错误。 文本](https://stackoverflow.com/image.jpg)[![在此处输入图像描述

There are already several solutions posted for this problem.已经针对此问题发布了几种解决方案。 I went through almost all of them changing the FABRIC_CFG_PATH variable, running byfn.sh before this etc. etc. Still can not resolve!!我经历了几乎所有更改 FABRIC_CFG_PATH 变量,在此之前运行 byfn.sh 等等等等。仍然无法解决!

Can you make sure that you can run你能确保你可以运行吗

./network.sh up

inside里面

fabric-samples/test-network/

? ? The error you are getting maybe result of one of the followings:您收到的错误可能是以下原因之一:

  1. You have an incomplete fabric-samples folder, OR您有一个不完整的 fabric-samples 文件夹,或者

  2. You do not have appropriate permission to access the folder which has config.yaml file.您没有适当的权限来访问包含 config.yaml 文件的文件夹。 In this case, it's在这种情况下,它是

    fabric-samples/test-network/organizations/ordererOrganizations/example.com/msp织物样本/测试网络/组织/ordererOrganizations/example.com/msp

  3. You do not have certificates generated for the orgs.您没有为组织生成的证书。

Please share more info, so it's easier to navigate through the problem请分享更多信息,以便更轻松地解决问题

PS The fabcar example in Fabric 2.1 uses test-network instead of first-network used in previous versions. PS Fabric 2.1 中的 fabcar 示例使用 test-network 而不是之前版本中使用的 first-network。 So, running byfn.sh would not be of much help.因此,运行 byfn.sh 不会有太大帮助。

Use FABRIC_CFG_PATH=$PWD/../config/ with your $PWD set to ~/fabric-samples/fabcar使用FABRIC_CFG_PATH=$PWD/../config/将 $PWD 设置为~/fabric-samples/fabcar

Also check that configtx.yaml exists in ~/fabric-samples/test-network/configtx还要检查~/fabric-samples/test-network/configtx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM