可能是网络引导程序错误,并带有错误的错误消息

时间:2018-11-13 06:49:14

标签: corda

我正在使用企业版本的网络引导程序3.2为3个不同的节点生成节点配置。我的目录中有3个不同的abc_node.conf。

我观察到的是,network-bootstrap如果必须为 1或2 节点生成配置,则可以正常工作。如果它是 3 或更高,则失败,并显示以下错误。

Bootstrapping local test network in /root/finance
Found the following CorDapps: []
Generating node directory for agra
Generating node directory for bangalore
Generating node directory for chennai
Nodes found in the following sub-directories: [agra, bangalore, chennai]
Waiting for all nodes to generate their node-info files...
... still waiting. If this is taking longer than usual, check the node logs.
java.lang.IllegalStateException: Error while generating node info file. Please check the logs in /root/finance/chennai/logs.
        at net.corda.nodeapi.internal.network.NetworkBootstrapper$Companion.generateNodeInfo(NetworkBootstrapper.kt:112)
        at net.corda.nodeapi.internal.network.NetworkBootstrapper$Companion.access$generateNodeInfo(NetworkBootstrapper.kt:71)
        at net.corda.nodeapi.internal.network.NetworkBootstrapper$Companion$generateNodeInfos$1$1.invoke(NetworkBootstrapper.kt:95)
        at net.corda.nodeapi.internal.network.NetworkBootstrapper$Companion$generateNodeInfos$1$1.invoke(NetworkBootstrapper.kt:71)
        at net.corda.core.internal.concurrent.ValueOrException$DefaultImpls.capture(CordaFutureImpl.kt:140)
        at net.corda.core.internal.concurrent.OpenFuture$DefaultImpls.capture(CordaFutureImpl.kt)
        at net.corda.core.internal.concurrent.CordaFutureImpl.capture(CordaFutureImpl.kt:152)
        at net.corda.core.internal.concurrent.CordaFutureImplKt$fork$$inlined$also$lambda$1.run(CordaFutureImpl.kt:32)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
        Suppressed: java.lang.IllegalStateException: Error while generating node info file. Please check the logs in /root/finance/bangalore/logs.
                ... 11 more
        Suppressed: java.lang.IllegalStateException: Error while generating node info file. Please check the logs in /root/finance/agra/logs.
                ... 11 more

这些的节点信息日志看起来很好,没有任何错误。

此外,当我尝试为1或2个节点生成节点配置时,它将成功生成它,而不会出现任何问题。

那么,这与超时有关吗?如果是这样,我们可以在引导时指定超时值吗?

1 个答案:

答案 0 :(得分:0)

该错误消息告诉您节点信息生成出现了问题,而不是引导过程。

这通常与机器设置有关。

检查:IllegalStateException Error while generating node info files,看看更改为urandom是否有帮助。