如何修复实例化链代码时发生的 "context finished before block retrieved: context canceled"?
How to fix "context finished before block retrieved: context canceled" occurred while instantiating chaincode?
实例化命令成功完成,但在分析对等日志时,您可能会注意到:
2019-04-17 17:25:52.581 UTC [gossip.state] commitBlock -> DEBU 48c [canal-contrato] Committed block [1] with 1 transaction(s)
2019-04-17 17:25:52.581 UTC [common.deliver] deliverBlocks -> DEBU 48d [channel: canal-contrato] Delivering block for (0xc00023f9c0) for 192.168.16.1:48230
2019-04-17 17:25:52.581 UTC [fsblkstorage] waitForBlock -> DEBU 48e Going to wait for newer blocks. maxAvailaBlockNumber=[1], waitForBlockNum=[2]
2019-04-17 17:25:52.586 UTC [common.deliver] deliverBlocks -> DEBU 48f Context canceled, aborting wait for next block
2019-04-17 17:25:52.586 UTC [common.deliverevents] func1 -> DEBU 490 Closing Deliver stream
2019-04-17 17:25:52.586 UTC [comm.grpc.server] 1 -> INFO 491 streaming call completed {"grpc.start_time": "2019-04-17T17:25:50.441Z", "grpc.service": "protos.Deliver", "grpc.method": "DeliverFiltered", "grpc.peer_address": "192.168.16.1:48230", "error": "context finished before block retrieved: context canceled", "grpc.code": "Unknown", "grpc.call_duration": "2.144399922s"}
谁能告诉我我可能做错了什么,这个错误的后果是什么?
备注:
- 排序者日志没有出现任何类型的错误
- 所有容器 运行 正确
- 我正在使用节点版本 8.9.0(带有 npm 5.5.1)
- 我有 1 个组织,有 1 个同行、1 个 CA 和 1 个订购(只是为了测试)
- 我正在使用 hyperlegder fabric 版本 1.4
这不是错误。您正在使用连接到对等点并等待实例化完成的 SDK。该块由对等方接收,当它接收时 - SDK 关闭 gRPC 流,因为它不再需要它,并且对等方记录此以通知您它为什么从服务器端关闭流。
实例化命令成功完成,但在分析对等日志时,您可能会注意到:
2019-04-17 17:25:52.581 UTC [gossip.state] commitBlock -> DEBU 48c [canal-contrato] Committed block [1] with 1 transaction(s)
2019-04-17 17:25:52.581 UTC [common.deliver] deliverBlocks -> DEBU 48d [channel: canal-contrato] Delivering block for (0xc00023f9c0) for 192.168.16.1:48230
2019-04-17 17:25:52.581 UTC [fsblkstorage] waitForBlock -> DEBU 48e Going to wait for newer blocks. maxAvailaBlockNumber=[1], waitForBlockNum=[2]
2019-04-17 17:25:52.586 UTC [common.deliver] deliverBlocks -> DEBU 48f Context canceled, aborting wait for next block
2019-04-17 17:25:52.586 UTC [common.deliverevents] func1 -> DEBU 490 Closing Deliver stream
2019-04-17 17:25:52.586 UTC [comm.grpc.server] 1 -> INFO 491 streaming call completed {"grpc.start_time": "2019-04-17T17:25:50.441Z", "grpc.service": "protos.Deliver", "grpc.method": "DeliverFiltered", "grpc.peer_address": "192.168.16.1:48230", "error": "context finished before block retrieved: context canceled", "grpc.code": "Unknown", "grpc.call_duration": "2.144399922s"}
谁能告诉我我可能做错了什么,这个错误的后果是什么?
备注:
- 排序者日志没有出现任何类型的错误
- 所有容器 运行 正确
- 我正在使用节点版本 8.9.0(带有 npm 5.5.1)
- 我有 1 个组织,有 1 个同行、1 个 CA 和 1 个订购(只是为了测试)
- 我正在使用 hyperlegder fabric 版本 1.4
这不是错误。您正在使用连接到对等点并等待实例化完成的 SDK。该块由对等方接收,当它接收时 - SDK 关闭 gRPC 流,因为它不再需要它,并且对等方记录此以通知您它为什么从服务器端关闭流。