在不同的机器上运行Corda节点 [英] Running corda nodes in different machines
问题描述
我在Corda中遇到从甲方到乙方执行欠条的问题.下面是配置详细信息:
I have the problem in Corda regarding performing IOU from Party A to Party B. Below is configuration detail:
- 3 node.conf [甲方,乙方和公证人].
- 在AWS中托管应用程序,因此在节点配置文件中而不是"localhost"中,我给出了机器的IP.我为公证人&授予了相同的IP甲方,乙方则不同.
网络引导成功,并将新创建的节点文件夹分别移至EC2实例并启动了运行节点.但是,当执行从甲方到乙方的借条时,它不起作用.请提出解决问题的方法.
Network Bootstrapping was successful and moved the newly created node folders respective EC2 instances and started run nodes. But when performed the IOU from Party A to Party B it's not working. Please suggest how to resolve the issue.
我在节点日志中看到以下错误:
I see the following error in the node logs:
E 11:34:47+0000 [main] internal.Node.run - Exception during node startup {}
java.net.BindException: Cannot assign requested address: bind
at sun.nio.ch.Net.bind0(Native Method) ~[?:1.8.0_161]
at sun.nio.ch.Net.bind(Unknown Source) ~[?:1.8.0_161]
at sun.nio.ch.Net.bind(Unknown Source) ~[?:1.8.0_161]
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) ~[?:1.8.0_161]
at io.netty.channe
参考: https://docs.corda.net/tutorial-cordapp.html#running-nodes-across-machines
推荐答案
在Corda V3.1中使用 rpcSettings
时,地址和adminAddress必须使用0.0.0.0.
When using rpcSettings
in Corda V3.1 the address and adminAddress need to be using 0.0.0.0.
rpcSettings {
address="0.0.0.0:10003"
adminAddress="0.0.0.0:10103"
}
这些端点没有在外部发布,因此本地ip仅是Corda的绑定.
These endpoints are not advertised externally so the local ip is solely a binding for Corda.
使用公共ip或DNS时,这将解决以下有关启动cordapp的异常:
This should solve the following exception on starting your cordapp when using public ip or DNS:
E 21:28:56 + 0000 [main] internal.Node.run-节点期间异常启动{} io.netty.channel.unix.Errors $ NativeIoException:bind(..)失败:无法分配请求的地址
E 21:28:56+0000 [main] internal.Node.run - Exception during node startup {} io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: Cannot assign requested address
这篇关于在不同的机器上运行Corda节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!