相关日志:
[root@VM-16-5-centos sonic-agent-v1.4.1-beta-linux_x86_64]#
[root@VM-16-5-centos sonic-agent-v1.4.1-beta-linux_x86_64]#
[root@VM-16-5-centos sonic-agent-v1.4.1-beta-linux_x86_64]#
[root@VM-16-5-centos sonic-agent-v1.4.1-beta-linux_x86_64]# java -Dfile.encoding=utf-8 -jar sonic-agent-linux-x86_64.jar &
[1] 22331
[root@VM-16-5-centos sonic-agent-v1.4.1-beta-linux_x86_64]# ▄▄▄▄ ▄▄▄▄ ▄▄▄ ▄▄ ▄▄▄▄▄▄ ▄▄▄▄
▄█▀▀▀▀█ ██▀▀██ ███ ██ ▀▀██▀▀ ██▀▀▀▀█
██▄ ██ ██ ██▀█ ██ ██ ██▀
▀████▄ ██ ██ ██ ██ ██ ██ ██
▀██ ██ ██ ██ █▄██ ██ ██▄
█▄▄▄▄▄█▀ ██▄▄██ ██ ███ ▄▄██▄▄ ██▄▄▄▄█
▀▀▀▀▀ ▀▀▀▀ ▀▀ ▀▀▀ ▀▀▀▀▀▀ ▀▀▀▀
Author: SonicCloudOrg
https://github.com/SonicCloudOrg
2022-07-03 00:05:37.236 - INFO 22331 --- [main] org.cloud.sonic.agent.AgentApplication : Starting AgentApplication v1.4.1-beta using Java 16.0.2 on VM-16-5-centos with PID 22331 (/opt/sonic/sonic-agent-v1.4.1-beta-linux_x86_64/sonic-agent-linux-x86_64.jar started by root in /opt/sonic/sonic-agent-v1.4.1-beta-linux_x86_64)
2022-07-03 00:05:37.268 - INFO 22331 --- [main] org.cloud.sonic.agent.AgentApplication : The following profiles are active: sonic-agent
2022-07-03 00:05:38.503 - INFO 22331 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 7777 (http)
2022-07-03 00:05:38.515 - INFO 22331 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-07-03 00:05:38.516 - INFO 22331 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.53]
2022-07-03 00:05:38.570 - INFO 22331 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-07-03 00:05:38.571 - INFO 22331 --- [main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1208 ms
===================== Checking the Environment =====================
👉 Check ANDROID_HOME Path Pass ✔
👉 Check ADB env Pass ✔
👉 Check Node env (Next version deprecated) Pass ✔
👉 Check npm env (Next version deprecated) Pass ✔
👉 Check JAVA_HOME Path Pass ✔
👉 Check Appium env (Next version deprecated) Pass ✔
👉 Check adbkit env (Next version deprecated) Pass ✔
👉 Check chromeDriver env Pass ✔
👉 Check local resource Pass ✔
=========================== Check results ===========================
JAVA_HOME: /usr/lib/jdk-16.0.2
java version: 16.0.2
ANDROID_HOME: /usr/lib/android-sdk
ADB path: /usr/lib/android-sdk/platform-tools/adb
ADB version: Android Debug Bridge version 1.0.41
Version 33.0.2-8557947
Installed as /usr/lib/android-sdk/platform-tools/adb
chromeDriver path: /opt/google/chrome/chromedriver
chromeDriver version: ChromeDriver 103.0.5060.53 (a1711811edd74ff1cf2150f36ffa3b0dae40b17f-refs/branch-heads/5060@{#853})
Node path: /node-v16.14.2-linux-x64/bin/node
Node version: v16.14.2
npm path: /node-v16.14.2-linux-x64/bin/npm
npm version: 8.5.0
adbkit path: /node-v16.14.2-linux-x64/bin/adbkit
adbkit version: 2.11.1
Appium path: /node-v16.14.2-linux-x64/bin/appium
Appium version: 1.22.3
System: linux
========================== Check Completed ==========================
2022-07-03 00:05:39.980 - INFO 22331 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 7777 (http) with context path ''
2022-07-03 00:05:40.035 - INFO 22331 --- [main] o.c.s.a.b.a.AndroidDeviceBridgeTool : Android devices listening...
2022-07-03 00:05:41.036 - INFO 22331 --- [main] o.c.s.a.b.a.AndroidDeviceBridgeTool : Enable Android Module
2022-07-03 00:05:41.045 - INFO 22331 --- [main] o.cloud.sonic.agent.bridge.ios.SibTool : iOS devices listening...
2022-07-03 00:05:41.045 - INFO 22331 --- [main] o.cloud.sonic.agent.bridge.ios.SibTool : Enable iOS Module
2022-07-03 00:05:41.052 - INFO 22331 --- [main] o.c.s.a.automation.RemoteDebugDriver : 开启webview相关功能
ChromeDriver was started successfully.
2022-07-03 00:05:41.725 - INFO 22331 --- [Forwarding newSession on session null to remote] o.o.selenium.remote.ProtocolHandshake : Detected dialect: W3C
2022-07-03 00:05:41.737 - INFO 22331 --- [main] o.c.s.a.automation.RemoteDebugDriver : chromeDriver启动完毕!
2022-07-03 00:05:41.738 - INFO 22331 --- [main] o.c.s.agent.tests.handlers.StepHandlers : Registered 5 condition handler(s)
2022-07-03 00:05:41.741 - INFO 22331 --- [main] org.cloud.sonic.agent.AgentApplication : Started AgentApplication in 5.127 seconds (JVM running for 5.61)
2022-07-03 00:05:51.766 - INFO 22331 --- [WebSocketConnectReadThread-47] o.c.s.agent.transport.TransportClient : Connected and auth...
2022-07-03 00:05:51.821 - INFO 22331 --- [WebSocketConnectReadThread-47] o.c.s.agent.transport.TransportClient : Agent <- Server message: {"msg":"auth","result":"pass","highTemp":45,"id":3,"highTempTime":15}
2022-07-03 00:05:51.832 - INFO 22331 --- [pool-2-thread-2] o.c.s.agent.transport.TransportClient : server auth successful!
[root@VM-16-5-centos sonic-agent-v1.4.1-beta-linux_x86_64]#
[root@VM-16-5-centos sonic-agent-v1.4.1-beta-linux_x86_64]#
[root@VM-16-5-centos sonic-agent-v1.4.1-beta-linux_x86_64]#
[root@VM-16-5-centos sonic-agent-v1.4.1-beta-linux_x86_64]#
[root@VM-16-5-centos sonic-agent-v1.4.1-beta-linux_x86_64]#
[root@VM-16-5-centos sonic-agent-v1.4.1-beta-linux_x86_64]# netstat -tunlp |grep 7777
tcp6 0 0 :::7777 :::* LISTEN 22331/java
[root@VM-16-5-centos sonic-agent-v1.4.1-beta-linux_x86_64]#
[root@VM-16-5-centos sonic-agent-v1.4.1-beta-linux_x86_64]#
[root@VM-16-5-centos sonic-agent-v1.4.1-beta-linux_x86_64]# kill -9 22331
[root@VM-16-5-centos sonic-agent-v1.4.1-beta-linux_x86_64]#
[1]+ Killed java -Dfile.encoding=utf-8 -jar sonic-agent-linux-x86_64.jar
[root@VM-16-5-centos sonic-agent-v1.4.1-beta-linux_x86_64]#
[root@VM-16-5-centos sonic-agent-v1.4.1-beta-linux_x86_64]#
[root@VM-16-5-centos sonic-agent-v1.4.1-beta-linux_x86_64]# cd /opt
[root@VM-16-5-centos opt]#
[root@VM-16-5-centos opt]#
[root@VM-16-5-centos opt]# docker-compose -f test.yml up -d
Creating opt_sonic-agent_1 ... done
[root@VM-16-5-centos opt]#
[root@VM-16-5-centos opt]#
[root@VM-16-5-centos opt]# docker logs -f opt_sonic-agent_1
▄▄▄▄ ▄▄▄▄ ▄▄▄ ▄▄ ▄▄▄▄▄▄ ▄▄▄▄
▄█▀▀▀▀█ ██▀▀██ ███ ██ ▀▀██▀▀ ██▀▀▀▀█
██▄ ██ ██ ██▀█ ██ ██ ██▀
▀████▄ ██ ██ ██ ██ ██ ██ ██
▀██ ██ ██ ██ █▄██ ██ ██▄
█▄▄▄▄▄█▀ ██▄▄██ ██ ███ ▄▄██▄▄ ██▄▄▄▄█
▀▀▀▀▀ ▀▀▀▀ ▀▀ ▀▀▀ ▀▀▀▀▀▀ ▀▀▀▀
Author: SonicCloudOrg
https://github.com/SonicCloudOrg
2022-07-02 16:06:55.429 - INFO 1 --- [main] org.cloud.sonic.agent.AgentApplication : Starting AgentApplication v1.4.1-beta using Java 15.0.2 on VM-16-5-centos with PID 1 (/root/sonic-agent-linux-x86_64.jar started by root in /root)
2022-07-02 16:06:55.432 - INFO 1 --- [main] org.cloud.sonic.agent.AgentApplication : The following profiles are active: sonic-agent
2022-07-02 16:06:56.731 - INFO 1 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 3000 (http)
2022-07-02 16:06:56.741 - INFO 1 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-07-02 16:06:56.741 - INFO 1 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.53]
2022-07-02 16:06:56.797 - INFO 1 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-07-02 16:06:56.797 - INFO 1 --- [main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1278 ms
===================== Checking the Environment =====================
👉 Check ANDROID_HOME Path Pass ✔
👉 Check ADB env Pass ✔
👉 Check Node env (Next version deprecated) Pass ✔
👉 Check npm env (Next version deprecated) Pass ✔
👉 Check JAVA_HOME Path Pass ✔
👉 Check Appium env (Next version deprecated) Pass ✔
👉 Check adbkit env (Next version deprecated) Pass ✔
👉 Check chromeDriver env Pass ✔
👉 Check local resource Pass ✔
=========================== Check results ===========================
JAVA_HOME: /root/jdk-15.0.2+7
java version: 15.0.2
ANDROID_HOME: /root
ADB path: /root/platform-tools/adb
ADB version: Android Debug Bridge version 1.0.41
Version 33.0.2-8557947
Installed as /root/platform-tools/adb
chromeDriver path: /usr/bin/chromedriver
chromeDriver version: ChromeDriver 103.0.5060.53 (a1711811edd74ff1cf2150f36ffa3b0dae40b17f-refs/branch-heads/5060@{#853})
Node path: /usr/bin/node
Node version: v12.22.12
npm path: /usr/bin/npm
npm version: 6.14.16
adbkit path: /usr/bin/adbkit
adbkit version: 2.11.1
Appium path: /usr/bin/appium
Appium version: 1.22.0
System: linux
========================== Check Completed ==========================
2022-07-02 16:06:58.321 - INFO 1 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 3000 (http) with context path ''
2022-07-02 16:06:58.417 - INFO 1 --- [main] o.c.s.a.b.a.AndroidDeviceBridgeTool : Android devices listening...
2022-07-02 16:06:59.418 - INFO 1 --- [main] o.c.s.a.b.a.AndroidDeviceBridgeTool : Enable Android Module
2022-07-02 16:06:59.430 - INFO 1 --- [main] o.cloud.sonic.agent.bridge.ios.SibTool : iOS devices listening...
2022-07-02 16:06:59.430 - INFO 1 --- [main] o.cloud.sonic.agent.bridge.ios.SibTool : Enable iOS Module
2022-07-02 16:06:59.438 - INFO 1 --- [main] o.c.s.a.automation.RemoteDebugDriver : 开启webview相关功能
ChromeDriver was started successfully.
2022-07-02 16:07:00.265 - INFO 1 --- [Forwarding newSession on session null to remote] o.o.selenium.remote.ProtocolHandshake : Detected dialect: W3C
2022-07-02 16:07:00.279 - INFO 1 --- [main] o.c.s.a.automation.RemoteDebugDriver : chromeDriver启动完毕!
2022-07-02 16:07:00.280 - INFO 1 --- [main] o.c.s.agent.tests.handlers.StepHandlers : Registered 5 condition handler(s)
2022-07-02 16:07:00.285 - INFO 1 --- [main] org.cloud.sonic.agent.AgentApplication : Started AgentApplication in 5.486 seconds (JVM running for 6.003)
2022-07-02 16:07:00.419 - INFO 1 --- [Thread-1] org.cloud.sonic.agent.tools.LaunchTool : Generating ca file...
2022-07-02 16:07:05.431 - INFO 1 --- [Thread-1] org.cloud.sonic.agent.tools.LaunchTool : init sonic-go-mitmproxy-ca Successful!
2022-07-02 16:07:10.313 - INFO 1 --- [WebSocketConnectReadThread-45] o.c.s.agent.transport.TransportClient : Connected and auth...
2022-07-02 16:07:10.383 - INFO 1 --- [WebSocketConnectReadThread-45] o.c.s.agent.transport.TransportClient : Agent <- Server message: {"msg":"auth","result":"pass","highTemp":45,"id":4,"highTempTime":15}
2022-07-02 16:07:10.395 - INFO 1 --- [pool-2-thread-2] o.c.s.agent.transport.TransportClient : server auth successful!
^C
[root@VM-16-5-centos opt]# netstat -tunlp |grep 7777
[root@VM-16-5-centos opt]#
[root@VM-16-5-centos opt]# netstat -tunlp |grep 3000
tcp6 0 0 :::3000 :::* LISTEN 22826/java
[root@VM-16-5-centos opt]#
[root@VM-16-5-centos opt]#