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

Chaincode instantiation works even though install fails

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Invalid: Works as Expected
    • v2.0.0
    • v2.0.0
    • fabric-peer
    • None
    • Yes
    • In v2.0 chaincode install also builds the chaincode image. This may result in a timeout where the client receives an error, even though the install and chaincode image build ultimately succeeds on the peer.
    • (Please add steps to reproduce)

    Description

      Below are the logs observed while installing the chain code(samplecc)

      2019-10-17 20:35:53.434 UTC [comm.grpc.server] 1 -> INFO 040 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=192.168.192.1:59852 grpc.code=OK grpc.call_duration=30.001171172s2019-10-17 20:35:53.434 UTC [comm.grpc.server] 1 -> INFO 040 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=192.168.192.1:59852 grpc.code=OK grpc.call_duration=30.001171172s2019-10-17 20:35:53.695 UTC [endorser] callChaincode -> INFO 041 [][133fb534] Exit chaincode: lscc (30003ms)2019-10-17 20:35:53.695 UTC [endorser] SimulateProposal -> ERRO 042 [][133fb534] failed to invoke chaincode lscc, error: timeout expired while executing transactiongithub.com/hyperledger/fabric/core/chaincode.(*Handler).Execute /go/src/github.com/hyperledger/fabric/core/chaincode/handler.go:1201github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).execute /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:269github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Invoke /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:198github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Execute /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:151github.com/hyperledger/fabric/core/endorser.(*SupportImpl).Execute /go/src/github.com/hyperledger/fabric/core/endorser/support.go:126github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:114github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:174github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposalSuccessfullyOrError /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:379github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:324github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal /go/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal /go/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:32github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer._Endorser_ProcessProposal_Handler.func1 /go/src/github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer/peer.pb.go:107github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1 /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:31github.com/hyperledger/fabric/common/grpclogging.UnaryServerInterceptor.func1 /go/src/github.com/hyperledger/fabric/common/grpclogging/server.go:92github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1 /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34github.com/hyperledger/fabric/common/grpcmetrics.UnaryServerInterceptor.func1 /go/src/github.com/hyperledger/fabric/common/grpcmetrics/interceptor.go:31github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1 /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:39github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer._Endorser_ProcessProposal_Handler /go/src/github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer/peer.pb.go:109github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processUnaryRPC /go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:998github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream /go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1278github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1 /go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:717runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1337error sendingfailed to execute transaction 133fb53419f715d89e03e9be18a794088a2d79aff0e2159303ef5f0b183c701fgithub.com/hyperledger/fabric/core/chaincode.processChaincodeExecutionResult
      

      But after this, instantiation, invokes and queries are working

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bharadwajambati1 Bharadwaj Ambati
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: