title: Hyperledger Fabric: 'Orderer' has invalid keys: EtcdRaft
body: <p>while using the <a href="https://github.com/hyperledger/fabric/blob/release-1.3/sampleconfig/configtx.yaml#L292" rel="nofollow noreferrer">configtx.yaml</a> from official Hyperledger repo we get below error when trying to create a genesis block:</p>
  
  <pre><code>root@774983db9864:/home# configtxgen -profile OrgsOrdererGenesis -outputBlock genesis.block -channelID 4chan
  2019-03-05 19:25:44.240 UTC [common/tools/configtxgen] main -&gt; INFO 001 Loading configuration
  2019-03-05 19:25:44.261 UTC [common/tools/configtxgen/localconfig] Load -&gt; CRIT 002 Error unmarshaling config into struct:  2 error(s) decoding:
  
  * 'Orderer' has invalid keys: EtcdRaft
  * 'Profiles[OrgsOrdererGenesis].Orderer' has invalid keys: EtcdRaft
  2019-03-05 19:25:44.262 UTC [common/tools/configtxgen] func1 -&gt; CRIT 003 Error unmarshaling config into struct: 2 error(s) decoding:
  
  * 'Orderer' has invalid keys: EtcdRaft
  * 'Profiles[OrgsOrdererGenesis].Orderer' has invalid keys: EtcdRaft
  panic: Error unmarshaling config into struct: 2 error(s) decoding:
  
  * 'Orderer' has invalid keys: EtcdRaft
  * 'Profiles[OrgsOrdererGenesis].Orderer' has invalid keys: EtcdRaft [recovered]
      panic: Error unmarshaling config into struct: 2 error(s) decoding:
  
  * 'Orderer' has invalid keys: EtcdRaft
  * 'Profiles[OrgsOrdererGenesis].Orderer' has invalid keys: EtcdRaft
  
  goroutine 1 [running]:
  github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0xc420195e00, 0xc420523560, 0x1, 0x1)
      /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xbd
  main.main.func1()
      /opt/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:254 +0x1ae
  panic(0xc6ea00, 0xc420523550)
      /opt/go/src/runtime/panic.go:505 +0x229
  github.com/hyperledger/fabric/vendor/github.com/op/go-logging.(*Logger).Panic(0xc420195c50, 0xc42054e120, 0x2, 0x2)
      /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/op/go-logging/logger.go:188 +0xbd
  github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.Load(0x7fffbcd538da, 0x12, 0x0, 0x0, 0x0, 0xc4201b3540)
      /opt/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:284 +0x607
  main.main()
      /opt/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:265 +0xce7
  </code></pre>
  
  <p>How can we fix this please?</p>