在树莓派上运行,server 端日志没报错,agent 得到以下日志:
2020-03-29 17:08:33.747 [main] INFO com.wgcloud.WgcloudServiceApplication - Starting WgcloudServiceApplication vrelease on raspberrypi with PID 31183 (/home/pi/wgcloud-v2.3.5/wgcloud-agent/wgcloud-agent-release.jar started by pi in /home/pi/wgcloud-v2.3.5/wgcloud-agent)
2020-03-29 17:08:33.782 [main] INFO com.wgcloud.WgcloudServiceApplication - No active profile set, falling back to default profiles: default
2020-03-29 17:08:48.428 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 9998 ( http)
2020-03-29 17:08:48.727 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2020-03-29 17:08:48.730 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.16]
2020-03-29 17:08:48.856 [main] INFO org.apache.catalina.core.AprLifecycleListener - The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/home/pi/wgcloud-v2.3.5/wgcloud-agent/lib/]
2020-03-29 17:08:49.470 [main] INFO o.a.c.c.C.[Tomcat].[localhost].[/wgcloud-agent] - Initializing Spring embedded WebApplicationContext
2020-03-29 17:08:49.472 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 14983 ms
2020-03-29 17:08:50.511 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskScheduler - Initializing ExecutorService 'taskScheduler'
2020-03-29 17:08:52.443 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor - Initializing ExecutorService 'applicationTaskExecutor'
2020-03-29 17:08:58.472 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 9998 ( http) with context path '/wgcloud-agent'
2020-03-29 17:08:58.490 [main] INFO com.wgcloud.WgcloudServiceApplication - Started WgcloudServiceApplication in 32.913 seconds (JVM running for 39.885)
2020-03-29 17:09:54.543 [taskScheduler-2] ERROR o.s.s.support.TaskUtils$LoggingErrorHandler - Unexpected error occurred in scheduled task.
java.lang.UnsatisfiedLinkError: org.hyperic.sigar.SysInfo.gather(Lorg/hyperic/sigar/Sigar;)V
at org.hyperic.sigar.SysInfo.gather(Native Method)
at org.hyperic.sigar.OperatingSystem.getInstance(OperatingSystem.java:92)
at com.wgcloud.SigarUtil.<clinit>(SigarUtil.java:31)
at com.wgcloud.ScheduledTask.minTask(ScheduledTask.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
at
org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$
ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
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)
2020-03-29 17:11:24.209 [taskScheduler-3] ERROR o.s.s.support.TaskUtils$LoggingErrorHandler - Unexpected error occurred in scheduled task.
java.lang.NoClassDefFoundError: Could not initialize class com.wgcloud.SigarUtil
at com.wgcloud.ScheduledTask.minTask(ScheduledTask.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
at
org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$
ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
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)
是不支持 debian 或者 arm ?