WeBankBlockchain/WeCross

低版本macOS环境下启动路由失败

yngil opened this issue · 2 comments

yngil commented

Describe the bug
启动路由时,提示连接失败

To Reproduce
Steps to reproduce the behavior:

  1. 先启动账户服务 'cd ~/wecross-networks/WeCross-Account-Manager && bash start.sh'
  2. 再启动路由服务 'cd ~/wecross-networks/routers-payment && bash start_all.sh'

Expected behavior
期待看到’WeCross start successfully‘

Screenshots
image

Desktop (please complete the following information):

  • OS: [MACOS]
  • Runtime: [ava]
  • Version [openjdk 11]

Additional context
账户服务已启动
image
image
附上账户服务以及路由的错误日志以及trace日志
account_manager_trace.log
router_8250_error.log
router_8250_trace.log

在x86 macOS 环境中如果跨链路由带上bcos3 stub,有可能因为系统版本过低而导致启动失败。

主要原因是bcos3 stub是用的fisco bcos java sdk 3.0版本,3.0版本内的jni二进制可能在x86的低版本macOS存在符号未定义导致加载失败的问题。

临时解决办法:将bcos3 stub从路由中删除,不主动加载即可。若一定需要使用bcos3 stub连接 FISCO BCOS 3.x版本,那么请升级macOS系统版本,升级Xcode命令行工具到最新。