Uploaded image for project: 'Fabric'
  1. Fabric
  2. FAB-18194

Service discovery - endorsement service error after peers/orderers restarted

    XMLWordPrintable

Details

    • (Please add steps to reproduce)

    Description

      I have a network setup with the following topology

      • 3 CAs (one for ordering service and the other two CAs for two different peer orgs)
      • A 5 node raft cluster
      • org1 with a single peer peer1 (Anchor peer)
      • org2 with a single peer peer2 (Anchor peer)

      Created a channel mychannel, installed chaincode fabcar from here

      Sent transactions (~4K) to each peer from two different identities.

      Up on restarting peers and orderers transactions started failing with this error

      2020-08-28 15:50:58.800 UTC [comm.grpc.server] 1 -> INFO 041 unary call completed grpc.service=discovery.Discovery grpc.method=Discover grpc.peer_address=172.30.166.5:55204 grpc.code=OK grpc.call_duration=1.835501ms
      2020-08-28 15:50:58.844 UTC [discovery] chaincodeQuery -> ERRO 042 Failed constructing descriptor for chaincode chaincodes:<name:"fabcar" > ,: required chaincodes are not installed on sufficient peers
      

      error on sdk client

      2020-08-28T17:21:19.783Z - error: [Channel.js]: Channel:mychannel received discovery error:failed constructing descriptor for chaincodes:<name:"fabcar" >
      2020-08-28T17:21:19.784Z - error: [DiscoveryEndorsementHandler]: endorse - no endorsement plan found for {"chaincodes":[{"name":"fabcar"}]}
      Failed to submit transaction: Error: No endorsement plan available for {"chaincodes":[{"name":"fabcar"}]}
      

      logs for the peer are enclosed

      Attachments

        1. peer1-logs.txt
          2.13 MB
          Ratnakar Asara

        Issue Links

          Activity

            People

              denyeart David Enyeart
              Ratnakar Ratnakar Asara
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: