Hyperledger Fabric v2.3 商业票据 安装链码时报错
注:科学上网也试过了,同样的错误
[root@localhost magnetocorp]# peer lifecycle chaincode install cp.tar.gz
Error: chaincode install failed with status: 500 - error in simulation: failed to execute transaction a4f10bb40a32943f02428c9e0b72d363cf4871398fc53c140e27fdea0172f85a: error sending: timeout expired while executing transaction
监听窗囗日志
[root@localhost magnetocorp]# ./configuration/cli/monitordocker.sh fabric_test
......
peer0.org2.example.com|2021-11-04 15:23:18.026 UTC [endorser] callChaincode -> INFO 04f finished chaincode: lscc duration: 0ms channel= txID=c5f80f17
peer0.org2.example.com|2021-11-04 15:23:18.026 UTC [comm.grpc.server] 1 -> INFO 050 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.22.0.1:40642 grpc.code=OK grpc.call_duration=659.21µs
peer0.org2.example.com|2021-11-04 15:35:35.060 UTC [endorser] callChaincode -> INFO 051 finished chaincode: _lifecycle duration: 300001ms channel= txID=a4f10bb4
peer0.org2.example.com|2021-11-04 15:35:35.060 UTC [endorser] SimulateProposal -> ERRO 052 failed to invoke chaincode _lifecycle, error: timeout expired while executing transaction
peer0.org2.example.com|github.com/hyperledger/fabric/core/chaincode.(*Handler).Execute
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/chaincode/handler.go:1181
peer0.org2.example.com|github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).execute
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:272
peer0.org2.example.com|github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Invoke
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:202
peer0.org2.example.com|github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Execute
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:155
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*SupportImpl).Execute
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/support.go:126
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:119
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:187
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposalSuccessfullyOrError
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:398
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:340
peer0.org2.example.com|github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61
peer0.org2.example.com|github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:32
peer0.org2.example.com|github.com/hyperledger/fabric-protos-go/peer._Endorser_ProcessProposal_Handler.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer/peer.pb.go:107
peer0.org2.example.com|github.com/hyperledger/fabric/internal/peer/node.unaryGrpcLimiter.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/internal/peer/node/grpc_limiters.go:51
peer0.org2.example.com|github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
peer0.org2.example.com|github.com/hyperledger/fabric/common/grpclogging.UnaryServerInterceptor.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/common/grpclogging/server.go:92
peer0.org2.example.com|github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
peer0.org2.example.com|github.com/hyperledger/fabric/common/grpcmetrics.UnaryServerInterceptor.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/common/grpcmetrics/interceptor.go:31
peer0.org2.example.com|github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
peer0.org2.example.com|github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34
peer0.org2.example.com|github.com/hyperledger/fabric-protos-go/peer._Endorser_ProcessProposal_Handler
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer/peer.pb.go:109
peer0.org2.example.com|google.golang.org/grpc.(*Server).processUnaryRPC
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1180
peer0.org2.example.com|google.golang.org/grpc.(*Server).handleStream
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1503
peer0.org2.example.com|google.golang.org/grpc.(*Server).serveStreams.func1.2
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:843
peer0.org2.example.com|runtime.goexit
peer0.org2.example.com| /usr/local/go/src/runtime/asm_amd64.s:1371
peer0.org2.example.com|error sending
peer0.org2.example.com|failed to execute transaction a4f10bb40a32943f02428c9e0b72d363cf4871398fc53c140e27fdea0172f85a
peer0.org2.example.com|github.com/hyperledger/fabric/core/chaincode.processChaincodeExecutionResult
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:161
peer0.org2.example.com|github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Execute
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:156
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*SupportImpl).Execute
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/support.go:126
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:119
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:187
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposalSuccessfullyOrError
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:398
peer0.org2.example.com|github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/endorser/endorser.go:340
peer0.org2.example.com|github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61
peer0.org2.example.com|github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:32
peer0.org2.example.com|github.com/hyperledger/fabric-protos-go/peer._Endorser_ProcessProposal_Handler.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer/peer.pb.go:107
peer0.org2.example.com|github.com/hyperledger/fabric/internal/peer/node.unaryGrpcLimiter.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/internal/peer/node/grpc_limiters.go:51
peer0.org2.example.com|github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
peer0.org2.example.com|github.com/hyperledger/fabric/common/grpclogging.UnaryServerInterceptor.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/common/grpclogging/server.go:92
peer0.org2.example.com|github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
peer0.org2.example.com|github.com/hyperledger/fabric/common/grpcmetrics.UnaryServerInterceptor.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/common/grpcmetrics/interceptor.go:31
peer0.org2.example.com|github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
peer0.org2.example.com|github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34
peer0.org2.example.com|github.com/hyperledger/fabric-protos-go/peer._Endorser_ProcessProposal_Handler
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric-protos-go/peer/peer.pb.go:109
peer0.org2.example.com|google.golang.org/grpc.(*Server).processUnaryRPC
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1180
peer0.org2.example.com|google.golang.org/grpc.(*Server).handleStream
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1503
peer0.org2.example.com|google.golang.org/grpc.(*Server).serveStreams.func1.2
peer0.org2.example.com| /go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:843
peer0.org2.example.com|runtime.goexit
peer0.org2.example.com| /usr/local/go/src/runtime/asm_amd64.s:1371 channel= txID=a4f10bb4
peer0.org2.example.com|2021-11-04 15:35:35.061 UTC [endorser] ProcessProposal -> WARN 053 Failed to invoke chaincode channel= chaincode=_lifecycle error="error in simulation: failed to execute transaction a4f10bb40a32943f02428c9e0b72d363cf4871398fc53c140e27fdea0172f85a: error sending: timeout expired while executing transaction"
peer0.org2.example.com|2021-11-04 15:35:35.061 UTC [comm.grpc.server] 1 -> INFO 054 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.22.0.1:40660 grpc.code=OK grpc.call_duration=5m0.00276573s
环境:
操作系统: VMware Workstation 15 Pro 中安装虚拟机 centos7