Hyperledger fabric orderer

I am working on a project which involves setting up 3 orderer nodes on two different systems and some peer nodes on other systems. I am always encountering this error for my orderer.yaml file.

2025-01-03 01:40:14.934 IST 000d ERRO [orderer.common.server] Main -> failed to parse config: json: unsupported type: map[interface {}]interface {}

This is everything i tried. Checking for proper path of my msp and tls directories (everything was in place). Tried fixing indentation errors and also used yaml to json converter to check if it not being able to convert to json. Help me with proper details on what to do.

This is orderer.yaml

---
General:
  ListenAddress: "0.0.0.0"
  ListenPort: 7050
  TLS:
    Enabled: true
    PrivateKey: "/home/adimaj/hyperledger-fabric-network/fabric-orderer/orderer1/tls/server.key"
    Certificate: "/home/adimaj/hyperledger-fabric-network/fabric-orderer/orderer1/tls/server.crt"
    RootCAs:
      - "/home/adimaj/hyperledger-fabric-network/fabric-orderer/orderer1/tls/ca.crt"
  LocalMSPDir: "/home/adimaj/hyperledger-fabric-network/fabric-orderer/orderer1/msp"
  LocalMSPID: "OrdererMSP"
  BootstrapMethod: "file"
  BootstrapFile: "/home/adimaj/hyperledger-fabric-network/config/genesis.block"

FileLedger:
  Location: "/home/adimaj/hyperledger-fabric-network/fabric-orderer/orderer1/ledger"
  Prefix: "hyperledger-fabric-ordererledger"

Consensus:
  Type: "etcdraft"
  WALDir: "/home/adimaj/hyperledger-fabric-network/fabric-orderer/orderer1/etcdraft/wal"
  SnapDir: "/home/adimaj/hyperledger-fabric-network/fabric-orderer/orderer1/etcdraft/snapshot"
  EtcdRaft:
    Consenters:
      - Host: "100.122.232.124"
        Port: 7050
        ClientTLSCert: "/home/adimaj/hyperledger-fabric-network/fabric-orderer/orderer1/tls/server.crt"
        ServerTLSCert: "/home/adimaj/hyperledger-fabric-network/fabric-orderer/orderer1/tls/server.crt"
      - Host: "100.73.51.9"
        Port: 8050
        ClientTLSCert: "/home/Fabric/hyperledger-fabric-network/fabric-orderer/orderer2/tls/server.crt"
        ServerTLSCert: "/home/Fabric/hyperledger-fabric-network/fabric-orderer/orderer2/tls/server.crt"
      - Host: "100.73.51.9"
        Port: 9050
        ClientTLSCert: "/home/Fabric/hyperledger-fabric-network/fabric-orderer/orderer3/tls/server.crt"
        ServerTLSCert: "/home/Fabric/hyperledger-fabric-network/fabric-orderer/orderer3/tls/server.crt"
    Options:
      TickInterval: "500ms"
      ElectionTick: 10
      HeartbeatTick: 1
      MaxInflightBlocks: 5
      SnapshotIntervalSize: "16 MB"

ChannelParticipation:
  Enabled: true
  MaxRequestBodySize: 1000000

Operations:
  ListenAddress: "127.0.0.1:9443"
  TLS:
    Enabled: false

Metrics:
  Provider: "prometheus"

Upvotes: 0

Views: 25

Answers (0)

Related Questions