Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to unlock device with swipe security #14226

Closed
amrsa1 opened this issue Apr 24, 2020 · 3 comments
Closed

Unable to unlock device with swipe security #14226

amrsa1 opened this issue Apr 24, 2020 · 3 comments

Comments

@amrsa1
Copy link

amrsa1 commented Apr 24, 2020

The problem

adb shell command timeout as appium fail to unlock the device by swipe

Environment

  • Appium version: 1.17.0
  • Last Appium version that did not exhibit the issue (if applicable): 1.15.1
  • Desktop OS/version used to run Appium: ubuntu 18.04
  • Node.js version (unless using Appium.app|exe): 8
  • Npm or Yarn package manager: 6.14
  • Mobile platform/version under test: android v9
  • Real device or emulator/simulator: samsung s8
  • Appium CLI or Appium.app|exe: CLI

Details

Test fails due to inability to unlock the device using driver.unlockDevice();

Link to Appium logs

[Appium] Welcome to Appium v1.17.0

[Appium] Non-default server args:

[Appium] port: 3194

[Appium] allowInsecure: {

[Appium] 0: adb_shell

[Appium] }

[Appium] Appium REST http interface listener started on 0.0.0.0:3194

[HTTP] --> GET /wd/hub/status

[HTTP] {}

[debug] [GENERIC] Calling AppiumDriver.getStatus() with args: []

[debug] [GENERIC] Responding to client with driver.getStatus() result: {"build":{"version":"1.17.0"}}

[HTTP] <-- GET /wd/hub/status 200 10 ms - 68

[HTTP]

[HTTP] --> POST /wd/hub/session

[HTTP] {"desiredCapabilities":{"chromedriverExecutable":"src/main/resources/chromedriver","disableWindowAnimation":true,"platformVersion":"9","automationName":"uiautomator2","autoGrantPermissions":true,"browserName":"chrome","platformName":"android","udid":"ce041714bac4c21903","deviceId":"mdf:7441","deviceName":"SM-G950F","appium:uiautomator2ServerInstallTimeout":60000},"capabilities":{"firstMatch":[{"appium:uiautomator2ServerInstallTimeout":60000,"appium:autoGrantPermissions":true,"appium:automationName":"uiautomator2","browserName":"chrome","appium:chromedriverExecutable":"src/main/resources/chromedriver","deviceId":"mdf:7441","appium:deviceName":"SM-G950F","appium:disableWindowAnimation":true,"platformName":"android","appium:platformVersion":"9","appium:udid":"ce041714bac4c21903"}]}}

[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"chromedriverExecutable":"src/main/resources/chromedriver","disableWindowAnimation":true,"platformVersion":"9","automationName":"uiautomator2","autoGrantPermissions":true,"browserName":"chrome","platformName":"android","udid":"ce041714bac4c21903","deviceId":"mdf:7441","deviceName":"SM-G950F","appium:uiautomator2ServerInstallTimeout":60000},null,{"firstMatch":[{"appium:uiautomator2ServerInstallTimeout":60000,"appium:autoGrantPermissions":true,"appium:automationName":"uiautomator2","browserName":"chrome","appium:chromedriverExecutable":"src/main/resources/chromedriver","deviceId":"mdf:7441","appium:deviceName":"SM-G950F","appium:disableWindowAnimation":true,"platformName":"android","appium:platformVersion":"9","appium:udid":"ce041714bac4c21903"}]}]

[debug] [BaseDriver] Event 'newSessionRequested' logged at 1587721759899 (11:49:19 GMT+0200 (CEST))

[BaseDriver] The following capabilities are not standard capabilities and should have an extension prefix:

[BaseDriver] deviceId

[Appium] Appium v1.17.0 creating new AndroidUiautomator2Driver (v1.44.2) session

[Appium] Explicitly enabling use of insecure features:

[Appium] adb_shell

[debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided

[debug] [BaseDriver] Creating session with W3C capabilities: {

[debug] [BaseDriver] "alwaysMatch": {

[debug] [BaseDriver] "browserName": "chrome",

[debug] [BaseDriver] "appium:deviceId": "mdf:7441",

[debug] [BaseDriver] "platformName": "android",

[debug] [BaseDriver] "appium:uiautomator2ServerInstallTimeout": 60000,

[debug] [BaseDriver] "appium:autoGrantPermissions": true,

[debug] [BaseDriver] "appium:automationName": "uiautomator2",

[debug] [BaseDriver] "appium:chromedriverExecutable": "src/main/resources/chromedriver",

[debug] [BaseDriver] "appium:deviceName": "SM-G950F",

[debug] [BaseDriver] "appium:disableWindowAnimation": true,

[debug] [BaseDriver] "appium:platformVersion": "9",

[debug] [BaseDriver] "appium:udid": "ce041714bac4c21903"

[debug] [BaseDriver] },

[debug] [BaseDriver] "firstMatch": [

[debug] [BaseDriver] {}

[debug] [BaseDriver] ]

[debug] [BaseDriver] }

[BaseDriver] The following capabilities were provided, but are not recognized by Appium:

[BaseDriver] deviceId

[BaseDriver] Session created with session id: d47119e6-0649-4bb4-9c8c-2e71e88bb632

[UiAutomator2] We're going to run a Chrome-based session

[UiAutomator2] Chrome-type package and activity are com.android.chrome and com.google.android.apps.chrome.Main

[UiAutomator2] Starting 'com.android.chrome' directly on the device

[ADB] Found 1 'build-tools' folders under '/home/mistral-mdf/Android/Sdk' (newest first):

[ADB] /home/mistral-mdf/Android/Sdk/build-tools/29.0.2

[ADB] Using 'adb' from '/home/mistral-mdf/Android/Sdk/platform-tools/adb'

[AndroidDriver] Retrieving device list

[debug] [ADB] Trying to find a connected android device

[debug] [ADB] Getting connected devices...

[debug] [ADB] Connected devices: [{"udid":"04ccf63925272a44","state":"device"},{"udid":"0715f75124ea0934","state":"device"},{"udid":"3dee3e87","state":"device"},{"udid":"841af58f","state":"device"},{"udid":"ce041714bac4c21903","state":"device"}]

[AndroidDriver] Using device: ce041714bac4c21903

[ADB] Using 'adb' from '/home/mistral-mdf/Android/Sdk/platform-tools/adb'

[debug] [ADB] Setting device id to ce041714bac4c21903

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell getprop ro.build.version.sdk'

[debug] [ADB] Current device property 'ro.build.version.sdk': 28

[ADB] Getting device platform version

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell getprop ro.build.version.release'

[debug] [ADB] Current device property 'ro.build.version.release': 9

[debug] [ADB] Device API level: 28

[UiAutomator2] Relaxing hidden api policy

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell settings put global hidden_api_policy_pre_p_apps 1'

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell settings put global hidden_api_policy_p_apps 1'

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell settings put global hidden_api_policy 1'

[AndroidDriver] No app sent in, not parsing package/activity

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 wait-for-device'

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell echo ping'

[debug] [AndroidDriver] Pushing settings apk to device...

[debug] [ADB] Getting install status for io.appium.settings

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell dumpsys package io.appium.settings'

[debug] [ADB] 'io.appium.settings' is installed

[debug] [ADB] Getting package info for 'io.appium.settings'

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell dumpsys package io.appium.settings'

[debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.1.0' >= '3.1.0')

[debug] [ADB] There is no need to install/upgrade '/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk'

[debug] [ADB] Getting IDs of all 'io.appium.settings' processes

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell 'pgrep --help; echo $?''

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell pgrep -f io\.appium\.settings'

[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell appops set io.appium.settings android:mock_location allow'

[debug] [Logcat] Starting logcat capture

[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8203

[debug] [ADB] Forwarding system: 8203 to device: 6790

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 forward tcp:8203 tcp:6790'

[UiAutomator2] Server package at '/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk' is not writeable. Will copy it into the temporary location at '/tmp/2020324-27089-1wl01py.f1m1' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup.

[UiAutomator2] Server package at '/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is not writeable. Will copy it into the temporary location at '/tmp/2020324-27089-1wl01py.f1m1' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup.

[debug] [ADB] Getting install status for io.appium.uiautomator2.server

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell dumpsys package io.appium.uiautomator2.server'

[debug] [ADB] 'io.appium.uiautomator2.server' is installed

[debug] [ADB] Getting package info for 'io.appium.uiautomator2.server'

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell dumpsys package io.appium.uiautomator2.server'

[debug] [ADB] The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('4.5.5' >= '4.5.5')

[debug] [UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled

[debug] [ADB] Checking app cert for /tmp/2020324-27089-1wl01py.f1m1/appium-uiautomator2-server-v4.5.5.apk

[ADB] Using 'apksigner.jar' from '/home/mistral-mdf/Android/Sdk/build-tools/29.0.2/lib/apksigner.jar'

[debug] [ADB] Starting apksigner: /usr/lib/jvm/jdk1.8.0_231/bin/java -Xmx1024M -Xss1m -jar /home/mistral-mdf/Android/Sdk/build-tools/29.0.2/lib/apksigner.jar verify --print-certs /tmp/2020324-27089-1wl01py.f1m1/appium-uiautomator2-server-v4.5.5.apk

[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US

[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc

[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81

[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87

[debug] [ADB]

[debug] [ADB] '/tmp/2020324-27089-1wl01py.f1m1/appium-uiautomator2-server-v4.5.5.apk' is signed with the default certificate

[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell dumpsys package io.appium.uiautomator2.server.test'

[debug] [ADB] 'io.appium.uiautomator2.server.test' is installed

[debug] [ADB] Checking app cert for /tmp/2020324-27089-1wl01py.f1m1/appium-uiautomator2-server-debug-androidTest.apk

[debug] [ADB] Starting apksigner: /usr/lib/jvm/jdk1.8.0_231/bin/java -Xmx1024M -Xss1m -jar /home/mistral-mdf/Android/Sdk/build-tools/29.0.2/lib/apksigner.jar verify --print-certs /tmp/2020324-27089-1wl01py.f1m1/appium-uiautomator2-server-debug-androidTest.apk

[debug] [ADB] apksigner stdout: Signer #1 certificate DN: CN=Android Debug, O=Android, C=US

[debug] [ADB] Signer #1 certificate SHA-256 digest: 3e4f2ab66d641bbbd363421151755f8b12b66ea37a5db43c52116596b7392a8e

[debug] [ADB] Signer #1 certificate SHA-1 digest: e24fc8971c0aad07d1df6cc62af7fb0d48b45b60

[debug] [ADB] Signer #1 certificate MD5 digest: 5623d53469c7f7147b52ace9d09901eb

[debug] [ADB]

[debug] [ADB] '/tmp/2020324-27089-1wl01py.f1m1/appium-uiautomator2-server-debug-androidTest.apk' is signed with a non-default certificate

[ADB] Using 'zipalign' from '/home/mistral-mdf/Android/Sdk/build-tools/29.0.2/zipalign'

[debug] [ADB] /tmp/2020324-27089-1wl01py.f1m1/appium-uiautomator2-server-debug-androidTest.apk' is already zip-aligned. Doing nothing

[debug] [ADB] Signing '/tmp/2020324-27089-1wl01py.f1m1/appium-uiautomator2-server-debug-androidTest.apk' with default cert

[debug] [ADB] Starting apksigner: /usr/lib/jvm/jdk1.8.0_231/bin/java -Xmx1024M -Xss1m -jar /home/mistral-mdf/Android/Sdk/build-tools/29.0.2/lib/apksigner.jar sign --key /home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/appium-adb/keys/testkey.pk8 --cert /home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/appium-adb/keys/testkey.x509.pem /tmp/2020324-27089-1wl01py.f1m1/appium-uiautomator2-server-debug-androidTest.apk

[UiAutomator2] Server packages are going to be (re)installed

[UiAutomator2] Full packages reinstall is going to be performed

[debug] [ADB] Uninstalling io.appium.uiautomator2.server

[debug] [ADB] Getting install status for io.appium.uiautomator2.server

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell dumpsys package io.appium.uiautomator2.server'

[debug] [ADB] 'io.appium.uiautomator2.server' is installed

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell am force-stop io.appium.uiautomator2.server'

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 uninstall io.appium.uiautomator2.server'

[debug] [ADB] 'adb uninstall io.appium.uiautomator2.server' command output: Success

[ADB] io.appium.uiautomator2.server was successfully uninstalled

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 help'

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 features'

[ADB] The application at '/tmp/2020324-27089-1wl01py.f1m1/appium-uiautomator2-server-v4.5.5.apk' will not be cached, because the device under test has confirmed the support of streamed installs

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 install -r /tmp/2020324-27089-1wl01py.f1m1/appium-uiautomator2-server-v4.5.5.apk'

[ADB] The installation of 'appium-uiautomator2-server-v4.5.5.apk' took 13457ms

[debug] [ADB] Install command stdout: Performing Streamed Install

[debug] [ADB] Success

[debug] [ADB] Uninstalling io.appium.uiautomator2.server.test

[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell dumpsys package io.appium.uiautomator2.server.test'

[debug] [ADB] 'io.appium.uiautomator2.server.test' is installed

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell am force-stop io.appium.uiautomator2.server.test'

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 uninstall io.appium.uiautomator2.server.test'

[debug] [ADB] 'adb uninstall io.appium.uiautomator2.server.test' command output: Success

[ADB] io.appium.uiautomator2.server.test was successfully uninstalled

[ADB] The application at '/tmp/2020324-27089-1wl01py.f1m1/appium-uiautomator2-server-debug-androidTest.apk' will not be cached, because the device under test has confirmed the support of streamed installs

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 install -r /tmp/2020324-27089-1wl01py.f1m1/appium-uiautomator2-server-debug-androidTest.apk'

[ADB] The installation of 'appium-uiautomator2-server-debug-androidTest.apk' took 5776ms

[debug] [ADB] Install command stdout: Performing Streamed Install

[debug] [ADB] Success

[debug] [UiAutomator2] Waiting up to 30000ms for services to be available

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell pm list instrumentation'

[debug] [UiAutomator2] Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available

[debug] [UiAutomator2] No app capability. Assuming it is already on the device

[debug] [ADB] Getting install status for com.android.chrome

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell dumpsys package com.android.chrome'

[debug] [ADB] 'com.android.chrome' is installed

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell am force-stop com.android.chrome'

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell pm clear com.android.chrome'

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell dumpsys package com.android.chrome'

[debug] [ADB] Retrieving requested permissions

[debug] [ADB] Retrieved 28 permission(s) from ["requested"] group(s)

[debug] [ADB] Retrieving granted permissions

[debug] [ADB] Retrieved 21 permission(s) from ["install","runtime"] group(s)

[debug] [ADB] Granting permissions ["android.permission.READ_CONTACTS","android.permission.REQUEST_INSTALL_PACKAGES","android.permission.CAMERA","android.permission.GET_ACCOUNTS","android.permission.READ_EXTERNAL_STORAGE","android.permission.RECORD_AUDIO","android.permission.WRITE_EXTERNAL_STORAGE"] to 'com.android.chrome'

[debug] [ADB] Got the following command chunks to execute: [["pm","grant","com.android.chrome","android.permission.READ_CONTACTS",";","pm","grant","com.android.chrome","android.permission.REQUEST_INSTALL_PACKAGES",";","pm","grant","com.android.chrome","android.permission.CAMERA",";","pm","grant","com.android.chrome","android.permission.GET_ACCOUNTS",";","pm","grant","com.android.chrome","android.permission.READ_EXTERNAL_STORAGE",";","pm","grant","com.android.chrome","android.permission.RECORD_AUDIO",";","pm","grant","com.android.chrome","android.permission.WRITE_EXTERNAL_STORAGE",";"]]

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell pm grant com.android.chrome android.permission.READ_CONTACTS ; pm grant com.android.chrome android.permission.REQUEST_INSTALL_PACKAGES ; pm grant com.android.chrome android.permission.CAMERA ; pm grant com.android.chrome android.permission.GET_ACCOUNTS ; pm grant com.android.chrome android.permission.READ_EXTERNAL_STORAGE ; pm grant com.android.chrome android.permission.RECORD_AUDIO ; pm grant com.android.chrome android.permission.WRITE_EXTERNAL_STORAGE ;'

[debug] [AndroidDriver] Performed fast reset on the installed 'com.android.chrome' application (stop and clear)

[debug] [UiAutomator2] Performing shallow cleanup of automation leftovers

[debug] [UiAutomator2] No obsolete sessions have been detected (Error: socket hang up)

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell am force-stop io.appium.uiautomator2.server.test'

[UiAutomator2] Starting UIAutomator2 server 4.5.5

[UiAutomator2] Using UIAutomator2 server from '/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk' and test from '/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk'

[UiAutomator2] Waiting up to 30000ms for UiAutomator2 to be online...

[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","ce041714bac4c21903","shell","am","instrument","-w","--no-window-animation","io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"]

[debug] [WD Proxy] Matched '/status' to command name 'getStatus'

[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8203/wd/hub/status] with no body

[WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}

[debug] [WD Proxy] Matched '/status' to command name 'getStatus'

[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8203/wd/hub/status] with no body

[WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}

[debug] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:

[debug] [WD Proxy] Matched '/status' to command name 'getStatus'

[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8203/wd/hub/status] with no body

[WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}

[debug] [WD Proxy] Matched '/status' to command name 'getStatus'

[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8203/wd/hub/status] with no body

[debug] [WD Proxy] Got response with status 200: {"sessionId":"None","value":{"ready":true,"message":"UiAutomator2 Server is ready to accept commands"}}

[debug] [UiAutomator2] The initialization of the instrumentation process took 4219ms

[debug] [WD Proxy] Matched '/session' to command name 'createSession'

[debug] [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8203/wd/hub/session] with body: {"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"browserName":"chrome","platformName":"android","deviceId":"mdf:7441","uiautomator2ServerInstallTimeout":60000,"autoGrantPermissions":true,"automationName":"uiautomator2","chromedriverExecutable":"src/main/resources/chromedriver","deviceName":"SM-G950F","disableWindowAnimation":true,"platformVersion":"9","udid":"ce041714bac4c21903"},"browserName":"chrome","platformName":"android","deviceId":"mdf:7441","uiautomator2ServerInstallTimeout":60000,"autoGrantPermissions":true,"automationName":"uiautomator2","chromedriverExecutable":"src/main/resources/chromedriver","deviceName":"ce041714bac4c21903","disableWindowAnimation":true,"platformVersion":"9","udid":"ce041714bac4c21903","appPackage":"com.android.chrome","appActivity":"com.google.android.apps.chrome.Main","deviceUDID":"ce041...

[debug] [WD Proxy] Got response with status 200: {"sessionId":"865209b8-e325-46be-9664-d5180053ac03","value":{"sessionId":"865209b8-e325-46be-9664-d5180053ac03","capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"browserName":"chrome","platformName":"android","deviceId":"mdf:7441","uiautomator2ServerInstallTimeout":60000,"autoGrantPermissions":true,"automationName":"uiautomator2","chromedriverExecutable":"src/main/resources/chromedriver","deviceName":"SM-G950F","disableWindowAnimation":true,"platformVersion":"9","udid":"ce041714bac4c21903"},"browserName":"chrome","platformName":"android","deviceId":"mdf:7441","uiautomator2ServerInstallTimeout":60000,"autoGrantPermissions":true,"automationName":"uiautomator2","chromedriverExecutable":"src/main/resources/chromedriver","deviceName":"ce041714bac4c21903","disableWindowAnimation":true,"platformVersion":"9","udid":"ce041714bac4c2...

[WD Proxy] Determined the downstream protocol as 'W3C'

[debug] [WD Proxy] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8203/wd/hub/session/865209b8-e325-46be-9664-d5180053ac03/appium/device/info] with no body

[debug] [WD Proxy] Got response with status 200: {"sessionId":"865209b8-e325-46be-9664-d5180053ac03","value":{"androidId":"631263f281024c49","manufacturer":"samsung","model":"SM-G950F","brand":"samsung","apiVersion":"28","platformVersion":"9","carrierName":"","realDisplaySize":"1080x2220","displayDensity":480,"networks":[{"type":13,"typeName":"WIFI_P2P","subtype":0,"subtypeName":"","isConnected":false,"detailedState":"DISCONNECTED","state":"DISCONNECTED","extraInfo":null,"isAvailable":true,"isFailover":false,"isRoaming":false,"capabilities":{"transportTypes":"TRANSPORT_WIFI","networkCapabilities":"NET_CAPABILITY_WIFI_P2P,NET_CAPABILITY_NOT_RESTRICTED,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_FOREGROUND,NET_CAPABILITY_NOT_SUSPENDED","linkUpstreamBandwidthKbps":1048576,"linkDownBandwidthKbps":1048576,"signalStrength":-2147483648,"networkSpecifier":null,"SSID":null}},{"type":1,"typeName":"WIFI","subtype":0,"subtypeName":"","isConnected":true,"detailedState":"CONNECTED","state":"CONNECTED","extraInfo":null,"isAvailable":true,"isFailover":f...

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell dumpsys window'

[debug] [AndroidDriver] Screen is locked, trying to unlock

[AndroidDriver] Using app unlock, this is going to be deprecated!

[AndroidDriver] Unlocking screen

[AndroidDriver] Launching .Unlock

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell am start -n io.appium.settings/.Unlock -c android.intent.category.LAUNCHER -a android.intent.action.MAIN -f 0x10200000'

[AndroidDriver] Starting a chrome-based browser session

[debug] [AndroidDriver] A port was not given, using random free port: 8000

[debug] [AndroidDriver] Automated Chromedriver download is disabled. Use 'chromedriver_autodownload' server feature to enable it

[debug] [AndroidDriver] Before starting chromedriver, androidPackage is 'com.android.chrome'

[debug] [Chromedriver] Changed state to 'starting'

[Chromedriver] Set chromedriver binary as: src/main/resources/chromedriver

[debug] [Chromedriver] Killing any old chromedrivers, running: pkill -15 -f "src/main/resources/chromedriver.*--port=8000"

[Chromedriver] No old chromedrivers seem to exist

[debug] [Chromedriver] Cleaning any old adb forwarded port socket connections

[debug] [ADB] List forwarding ports

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 forward --list'

[Chromedriver] Spawning chromedriver with: src/main/resources/chromedriver --url-base=wd/hub --port=8000 --adb-port=5037 --verbose

[debug] [Chromedriver] Chromedriver version: '81.0.4044.69'

[debug] [WD Proxy] Matched '/status' to command name 'getStatus'

[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8000/wd/hub/status] with no body

[debug] [WD Proxy] Got response with status 200: {"value":{"build":{"version":"81.0.4044.69 (6813546031a4bc83f717a2ef7cd4ac6ec1199132-refs/branch-heads/4044@{#776})"},"message":"ChromeDriver ready for new sessions.","os":{"arch":"x86_64","name":"Linux","version":"5.3.0-46-generic"},"ready":true}}

[Chromedriver] Starting W3C Chromedriver session with capabilities: {

[Chromedriver] "capabilities": {

[Chromedriver] "alwaysMatch": {

[Chromedriver] "goog:chromeOptions": {

[Chromedriver] "androidPackage": "com.android.chrome",

[Chromedriver] "androidDeviceSerial": "ce041714bac4c21903"

[Chromedriver] },

[Chromedriver] "goog:loggingPrefs": {

[Chromedriver] "browser": "ALL"

[Chromedriver] }

[Chromedriver] }

[Chromedriver] }

[Chromedriver] }

[debug] [WD Proxy] Matched '/session' to command name 'createSession'

[debug] [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8000/wd/hub/session] with body: {"capabilities":{"alwaysMatch":{"goog:chromeOptions":{"androidPackage":"com.android.chrome","androidDeviceSerial":"ce041714bac4c21903"},"goog:loggingPrefs":{"browser":"ALL"}}}}

[WD Proxy] Got response with status 500: {"value":{"error":"timeout","message":"timeout: Adb command timed out after 30 seconds","stacktrace":"#0 0x55995fe5f5b9 \n"}}

[debug] [W3C] Matched W3C error code 'timeout' to TimeoutError

[Chromedriver] Failed to start Chromedriver session: timeout: Adb command timed out after 30 seconds

[debug] [WD Proxy] Matched '/session' to command name 'createSession'

[debug] [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8000/wd/hub/session] with body: {"capabilities":{"alwaysMatch":{"goog:chromeOptions":{"androidPackage":"com.android.chrome","androidDeviceSerial":"ce041714bac4c21903"},"goog:loggingPrefs":{"browser":"ALL"}}}}

[WD Proxy] Got response with status 500: {"value":{"error":"timeout","message":"timeout: Adb command timed out after 30 seconds","stacktrace":"#0 0x55995fe5f5b9 \n"}}

[debug] [W3C] Matched W3C error code 'timeout' to TimeoutError

[Chromedriver] Failed to start Chromedriver session: timeout: Adb command timed out after 30 seconds

[debug] [WD Proxy] Matched '/session' to command name 'createSession'

[debug] [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8000/wd/hub/session] with body: {"capabilities":{"alwaysMatch":{"goog:chromeOptions":{"androidPackage":"com.android.chrome","androidDeviceSerial":"ce041714bac4c21903"},"goog:loggingPrefs":{"browser":"ALL"}}}}

[WD Proxy] Got response with status 500: {"value":{"error":"timeout","message":"timeout: Adb command timed out after 30 seconds","stacktrace":"#0 0x55995fe5f5b9 \n"}}

[debug] [W3C] Matched W3C error code 'timeout' to TimeoutError

[Chromedriver] Failed to start Chromedriver session: timeout: Adb command timed out after 30 seconds

[debug] [WD Proxy] Matched '/session' to command name 'createSession'

[debug] [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8000/wd/hub/session] with body: {"capabilities":{"alwaysMatch":{"goog:chromeOptions":{"androidPackage":"com.android.chrome","androidDeviceSerial":"ce041714bac4c21903"},"goog:loggingPrefs":{"browser":"ALL"}}}}

[WD Proxy] Got response with status 500: {"value":{"error":"timeout","message":"timeout: Adb command timed out after 30 seconds","stacktrace":"#0 0x55995fe5f5b9 \n"}}

[debug] [W3C] Matched W3C error code 'timeout' to TimeoutError

[Chromedriver] Failed to start Chromedriver session: timeout: Adb command timed out after 30 seconds

[debug] [Chromedriver] TimeoutError: timeout: Adb command timed out after 30 seconds

[debug] [Chromedriver] at errorFromW3CJsonCode (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:780:25)

[debug] [Chromedriver] at ProxyRequestError.getActualError (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:663:14)

[debug] [Chromedriver] at JWProxy.command (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:264:19)

[debug] [Chromedriver] at

[Chromedriver] Chro[mdeedbruigv]e re3x5imt[eCdh ruonmeexdpreicvteerd]l 3with9 mc oCdhea nngueldl ,s tsaitgen atlo S'IsGtToEpRpMe

d'

[Chromedriver] timeout: Adb command timed out after 30 seconds

[debug] [UiAutomator2] Deleting UiAutomator2 session

[debug] [UiAutomator2] Deleting UiAutomator2 server session

[debug] [WD Proxy] Matched '/' to command name 'deleteSession'

[debug] [WD Proxy] Proxying [DELETE /] to [DELETE http://127.0.0.1:8203/wd/hub/session/865209b8-e325-46be-9664-d5180053ac03] with no body

[debug] [WD Proxy] Got response with status 200: {"sessionId":"865209b8-e325-46be-9664-d5180053ac03","value":null}

[debug] [Logcat] Stopping logcat capture

[debug] [ADB] Removing forwarded port socket connection: 8203

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 forward --remove tcp:8203'

[UiAutomator2] Restoring hidden api policy to the device default configuration

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell settings delete global hidden_api_policy_pre_p_apps'

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell settings delete global hidden_api_policy_p_apps'

[debug] [ADB] Running '/home/mistral-mdf/Android/Sdk/platform-tools/adb -P 5037 -s ce041714bac4c21903 shell settings delete global hidden_api_policy'

[debug] [Instrumentation] .

[debug] [BaseDriver] Event 'newSessionStarted' logged at 1587721916437 (11:51:56 GMT+0200 (CEST))

[debug] [W3C] Encountered internal error running command: Error: timeout: Adb command timed out after 30 seconds

[debug] [W3C] at Object.errorAndThrow (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/appium-support/lib/logging.js:87:35)

[debug] [W3C] at Chromedriver.start (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/appium-chromedriver/lib/chromedriver.js:589:11)

[debug] [W3C] at

[debug] [W3C] Destroying socket connection

[HTTP] <-- POST /wd/hub/session 500 156602 ms - 643

[HTTP]

Starting test suite for App to be tested landing page

onTestStart method: Application_Health_Check_Passed --> started

onTestSkipped method: Application_Health_Check_Passed --> skipped

Finish test suite for: App to be tested landing page

[ERROR] Tests run: 3, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 159.658 s <<< FAILURE! - in TestSuite

[ERROR] Tests.LandingPageTest.setUp Time elapsed: 159.437 s <<< FAILURE!

org.openqa.selenium.SessionNotCreatedException:

Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: timeout: Adb command timed out after 30 seconds

Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'

System info: host: 'MDF', ip: '10.0.160.69', os.name: 'Linux', os.arch: 'amd64', os.version: '5.3.0-46-generic', java.version: '1.8.0_231'

Driver info: driver.version: AndroidDriver

remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: timeout: Adb command timed out after 30 seconds

at getResponseForW3CError (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)

at asyncHandler (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:392:37)

at <anonymous>

Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'

System info: host: 'MDF', ip: '10.0.160.69', os.name: 'Linux', os.arch: 'amd64', os.version: '5.3.0-46-generic', java.version: '1.8.0_231'

Driver info: driver.version: AndroidDriver

Caused by: java.lang.reflect.InvocationTargetException

Caused by: org.openqa.selenium.WebDriverException:

An unknown server-side error occurred while processing the command. Original error: timeout: Adb command timed out after 30 seconds

Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'

System info: host: 'MDF', ip: '10.0.160.69', os.name: 'Linux', os.arch: 'amd64', os.version: '5.3.0-46-generic', java.version: '1.8.0_231'

Driver info: driver.version: AndroidDriver

remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: timeout: Adb command timed out after 30 seconds

at getResponseForW3CError (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)

at asyncHandler (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:392:37)

at <anonymous>

[INFO]

[INFO] Results:

[INFO]

[ERROR] Failures:

[ERROR] LandingPageTest>BaseSetup.setUp:79 » SessionNotCreated Unable to create a new ...

[INFO]

[ERROR] Tests run: 3, Failures: 1, Errors: 0, Skipped: 2

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 02:42 min

[INFO] Finished at: 2020-04-24T11:51:57+02:00

[INFO] ------------------------------------------------------------------------

@mykola-mokhnach
Copy link
Collaborator

The previous issue has been reopened. There is no need to open a new one

@amrsa1
Copy link
Author

amrsa1 commented Apr 24, 2020

@mykola-mokhnach this issue was locking by just swipe , other one was by pin code

@mykola-mokhnach
Copy link
Collaborator

I expect they both have the same cause, for example #10649

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants