Eventhub已经关闭。无法以任何方式通过SDK调用链代码。 CLI虽然可以

时间:2018-05-06 10:36:02

标签: hyperledger-fabric

我正在运行Hyperledger Fabric v1.0,设置运行正常几周。突然,我的应用程序无法通过Nodejs SDK调用链代码并收到错误

  

Eventhub已关闭

我试图通过CLI调用,但链码工作正常。

我看到有另一篇文章有​​类似问题(About error when sending multiple requests),但似乎没有提到解决方案。

仅供参考,在我的应用程序中,它会每隔2分钟ping一次链码以保持grpc连接的活动状态。我不确定这是否会导致这个问题?

以下是来自Peer节点的错误日志。

2018-05-06 14:36:00.915 UTC [eventhub_producer] Chat -> ERRO 16ec error during Chat, stopping handler: rpc error: code = Canceled desc = context canceled
2018-05-06 14:36:00.915 UTC [eventhub_producer] Chat -> ERRO 16ee error during Chat, stopping handler: rpc error: code = Canceled desc = context canceled
2018-05-06 14:37:30.881 UTC [committer] Commit -> ERRO 45f61 Error publishing block 38275, because: could not send the blocking event
2018-05-06 14:37:31.212 UTC [committer] Commit -> ERRO 4617e Error publishing block 38276, because: could not send the blocking event
2018-05-06 14:37:31.404 UTC [committer] Commit -> ERRO 46254 Error publishing block 38277, because: could not send the blocking event
2018-05-06 14:37:31.671 UTC [committer] Commit -> ERRO 4630d Error publishing block 38278, because: could not send the blocking event
2018-05-06 14:38:00.881 UTC [committer] Commit -> ERRO 5c0ae Error publishing block 1502, because: could not send the blocking event
2018-05-06 14:38:01.737 UTC [committer] Commit -> ERRO 5c3f8 Error publishing block 1503, because: could not send the blocking event
2018-05-06 14:38:32.297 UTC [committer] Commit -> ERRO 5ff73 Error publishing block 38617, because: could not send the blocking event
2018-05-06 14:39:02.300 UTC [committer] Commit -> ERRO 600c1 Error publishing block 38618, because: could not send the blocking event
2018-05-06 14:39:32.327 UTC [committer] Commit -> ERRO 6020f Error publishing block 38619, because: could not send the blocking event
2018-05-06 14:40:02.340 UTC [committer] Commit -> ERRO 6035d Error publishing block 38620, because: could not send the blocking event
2018-05-06 14:40:32.361 UTC [committer] Commit -> ERRO 604ab Error publishing block 38621, because: could not send the blocking event
2018-05-06 14:41:02.385 UTC [committer] Commit -> ERRO 605f9 Error publishing block 38622, because: could not send the blocking event
2018-05-06 14:41:32.428 UTC [committer] Commit -> ERRO 60747 Error publishing block 38623, because: could not send the blocking event
2018-05-06 14:42:02.450 UTC [committer] Commit -> ERRO 60895 Error publishing block 38624, because: could not send the blocking event
2018-05-06 14:42:32.465 UTC [committer] Commit -> ERRO 609e3 Error publishing block 38625, because: could not send the blocking event
2018-05-06 14:43:02.480 UTC [committer] Commit -> ERRO 60b31 Error publishing block 38626, because: could not send the blocking event
2018-05-06 14:43:32.516 UTC [committer] Commit -> ERRO 60c7f Error publishing block 38627, because: could not send the blocking event
2018-05-06 14:44:02.533 UTC [committer] Commit -> ERRO 60dcd Error publishing block 38628, because: could not send the blocking event
2018-05-06 14:44:32.569 UTC [committer] Commit -> ERRO 60f1b Error publishing block 38629, because: could not send the blocking event
2018-05-06 14:45:02.585 UTC [committer] Commit -> ERRO 61069 Error publishing block 38630, because: could not send the blocking event
2018-05-06 14:45:32.612 UTC [committer] Commit -> ERRO 611b7 Error publishing block 38631, because: could not send the blocking event
2018-05-06 14:46:02.647 UTC [committer] Commit -> ERRO 61305 Error publishing block 38632, because: could not send the blocking event
2018-05-06 14:46:32.669 UTC [committer] Commit -> ERRO 61453 Error publishing block 38633, because: could not send the blocking event
2018-05-06 14:47:02.708 UTC [committer] Commit -> ERRO 615a1 Error publishing block 38634, because: could not send the blocking event
2018-05-06 14:47:32.721 UTC [committer] Commit -> ERRO 616ef Error publishing block 38635, because: could not send the blocking event
2018-05-06 14:48:02.759 UTC [committer] Commit -> ERRO 6183d Error publishing block 38636, because: could not send the blocking event
2018-05-06 14:48:32.779 UTC [committer] Commit -> ERRO 6198b Error publishing block 38637, because: could not send the blocking event
2018-05-06 14:49:02.809 UTC [committer] Commit -> ERRO 61ad9 Error publishing block 38638, because: could not send the blocking event
2018-05-06 14:49:32.835 UTC [committer] Commit -> ERRO 61c27 Error publishing block 38639, because: could not send the blocking event
2018-05-06 14:49:54.150 UTC [eventhub_producer] Chat -> ERRO 61c28 error during Chat, stopping handler: rpc error: code = Canceled desc = context canceled
2018-05-06 14:49:54.153 UTC [eventhub_producer] Chat -> ERRO 61c30 error during Chat, stopping handler: rpc error: code = Canceled desc = context canceled

0 个答案:

没有答案