问题描述:(标题也加上版本号哦) Server版本:1.4.1 运行docker环境,Linux version 5.13.0-51-generic (buildd@lcy02-amd64-046) (gcc (Ubuntu 9.4.0-1ubuntu120.04.1) Agent版本与部署方式:sonic-agent-linux:v1.4.1-beta,docker部署, 手机型号与系统版本:魅族6.0 截图: agent运行报错 相关日志:
pirate@I5-DK-0-00:~$ sudo docker ps [sudo] password for pirate: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES pirate@I5-DK-0-00:~$ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES pirate@I5-DK-0-00:~$ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 41e1171f52a6 registry.cn-hangzhou.aliyuncs.com/sonic-cloud/sonic-agent-linux:v1.4.1-beta "/root/jdk-15.0.2+7/…" 5 seconds ago Up 1 second agentfile_sonic-agent_1 pirate@I5-DK-0-00:~$ sudo docker logs -f agentfile_sonic-agent_1 ▄▄▄▄ ▄▄▄▄ ▄▄▄ ▄▄ ▄▄▄▄▄▄ ▄▄▄▄ ▄█▀▀▀▀█ ██▀▀██ ███ ██ ▀▀██▀▀ ██▀▀▀▀█ ██▄ ██ ██ ██▀█ ██ ██ ██▀ ▀████▄ ██ ██ ██ ██ ██ ██ ██ ▀██ ██ ██ ██ █▄██ ██ ██▄ █▄▄▄▄▄█▀ ██▄▄██ ██ ███ ▄▄██▄▄ ██▄▄▄▄█ ▀▀▀▀▀ ▀▀▀▀ ▀▀ ▀▀▀ ▀▀▀▀▀▀ ▀▀▀▀ Author: SonicCloudOrg https://github.com/SonicCloudOrg 2022-07-01 04:43:09.973 - INFO 1 --- [main] org.cloud.sonic.agent.AgentApplication : Starting AgentApplication v1.4.1-beta using Java 15.0.2 on I5-DK-0-00 with PID 1 (/root/sonic-agent-linux-x86_64.jar started by root in /root) 2022-07-01 04:43:10.146 - INFO 1 --- [main] org.cloud.sonic.agent.AgentApplication : The following profiles are active: sonic-agent 2022-07-01 04:43:53.030 - INFO 1 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 3000 (http) 2022-07-01 04:43:53.460 - INFO 1 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2022-07-01 04:43:53.475 - INFO 1 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.53] 2022-07-01 04:43:56.237 - INFO 1 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2022-07-01 04:43:56.243 - INFO 1 --- [main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 43883 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-01 04:45:27.414 - INFO 1 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 3000 (http) with context path '' 04:45:29 E/adb: * daemon not running; starting now at tcp:5037 04:45:35 E/adb: * daemon started successfully 2022-07-01 04:45:36.676 - INFO 1 --- [main] o.c.s.a.b.a.AndroidDeviceBridgeTool : Android devices listening... 2022-07-01 04:45:37.435 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceStatusListener : Android device: 1474dae1 ONLINE! 2022-07-01 04:45:38.138 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Send shell command wm size to device 1474dae1 failed. 2022-07-01 04:45:38.164 -ERROR 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set Try 'adb kill-server' if that seems wrong. Otherwise check for a confirmation dialog on your device. 2022-07-01 04:45:38.173 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Get screen size failed, ignore when plug in moment... 2022-07-01 04:45:38.178 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceStatusListener : Android device: 80SQBDQC222V9 ONLINE! 2022-07-01 04:45:38.197 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Send shell command wm size to device 80SQBDQC222V9 failed. 2022-07-01 04:45:38.202 -ERROR 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set Try 'adb kill-server' if that seems wrong. Otherwise check for a confirmation dialog on your device. 2022-07-01 04:45:38.207 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Get screen size failed, ignore when plug in moment... 2022-07-01 04:45:38.706 - INFO 1 --- [main] o.c.s.a.b.a.AndroidDeviceBridgeTool : Enable Android Module 2022-07-01 04:45:38.816 - INFO 1 --- [main] o.cloud.sonic.agent.bridge.ios.SibTool : iOS devices listening... 2022-07-01 04:45:38.821 - INFO 1 --- [main] o.cloud.sonic.agent.bridge.ios.SibTool : Enable iOS Module 2022-07-01 04:45:39.200 - INFO 1 --- [main] o.c.s.a.automation.RemoteDebugDriver : 开启webview相关功能 ChromeDriver was started successfully. 2022-07-01 04:47:09.135 - INFO 1 --- [Forwarding newSession on session null to remote] o.o.selenium.remote.ProtocolHandshake : Detected dialect: W3C 2022-07-01 04:47:11.167 - INFO 1 --- [main] o.c.s.a.automation.RemoteDebugDriver : chromeDriver启动完毕! 2022-07-01 04:47:11.185 - INFO 1 --- [main] o.c.s.agent.tests.handlers.StepHandlers : Registered 5 condition handler(s) 2022-07-01 04:47:11.258 - INFO 1 --- [main] org.cloud.sonic.agent.AgentApplication : Started AgentApplication in 266.052 seconds (JVM running for 295.22) 2022-07-01 04:47:20.466 - INFO 1 --- [Thread-1] org.cloud.sonic.agent.tools.LaunchTool : Generating ca file... 2022-07-01 04:47:23.637 - INFO 1 --- [WebSocketConnectReadThread-52] o.c.s.agent.transport.TransportClient : Connected and auth... 2022-07-01 04:47:25.527 - INFO 1 --- [Thread-1] org.cloud.sonic.agent.tools.LaunchTool : init sonic-go-mitmproxy-ca failed! 2022-07-01 04:47:28.430 - INFO 1 --- [WebSocketConnectReadThread-52] o.c.s.agent.transport.TransportClient : Agent <- Server message: {"msg":"auth","result":"pass","highTemp":45,"id":1,"highTempTime":15} 2022-07-01 04:47:28.734 - INFO 1 --- [pool-2-thread-2] o.c.s.agent.transport.TransportClient : server auth successful! - [Thread-1] org.cloud.sonic.agent.tools.LaunchTool : init sonic-go-mitmproxy-ca failed!init sonic-go-mitmproxy-ca failed! (日志粘贴到这里)
android-A-studio sonic-agent-linux:v1.4.1-beta beta版本Docker部署已知问题,请看公告,rc修复。先用jar部署吧
Eason root@GIH-D-20833:~/agentfile/sonic-agent-v1.4.1-beta-linux_x86_64# java -jar sonic-agent-linux-x86_64.jar ???? ???? ??? ?? ?????? ???? ??????? ?????? ??? ?? ?????? ??????? ??? ?? ?? ???? ?? ?? ??? ?????? ?? ?? ?? ?? ?? ?? ?? ??? ?? ?? ?? ???? ?? ??? ???????? ?????? ?? ??? ?????? ??????? ????? ???? ?? ??? ?????? ????
Author: SonicCloudOrg https://github.com/SonicCloudOrg
2022-07-01 14:31:53.450 - INFO 13651 --- [main] org.cloud.sonic.agent.AgentApplication : Starting AgentApplication v1.4.1-beta using Java 16.0.1 on GIH-D-20833 with PID 13651 (/root/agentfile/sonic-agent-v1.4.1-beta-linux_x86_64/sonic-agent-linux-x86_64.jar started by root in /root/agentfile/sonic-agent-v1.4.1-beta-linux_x86_64) 2022-07-01 14:31:53.452 - INFO 13651 --- [main] org.cloud.sonic.agent.AgentApplication : The following profiles are active: sonic-agent 2022-07-01 14:31:54.234 - INFO 13651 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 7777 (http) 2022-07-01 14:31:54.241 - INFO 13651 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2022-07-01 14:31:54.241 - INFO 13651 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.53] 2022-07-01 14:31:54.274 - INFO 13651 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2022-07-01 14:31:54.274 - INFO 13651 --- [main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 780 ms ===================== Checking the Environment ===================== ?????ANDROID_HOME??????? ? Check ANDROID_HOME Path Fail ? ??????https://www.cnblogs.com/nebie/p/9145627.html????SDK???ANDROID_HOME???? ========================== Check Completed ========================== 2022-07-01 14:31:54.501 - INFO 13651 --- [main] org.cloud.sonic.agent.tools.LaunchTool : Release done! jar包运行提示这个
android-A-studio ANDROID_HOME没配置对,检查一下吧