我試圖將cordapp-example部署到Google Compute Engine虛擬機(Ubuntu 16.04)。我使用OpenJDK am(我知道但我無法使用Oracle JDK)。我試圖按照預先要求。虛擬機上的cordapp-example似乎無法正確啓動
但是,我認爲至少有一個問題是由於「不要點擊,而另外8個終端窗口啓動」。 (這不會通過向遠程VM ssh'ing發生)。
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
對於它的價值:
- 調試端口沒有被SS報道: 5006,5009,5011
- 有沒有參考ss到10007被使用;無法瀏覽到它
- 這個錯誤看起來並不好
no-local-shell is not a recognized option
目前還不清楚對我有什麼我可以調試。 runnodes
是不透明的,我沒有看到明顯的錯誤提示節點丟失。
任何指針,將不勝感激。
P.S.似乎有8個java進程運行4個,其中包括一個標誌--no-local-shell
,所以這可能與OpenJDK有所不同,也許這是一個問題?
你跑哪個外殼?這可能是runnodes腳本需要調整的情況... –
謝謝@RichardGreen我正在使用bash。 'runnodes'似乎大部分只是包裝一個對我不透明的調用'java -jar runnodes.jar'。你可以提供的任何幫助都很好。 – DazWilkin