问题描述:在同一台Linux机器上搭的server和 agent, 启动后连接设备弹出USB提示,点击允许后web上看不到设备,agent docker的log有报错。 重启server和 agent还是一样,报错也相同。
Server版本:v1.40 release
Agent版本与部署方式:docker
手机型号与系统版本:全部OS和设备
截图:
相关日志:
qalab3@HP-Z4-G4-Workstation:~/sonic/sonic_agent$ sudo docker logs -f sonic_agent_sonic-agent_1_b95c6bbcded4
▄▄▄▄ ▄▄▄▄ ▄▄▄ ▄▄ ▄▄▄▄▄▄ ▄▄▄▄
▄█▀▀▀▀█ ██▀▀██ ███ ██ ▀▀██▀▀ ██▀▀▀▀█
██▄ ██ ██ ██▀█ ██ ██ ██▀
▀████▄ ██ ██ ██ ██ ██ ██ ██
▀██ ██ ██ ██ █▄██ ██ ██▄
█▄▄▄▄▄█▀ ██▄▄██ ██ ███ ▄▄██▄▄ ██▄▄▄▄█
▀▀▀▀▀ ▀▀▀▀ ▀▀ ▀▀▀ ▀▀▀▀▀▀ ▀▀▀▀
Author: SonicCloudOrg
https://github.com/SonicCloudOrg
2022-06-14 08:26:20.222 - INFO 1 --- [main] org.cloud.sonic.agent.AgentApplication : Starting AgentApplication v1.4.0-release using Java 15.0.2 on HP-Z4-G4-Workstation with PID 1 (/root/sonic-agent-linux-x86_64.jar started by root in /root)
2022-06-14 08:26:20.224 - INFO 1 --- [main] org.cloud.sonic.agent.AgentApplication : The following profiles are active: sonic-agent
2022-06-14 08:26:21.215 - INFO 1 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 7777 (http)
2022-06-14 08:26:21.224 - INFO 1 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-06-14 08:26:21.224 - INFO 1 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.53]
2022-06-14 08:26:21.261 - INFO 1 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-06-14 08:26:21.261 - INFO 1 --- [main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 982 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 adbkit env (Next version deprecated) Pass ✔
👉 Check local resource Pass ✔
=========================== Check results ===========================
JAVA_HOME: unknown
java version: unknown
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: nullNode 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: unknown
Appium version: unknown
System: linux
========================== Check Completed ==========================
2022-06-14 08:26:22.060 - INFO 1 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 7777 (http) with context path ''
08:26:22 E/adb: * daemon not running; starting now at tcp:5037
08:26:25 E/adb: * daemon started successfully
2022-06-14 08:26:25.200 - INFO 1 --- [main] o.c.s.a.b.a.AndroidDeviceBridgeTool : Android devices listening...
2022-06-14 08:26:25.226 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceStatusListener : Android device: 2ce18158 ONLINE!
2022-06-14 08:26:25.242 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Send shell command wm size to device 2ce18158 failed.
2022-06-14 08:26:25.243 -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-06-14 08:26:25.243 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Get screen size failed, ignore when plug in moment...
2022-06-14 08:26:25.243 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceStatusListener : Android device: ebfaf9a2 ONLINE!
2022-06-14 08:26:25.249 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Send shell command wm size to device ebfaf9a2 failed.
2022-06-14 08:26:25.249 -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-06-14 08:26:25.250 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Get screen size failed, ignore when plug in moment...
2022-06-14 08:26:25.250 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceStatusListener : Android device: 155639026900153 ONLINE!
2022-06-14 08:26:25.255 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Send shell command wm size to device 155639026900153 failed.
2022-06-14 08:26:25.256 -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-06-14 08:26:25.256 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Get screen size failed, ignore when plug in moment...
2022-06-14 08:26:25.256 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceStatusListener : Android device: NAB0220428031796 ONLINE!
2022-06-14 08:26:25.262 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Send shell command wm size to device NAB0220428031796 failed.
2022-06-14 08:26:25.262 -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-06-14 08:26:25.262 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Get screen size failed, ignore when plug in moment...
2022-06-14 08:26:25.262 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceStatusListener : Android device: 3059919806007Q3 ONLINE!
2022-06-14 08:26:25.268 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Send shell command wm size to device 3059919806007Q3 failed.
2022-06-14 08:26:25.268 -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-06-14 08:26:25.269 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Get screen size failed, ignore when plug in moment...
2022-06-14 08:26:25.269 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceStatusListener : Android device: emqkyhwsmbugypir ONLINE!
2022-06-14 08:26:25.275 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Send shell command wm size to device emqkyhwsmbugypir failed.
2022-06-14 08:26:25.276 -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-06-14 08:26:25.276 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Get screen size failed, ignore when plug in moment...
2022-06-14 08:26:25.277 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceStatusListener : Android device: d73749f4 ONLINE!
2022-06-14 08:26:25.283 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Send shell command wm size to device d73749f4 failed.
2022-06-14 08:26:25.283 -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-06-14 08:26:25.283 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Get screen size failed, ignore when plug in moment...
2022-06-14 08:26:25.284 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceStatusListener : Android device: LJDIFM6LHASWKVOV ONLINE!
2022-06-14 08:26:25.290 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Send shell command wm size to device LJDIFM6LHASWKVOV failed.
2022-06-14 08:26:25.291 -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-06-14 08:26:25.291 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Get screen size failed, ignore when plug in moment...
2022-06-14 08:26:25.291 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceStatusListener : Android device: LKN5T18B06008913 ONLINE!
2022-06-14 08:26:25.297 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Send shell command wm size to device LKN5T18B06008913 failed.
2022-06-14 08:26:25.298 -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-06-14 08:26:25.298 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Get screen size failed, ignore when plug in moment...
2022-06-14 08:26:25.298 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceStatusListener : Android device: 2XT0219215000598 ONLINE!
2022-06-14 08:26:25.304 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Send shell command wm size to device 2XT0219215000598 failed.
2022-06-14 08:26:25.305 -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-06-14 08:26:25.305 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Get screen size failed, ignore when plug in moment...
2022-06-14 08:26:25.305 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceStatusListener : Android device: NBLUT21209000288 ONLINE!
2022-06-14 08:26:25.311 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Send shell command wm size to device NBLUT21209000288 failed.
2022-06-14 08:26:25.312 -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-06-14 08:26:25.312 - INFO 1 --- [Device List Monitor] o.c.s.a.b.a.AndroidDeviceBridgeTool : Get screen size failed, ignore when plug in moment...
2022-06-14 08:26:26.204 - INFO 1 --- [main] o.c.s.a.b.a.AndroidDeviceBridgeTool : Enable Android Module
2022-06-14 08:26:26.220 - INFO 1 --- [main] o.c.s.agent.tests.handlers.StepHandlers : Registered 5 condition handler(s)
2022-06-14 08:26:26.225 - INFO 1 --- [main] org.cloud.sonic.agent.AgentApplication : Started AgentApplication in 6.414 seconds (JVM running for 6.773)
2022-06-14 08:26:26.517 - INFO 1 --- [Thread-1] org.cloud.sonic.agent.tools.LaunchTool : Generating ca file...
2022-06-14 08:26:26.629 - WARN 1 --- [AgentNettyClient-4-1] o.c.s.a.b.a.AndroidDeviceBridgeTool : AndroidDebugBridge has been init!
2022-06-14 08:26:26.630 - INFO 1 --- [AgentNettyClient-4-1] o.c.sonic.agent.netty.SecurityHandler : Agent:/10.130.195.101:59732 request connection to server.
2022-06-14 08:26:26.833 - INFO 1 --- [AgentNettyClient-4-1] o.c.sonic.agent.netty.SecurityHandler : Agent:/10.130.195.101:59732 <- /10.130.195.101:8095 auth result: {"msg":"auth","result":"fail"}
2022-06-14 08:26:26.833 - INFO 1 --- [AgentNettyClient-4-1] o.c.sonic.agent.netty.SecurityHandler : server auth failed!
2022-06-14 08:26:26.834 - INFO 1 --- [AgentNettyClient-4-1] o.c.sonic.agent.netty.SecurityHandler : Server: /10.130.195.101:8095 disconnected.
2022-06-14 08:26:31.540 - INFO 1 --- [Thread-1] org.cloud.sonic.agent.tools.LaunchTool : init sonic-go-mitmproxy-ca Successful!