1

我有时在我的 Hyperledger Fabric 对等节点 (v1.4) 中收到以下错误。有时系统在它之后工作正常,但是一旦我看到 ContractRouter 在该错误之后完全启动,此时需要执行链代码。知道这可能是什么原因吗?如果重新启动运行链代码的底层 docker 容器会不会有问题?(如日志所示,这将是 pod nid1-blockchain-hapeer1-mrrc-0.9.8)

如何检查运行链代码的 docker 的 DinD docker(我使用 Kubernetes)中的日志?(我正在使用 Java 链代码)。谢谢。

2020-01-24 11:57:23.623 UTC [chaincode] ProcessStream -> ERRO 1fc9e handling chaincode support stream: rpc error: code = Canceled desc = context canceled
receive failed
github.com/hyperledger/fabric/core/chaincode.(*Handler).ProcessStream
    /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:442
github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).HandleChaincodeStream
    /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:191
github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).Register
    /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:196
github.com/hyperledger/fabric/core/chaincode/accesscontrol.(*interceptor).Register
    /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/accesscontrol/interceptor.go:57
github.com/hyperledger/fabric/protos/peer._ChaincodeSupport_Register_Handler
    /opt/gopath/src/github.com/hyperledger/fabric/protos/peer/chaincode_shim.pb.go:1069
github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processStreamingRPC
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1124
github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1212
github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:686
runtime.goexit
    /opt/go/src/runtime/asm_amd64.s:1337
2020-01-24 11:57:23.693 UTC [dockercontroller] func2 -> INFO 1fc9f Container nid1-blockchain-hapeer1-mrrc-0.9.8 has closed its IO channel
4

0 回答 0