Cannot create genesis block

0 votes

When I try to create a genesis block using 

 ../bin/configtxgen -profile SixOrgsOrdererGenesis -channelID byfn-sys-channel -outputBlock ./channel-artifacts/genesis.block

It leaves me an error like this on the console.

?[34m2019-02-27 16:32:27.550 +0530 [common.tools.configtxgen] main -> INFO 001?[0m Loading configuration
?[35m2019-02-27 16:32:27.591 +0530 [common.tools.configtxgen.localconfig] Load -> PANI 002?[0m Error unmarshaling config into struct:  1 error(s) decoding:

* 'Profiles[SixOrgsChannel]' has invalid keys: SampleConsortium
?[35m2019-02-27 16:32:27.591 +0530 [common.tools.configtxgen] func1 -> PANI 003?[0m Error unmarshaling config into struct:  1 error(s) decoding:

* 'Profiles[SixOrgsChannel]' has invalid keys: SampleConsortium
panic: Error unmarshaling config into struct:  1 error(s) decoding:

* 'Profiles[SixOrgsChannel]' has invalid keys: SampleConsortium [recovered]
        panic: Error unmarshaling config into struct:  1 error(s) decoding:

* 'Profiles[SixOrgsChannel]' has invalid keys: SampleConsortium

goroutine 1 [running]:
github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0000c4c60, 0x0, 0x0, 0x0)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x51c
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc000006248, 0xc0002ab804, 0xc000046750, 0x82, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xfd
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc000006248, 0xc000046750, 0x82,
0x0, 0x0, 0x0)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x80
github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc000006250, 0xc0002ab938, 0x1, 0x1)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x7c
main.main.func1()
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:250 +0x1b0
panic(0xa2fe00, 0xc00047d050)
        /opt/go/go1.11.1.linux.amd64/src/runtime/panic.go:513 +0x1c7
github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0000c4c60, 0x0, 0x0, 0x0)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x51c
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc000006228, 0xc0002abc04, 0xc0000465a0, 0x82, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xfd
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc000006228, 0xc0000465a0, 0x82,
0x0, 0x0, 0x0)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x80
github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc000006230, 0xc0002abd98, 0x2, 0x2)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x7c
github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.Load(0xc000032480, 0x15, 0x0, 0x0, 0x0, 0xc000137540)
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:282 +0x587
main.main()
        /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:261 +0xb36

Can someone help me to solve this problem?

Feb 27, 2019 in Blockchain by Tharindu
• 170 points

edited Feb 28, 2019 by Omkar 1,926 views

Did you make sure you are running configtxgen in the same path where configtx.yaml is located?

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Blockchain

0 votes
1 answer

How to create a Genesis Block in a Private Network?

{     "nonce": "0x0000000000000042",     "difficulty": "0x000000100",     "alloc": {     },     "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",     "coinbase": "0x0000000000000000000000000000000000000000",     "timestamp": "0x00",     "parentHash": ...READ MORE

answered Jul 12, 2018 in Blockchain by digger
• 26,740 points
2,001 views
+4 votes
2 answers

How do I create a new block in Hyperledger Fabric?

This link might help you: https://github.com/hyperledger/fabric-sample ...READ MORE

answered Oct 11, 2018 in Blockchain by Sahu
2,653 views
0 votes
1 answer

How do transactions create a new block in Blockchain?

Bitcoin puts a cap of 2,400 transactions ...READ MORE

answered Aug 10, 2018 in Blockchain by Christine
• 15,790 points
1,850 views
0 votes
1 answer

How to get genesis block value at new bitcoin source?

chainparams.cpp contains a line of code that ...READ MORE

answered Sep 4, 2018 in Blockchain by digger
• 26,740 points
968 views
0 votes
1 answer

How to reintialize genesis block in geth ethereum?

You are getting this error because you ...READ MORE

answered Dec 6, 2018 in Blockchain by Omkar
• 69,220 points
6,311 views
0 votes
0 answers

Cannot create crypto materiel with cryptogen command?

When I am creating crypto-materiel with cryptogen ...READ MORE

Feb 26, 2019 in Blockchain by Tharindu
• 170 points
1,642 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,740 points
1,003 views
+1 vote
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP