瘦身小蚂蚁 2021-11-05 00:08 采纳率: 0%
浏览 234
已结题

Hyperledger Fabric v2.3 商业票据 安装链码时报错 Error: chaincode install failed with status: 500

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

  • 写回答

1条回答 默认 最新

  • 瘦身小蚂蚁 2021-11-05 09:55
    关注

    清理网络,又重来一遍就好了,得到如下结果(科学上网)

    [root@localhost magnetocorp]# peer lifecycle chaincode install cp.tar.gz
    2021-11-05 09:13:47.644 CST [cli.lifecycle.chaincode] submitInstallProposal -> INFO 001 Installed remotely: response:<status:200 payload:"\nEcp_0:df23cfaa2d118a48df5002d95521e14df1070e44d7858da6d2da2d9df3f138ce\022\004cp_0" > 
    2021-11-05 09:13:47.644 CST [cli.lifecycle.chaincode] submitInstallProposal -> INFO 002 Chaincode code package identifier: cp_0:df23cfaa2d118a48df5002d95521e14df1070e44d7858da6d2da2d9df3f138ce
    
    
    
    评论

报告相同问题?

问题事件

  • 系统已结题 11月13日
  • 创建了问题 11月5日

悬赏问题

  • ¥15 curl 命令调用正常,程序调用报 java.net.ConnectException: connection refused
  • ¥15 使用百度地图api 位置函数报错?
  • ¥15 metamask如何添加TRON自定义网络
  • ¥66 关于川崎机器人调速问题
  • ¥15 winFrom界面无法打开
  • ¥30 crossover21 ARM64版本安装软件问题
  • ¥15 mymetaobjecthandler没有进入
  • ¥15 mmo能不能做客户端怪物
  • ¥15 osm下载到arcgis出错
  • ¥15 Dell g15 每次打开eiq portal后3分钟内自动退出