简体   繁体   中英

Failed to generate orderer genesis block - Hyperledger Fabric

I am trying to run the startFabric.sh script but it fails with the following error. 文本](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!!

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

  2. You do not have appropriate permission to access the folder which has config.yaml file. In this case, it's

    fabric-samples/test-network/organizations/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. So, running byfn.sh would not be of much help.

Use FABRIC_CFG_PATH=$PWD/../config/ with your $PWD set to ~/fabric-samples/fabcar

Also check that configtx.yaml exists in ~/fabric-samples/test-network/configtx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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