我尝试将cordapp-example部署到Google Compute Engine VM(Ubuntu 16.04)。我我使用OpenJDK(我知道,但我无法使用Oracle JDK)。我试图按照预先要求进行操作。
但是,我认为至少有一个问题来自于建议"当8个额外的终端窗口启动时不要点击。" (这不会通过ssh发送到远程VM)。
runnodes
永远不会导致Webserver started up in XX.X sec
或Node for “NodeC” started up and registered in XX.XX sec
,因此(因此)不会导致进程监听:10007。
控制台输出:
Starting nodes in /home/dazwilkin/cordapp-example/kotlin-source/build/nodes
Starting corda.jar in /home/dazwilkin/cordapp-example/kotlin-source/build/nodes/PartyB on debug port 5005
Starting corda-webserver.jar in /home/dazwilkin/cordapp-example/kotlin-source/build/nodes/PartyB on debug port 5006
Starting corda.jar in /home/dazwilkin/cordapp-example/kotlin-source/build/nodes/Controller on debug port 5007
Starting corda.jar in /home/dazwilkin/cordapp-example/kotlin-source/build/nodes/PartyC on debug port 5008
Starting corda-webserver.jar in /home/dazwilkin/cordapp-example/kotlin-source/build/nodes/PartyC on debug port 5009
Starting corda.jar in /home/dazwilkin/cordapp-example/kotlin-source/build/nodes/PartyA on debug port 5010
Starting corda-webserver.jar in /home/dazwilkin/cordapp-example/kotlin-source/build/nodes/PartyA on debug port 5011
Started 7 processes
Finished starting nodes
Listening for transport dt_socket at address: 5011
Listening for transport dt_socket at address: 5009
Listening for transport dt_socket at address: 5006
Listening for transport dt_socket at address: 5005
Listening for transport dt_socket at address: 5008
Listening for transport dt_socket at address: 5010
Listening for transport dt_socket at address: 5007
Unknown command line arguments: no-local-shell is not a recognized option
Unknown command line arguments: no-local-shell is not a recognized option
Unknown command line arguments: no-local-shell is not a recognized option
______ __
/ ____/ _________/ /___ _
/ / __ / ___/ __ / __ `/ I had an account with a bank in the
/ /___ /_/ / / / /_/ / /_/ / North Pole, but they froze all my assets
\____/ /_/ \__,_/\__,_/
--- Corda Open Source 1.0.0 (31be2a4) -----------------------------------------------
______ __
/ ____/ _________/ /___ _
/ / __ / ___/ __ / __ `/ I had an account with a bank in the
/ /___ /_/ / / / /_/ / /_/ / North Pole, but they froze all my assets
\____/ /_/ \__,_/\__,_/
--- Corda Open Source 1.0.0 (31be2a4) -----------------------------------------------
______ __
/ ____/ _________/ /___ _
/ / __ / ___/ __ / __ `/ What you can buy for a dollar these
/ /___ /_/ / / / /_/ / /_/ / days is absolute non-cents!
\____/ /_/ \__,_/\__,_/
--- Corda Open Source 1.0.0 (31be2a4) -----------------------------------------------
______ __
/ ____/ _________/ /___ _
/ / __ / ___/ __ / __ `/ It's not who you know, it's who you know
/ /___ /_/ / / / /_/ / /_/ / knows what you know you know.
\____/ /_/ \__,_/\__,_/
--- Corda Open Source 1.0.0 (31be2a4) -----------------------------------------------
Logs can be found in : /home/dazwilkin/cordapp-example/kotlin-source/build/nodes/PartyA/logs
Logs can be found in : /home/dazwilkin/cordapp-example/kotlin-source/build/nodes/PartyB/logs
Logs can be found in : /home/dazwilkin/cordapp-example/kotlin-source/build/nodes/Controller/logs
Logs can be found in : /home/dazwilkin/cordapp-example/kotlin-source/build/nodes/PartyC/logs
Database connection url is : jdbc:h2:tcp://10.138.0.5:33219/node
Database connection url is : jdbc:h2:tcp://10.138.0.5:41313/node
Database connection url is : jdbc:h2:tcp://10.138.0.5:36079/node
Database connection url is : jdbc:h2:tcp://10.138.0.5:38015/node
Incoming connection address : localhost:10002
Incoming connection address : localhost:10008
Incoming connection address : localhost:10005
Incoming connection address : localhost:10011
Listening on port : 10002
RPC service listening on port : 10003
Providing network services : corda.notary.validating
Loaded CorDapps : kotlin-source-0.1, corda-finance-1.0.0, corda-core-1.0.0
Node for "Controller" started up and registered in 46.26 sec
Listening on port : 10008
RPC service listening on port : 10009
Listening on port : 10011
RPC service listening on port : 10012
Listening on port : 10005
RPC service listening on port : 10006
Loaded CorDapps : kotlin-source-0.1, corda-finance-1.0.0, corda-core-1.0.0
Node for "PartyB" started up and registered in 51.99 sec
Loaded CorDapps : kotlin-source-0.1, corda-finance-1.0.0, corda-core-1.0.0
Node for "PartyC" started up and registered in 52.75 sec
Loaded CorDapps : kotlin-source-0.1, corda-finance-1.0.0, corda-core-1.0.0
Node for "PartyA" started up and registered in 53.48 sec
和ss --tcp --listening
已过滤并对结果进行了排序:
*:5005
*:5007
*:5008
*:5010
*:ssh
:::10002
:::10003
:::10005
:::10006
:::10008
:::10009
:::10011
:::10012
:::33219
:::36079
:::38015
:::41313
:::ssh
为了它的价值:
no-local-shell is not a recognized option
我不清楚我可以调试什么。 runnodes
是不透明的,我没有看到明显错误,表明节点丢失了。
任何指针都会受到赞赏。
P.S。似乎有8个java进程运行其中4个包含一个标志--no-local-shell
所以也许这与OpenJDK有所不同,也许是一个问题?
答案 0 :(得分:0)
我也遇到过这个问题。这是我正在研究的内容,但与此同时,一个简单的解决方法是通过在nodes目录中运行以下命令来手动运行Web服务器(我认为是kotlin-source / build / nodes?):
find . -name corda-webserver.jar -execdir sh -c 'java -jar {} &' \;
另外,除了Oracle JDK之外,Corda还针对OpenJDK的Azul构建进行了测试。我不相信这个问题与OpenJDK有关,我认为这是runnodes.jar中的计时问题。