Firewall

Corda 防火牆 - 浮動

  • March 14, 2019

我正在嘗試設置Corda Firewall,特別是浮動。似乎不清楚的是該伺服器/容器上需要並且只需要什麼。僅嘗試使用帶有相關其他文件的 corda-bridgeserver.jar 只是錯誤。

我不是 100% 確定浮動文件應該是什麼文件。我有:

emp-float/bridge.conf
emp-float/corda-bridgeserver-3.1.jar
emp-float/network-parameters (copied from bridge inner)
emp-float/ floatcerts/float.jks  
emp-float/floatcerts/trust.jks

我跑:

java -jar corda-bridgeserver-3.1.jar

並得到以下錯誤:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by Capsule (file:/home/b3iadmin/emp-float/corda-bridgeserver-3.1.jar) to field com.sun.jmx.mbeanserver.JmxMBeanServer.mbsInterceptor
WARNING: Please consider reporting this to the maintainers of Capsule
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Exception in thread "main" java.io.IOException: Permission denied
       at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method)
       at java.base/java.io.File.createNewFile(File.java:1024)
       at net.corda.bridge.internal.BridgeStartup.enforceSingleBridgeIsRunning(BridgeStartup.kt:147)
       at net.corda.bridge.internal.BridgeStartup.run(BridgeStartup.kt:48)
       at net.corda.bridge.Bridge.main(Bridge.kt:19)

我是 Linux 新手,所以任何幫助表示讚賞😊

Shuan,

這似乎是許可問題。請確保您的使用者對emp-float. 另外,請更新 Bridge/Float 組件的版本。謝謝!

我改變了一些事情來解決這個問題:

  1. 安裝了 JDK 版本 8,因為這是 Corda 執行的版本
  2. 調整權限
  3. 使用 Corda bridge/float 的 3.2 版本

引用自:https://serverfault.com/questions/957159