Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hyperledger Genesis Block

Following a guide, doesn't tell me how to fix this. Help?

$ ./byfn.sh -m generate
Generating certs and genesis block for with channel 'mychannel' and CLI timeout of '10000'
Continue (y/n)? y
proceeding ...
/c/Users/Jake/Documents/Hyperledger Project/fabric-samples/bin/cryptogen

##########################################################
##### Generate certificates using cryptogen tool #########
##########################################################
org1.example.com
org2.example.com

./byfn.sh: line 164: cd: too many arguments
sed: -e expression #1, char 85: unterminated `s' command
./byfn.sh: line 166: cd: crypto-config/peerOrganizations/org2.example.com/ca/: No such file or directory
./byfn.sh: line 168: cd: too many arguments
sed: -e expression #1, char 85: unterminated `s' command
/c/Users/Jake/Documents/Hyperledger Project/fabric-samples/bin/configtxgen
##########################################################
#########  Generating Orderer Genesis block ##############
##########################################################
2017-09-09 20:16:32.117 PDT [common/configtx/tool] main -> INFO 001 Loading configuration
2017-09-09 20:16:32.138 PDT [common/configtx/tool] doOutputBlock -> INFO 002 Generating genesis block
2017-09-09 20:16:32.139 PDT [common/configtx/tool] doOutputBlock -> INFO 003 Writing genesis block
2017-09-09 20:16:32.139 PDT [common/configtx/tool] main -> CRIT 004 Error on outputBlock: Error writing genesis block: open ./channel-artifacts/genesis.block: The system cannot find the path specified.
Failed to generate orderer genesis block...

Don't know what CRIT 004 Error means or what path its talking about.

like image 623
Jake Liao Avatar asked Mar 13 '26 13:03

Jake Liao


1 Answers

You're probably hitting:

https://jira.hyperledger.org/browse/FAB-5618 - Hyperledge Fabric Samples directory cannot contain a space

since your script is under:

/c/Users/Jake/Documents/Hyperledger Project/fabric-samples/bin/cryptogen

Why don't you rename Hyperledger Project to something without spaces like HyperledgerProject.

like image 122
tk421 Avatar answered Mar 16 '26 10:03

tk421



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!