【问题标题】:Flow is hanging at Collecting counterparties signature in CordaFlow 挂在 Corda 中收集交易对手签名处
【发布时间】:2018-12-05 17:58:01
【问题描述】:

我正在尝试在两个 AWS 实例中运行 Example Cordapp。一审公证人和甲方,二审乙方和丙方。

我按照这里的步骤, Corda nodes: how to connect two independent pc as two nodes?

在conf文件中,

  1. 公证人和甲方 - 我已编辑 P2P 地址以反映实例 1 的 PrivateIP
  2. PartyB 和 PartyC - 我已编辑 P2P 地址以反映实例 2 的 PrivateIP

使用上面的conf文件,我在Instance 1中运行了Network Bootstrapper jar,并将文件夹PartyB和PartyC复制到Instance 2,并在对应的Instances中分别启动了Notary和Party 1。

所有节点都成功启动,当我尝试执行从 PartA(在实例 1 中)到 PartyC(在 Instance2 中)的 IOU 流时,它在 收集交易对手签名 步骤暂停,没有继续进行。以下是我在 PartyA 的控制台中看到的,

Fri Nov 30 08:39:10 UTC 2018>>> flow start ExampleFlow$Initiator iouValue: 50, otherParty: "O=PartyC,L=Paris,C=FR"
Verifying contract constraints.
Signing transaction with our private key.
Gathering the counterparty's signature.
Collecting signatures from counterparties. (hanging here and not proceeding further)

当我尝试查看NodeA中的日志信息时,它显示如下。,

[INFO ] 2018-11-30T08:39:10,077Z [main] messaging.RPCServer.start - Starting RPC server with configuration RPCServerConfiguration(rpcThreadPoolSize=4, reapInterval=PT1S, deduplicationCacheExpiry=PT24H) {}
[INFO ] 2018-11-30T08:39:10,115Z [Thread-0 (ActiveMQ-client-global-threads)] bridging.BridgeControlListener.processControlMessage - Received bridge control message Create(nodeIdentity=DLHBP432vnpLNpCNwGQJjx3hd6RDz4LiYxmZJo757W8Hbw, bridgeInfo=BridgeEntry(queueName=internal.peers.DL9tRWQ867M3tni7KRqkXEJKPrkyW5KVj6fyRyDBHGaGA6, targets=[[2001:0:9d38:953c:3c:ce3:cbd9:3c59]:10013], legalNames=[O=PartyC, L=Paris, C=FR])) {}
[INFO ] 2018-11-30T08:39:11,072Z [nioEventLoopGroup-2-2] netty.AMQPClient.nextTarget - Retry connect to [2001:0:9d38:953c:3c:ce3:cbd9:3c59]:10013 {}
[INFO ] 2018-11-30T08:39:12,171Z [nioEventLoopGroup-2-3] netty.AMQPClient.operationComplete - Failed to connect to [2001:0:9d38:953c:3c:ce3:cbd9:3c59]:10013 {}
[INFO ] 2018-11-30T08:39:14,172Z [nioEventLoopGroup-2-4] netty.AMQPClient.nextTarget - Retry connect to [2001:0:9d38:953c:3c:ce3:cbd9:3c59]:10013 {}
[INFO ] 2018-11-30T08:39:15,175Z [nioEventLoopGroup-2-1] netty.AMQPClient.operationComplete - Failed to connect to [2001:0:9d38:953c:3c:ce3:cbd9:3c59]:10013 {}

我可以在具有私有 IP 的实例之间 ping 通,没有任何问题。有人可以帮我在哪里丢失东西。

提前致谢。

【问题讨论】:

  • PartyB和PartyC的日志有什么?
  • Joel,交易未到达 PartyB 或 PartyC。然后我尝试在两个实例中禁用防火墙,并通过在实例安全组中添加“自定义 TCP 规则 - 端口无处不在”,我能够实现目标。无论如何,如果不禁用防火墙,我们可以实现这一目标吗?

标签: corda


【解决方案1】:

此问题是由节点机器上的防火墙导致该节点的消息无法到达对方节点造成的。

你需要打开:

  1. 节点 P2P 地址的出站端口
  2. 其他节点的 P2P 地址的入站端口

在大型网络上,这可能意味着打开许多入站端口,这可能是某些公司安全策略的问题。 Corda Firewall 解决了这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-01
    • 2020-11-18
    • 1970-01-01
    • 2022-08-13
    • 1970-01-01
    相关资源
    最近更新 更多