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?