zebrunner / appium

Enhanced Appium for Elastic Selenium Grid/MCloud services
9 stars 3 forks source link

Offline status detection is broken, device is not available error #320

Closed dhreben closed 8 months ago

dhreben commented 11 months ago

2023-12-07 19:32:53:236 - [AndroidUiautomator2Driver@6559 (367aa801)] [AndroidUiautomator2Driver@6559 (367aa801)] Server packages are going to be (re)installed
2023-12-07 19:32:53:237 - [AndroidUiautomator2Driver@6559 (367aa801)] [AndroidUiautomator2Driver@6559 (367aa801)] Full packages reinstall is going to be performed
2023-12-07 19:32:54:286 - [ADB] [ADB] io.appium.uiautomator2.server.test was not uninstalled, because it was not present on the device
2023-12-07 19:32:54:812 - [ADB] [ADB] io.appium.uiautomator2.server was successfully uninstalled
2023-12-07 19:32:54:958 - [HTTP] [HTTP] --> GET /wd/hub/status
2023-12-07 19:32:54:958 - [HTTP] [HTTP] {}
2023-12-07 19:32:54:961 - [HTTP] [HTTP] <-- GET /wd/hub/status 200 1 ms - 110
2023-12-07 19:32:54:962 - [HTTP] [HTTP] 
2023-12-07 19:32:55:606 - [ADB] [ADB] The installation of 'appium-uiautomator2-server-debug-androidTest.apk' took 516ms
2023-12-07 19:32:59:963 - [HTTP] [HTTP] --> GET /wd/hub/status
2023-12-07 19:32:59:970 - [HTTP] [HTTP] {}
2023-12-07 19:32:59:977 - [HTTP] [HTTP] <-- GET /wd/hub/status 200 12 ms - 110
2023-12-07 19:32:59:977 - [HTTP] [HTTP] 
12-07 19:33:00.521    35    42 I adb     : transport.cpp:339 R5.........L7TF: read failed: Cannot allocate memory
12-07 19:33:00.521    35    42 I adb     : transport.cpp:1248 R5CT310L7TF: connection terminated: read failed
12-07 19:33:00.525    35    35 I adb     : adb.cpp:179 R5......TF: offline
12-07 19:33:00.525    35    35 I adb     : transport.cpp:931 destroying transport R........7TF
12-07 19:33:00.525    35    35 I adb     : transport.cpp:407 BlockingConnectionAdapter(R5.........L7TF): stopping
12-07 19:33:00.537    35    43 E adb     : transport_usb.cpp:171 remote usb: 2 - write terminated: Connection timed out
12-07 19:33:00.538    35    35 I adb     : transport.cpp:425 BlockingConnectionAdapter(R5C......7TF): stopped
2023-12-07 19:33:00:555 - [Logcat] [Logcat] Logcat terminated with code 0, signal null
12-07 19:33:00.560    35    35 I adb     : transport.cpp:294 BlockingConnectionAdapter(R5.........TF): destructing
12-07 19:33:00.560    35    35 I adb     : transport.cpp:400 BlockingConnectionAdapter(R5C.......TF): already stopped
2023-12-07 19:33:00:571 - [AndroidUiautomator2Driver@6559 (367aa801)] [AndroidUiautomator2Driver@6559 (367aa801)] Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id
2023-12-07 19:33:00:715 - [AndroidUiautomator2Driver@6559 (367aa801)] [AndroidUiautomator2Driver@6559 (367aa801)] Unable to force stop app: Error executing adbExec. Original error: 'Command '/opt/android/platform-tools/adb -P 5037 -s R5CT310L7TF shell am force-stop com.ua.shop.debug' exited with code 1'; Command output: adb: device 'R5CT310L7TF' not found
2023-12-07 19:33:00:715 - [AndroidUiautomator2Driver@6559 (367aa801)] [AndroidUiautomator2Driver@6559 (367aa801)] 
2023-12-07 19:33:00:803 - [ADB] [ADB] com.ua.shop.debug was not uninstalled, because it was not present on the device
2023-12-07 19:33:00:889 - [ADB] [ADB] Error sending command, reconnecting device and retrying: forward,--remove,tcp:8200
12-07 19:33:01.179    35 3601427 I adb     : transport.cpp:307 R5.........TF: write thread spawning
12-07 19:33:01.179    35 3601426 I adb     : transport.cpp:335 R5.......7TF: read thread spawning
12-07 19:33:01.180    35 3601426 I adb     : transport.cpp:339 R5.......TF: read failed: Success
12-07 19:33:01.180    35 3601426 I adb     : transport.cpp:1248 R5C.........TF: connection terminated: read failed
12-07 19:33:01.180    35    35 I adb     : adb.cpp:175 R5C.......7TF: already offline
12-07 19:33:01.180    35    35 I adb     : transport.cpp:931 destroying transport R5CT310L7TF
12-07 19:33:01.180    35    35 I adb     : transport.cpp:407 BlockingConnectionAdapter(R5CT310L7TF): stopping
12-07 19:33:01.181    35 3601427 E adb     : transport_usb.cpp:171 remote usb: 2 - write terminated: Connection timed out
12-07 19:33:01.181    35    35 I adb     : transport.cpp:425 BlockingConnectionAdapter(R5CT310L7TF): stopped
12-07 19:33:01.181    35    35 I adb     : transport.cpp:294 BlockingConnectionAdapter(R5CT310L7TF): destructing
12-07 19:33:01.181    35    35 I adb     : transport.cpp:400 BlockingConnectionAdapter(R5CT310L7TF): already stopped
12-07 19:33:02.181    35 3601778 I adb     : transport.cpp:335 R5.......TF: read thread spawning
12-07 19:33:02.184    35 3601778 I adb     : transport.cpp:339 R5........7TF: read failed: Success
12-07 19:33:02.184    35 3601778 I adb     : transport.cpp:1248 R5........7TF: connection terminated: read failed
12-07 19:33:02.185    35    35 I adb     : adb.cpp:175 R5.......7TF: already offline
12-07 19:33:02.185    35    35 I adb     : transport.cpp:931 destroying transport R5CT310L7TF
12-07 19:33:02.185    35    35 I adb     : transport.cpp:407 BlockingConnectionAdapter(R5CT310L7TF): stopping
12-07 19:33:02.184    35 3601779 I adb     : transport.cpp:307 R5.......TF: write thread spawning
12-07 19:33:02.186    35    35 I adb     : transport.cpp:425 BlockingConnectionAdapter(R5CT310L7TF): stopped
12-07 19:33:02.186    35    35 I adb     : transport.cpp:294 BlockingConnectionAdapter(R5CT310L7TF): destructing
12-07 19:33:02.190    35    35 I adb     : transport.cpp:400 BlockingConnectionAdapter(R5CT310L7TF): already stopped
2023-12-07 19:33:02:856 - [HTTP] [HTTP] --> HEAD /wd/hub/status
2023-12-07 19:33:02:857 - [HTTP] [HTTP] {}
2023-12-07 19:33:02:858 - [HTTP] [HTTP] <-- HEAD /wd/hub/status 200 1 ms - 110
2023-12-07 19:33:02:859 - [HTTP] [HTTP] 
12-07 19:33:03.187    35 3602014 I adb     : transport.cpp:335 R........7TF: read thread spawning
12-07 19:33:03.188    35 3602014 I adb     : transport.cpp:339 R5C.......TF: read failed: Success
12-07 19:33:03.188    35 3602014 I adb     : transport.cpp:1248 R5C.......7TF: connection terminated: read failed
12-07 19:33:03.191    35 3602015 I adb     : transport.cpp:307 R5........7TF: write thread spawning
12-07 19:33:03.198    35    35 I adb     : adb.cpp:175 R5......7TF: already offline
....
12-07 19:45:17.552    33    33 I adb     : transport.cpp:294 BlockingConnectionAdapter(R5CT310L7TF): destructing
12-07 19:45:17.552    33    33 I adb     : transport.cpp:400 BlockingConnectionAdapter(R5CT310L7TF): already stopped
Device is not available!
Exiting without restarting...
dhreben commented 8 months ago

Close as a dupe https://github.com/zebrunner/appium/issues/327