Failure occurred when attempting to start the app if set automationName as uiautomator2
See original GitHub issueThe problem
Failure occurred when attempting to start the app if set automationName as uiautomator2. Already try to uninstall io.appium.uiautomator2.server and io.appium.uiautomator2.server.test manually, then rerun, still not work.
Environment
- Appium version (or git revision) that exhibits the issue: v1.10.0
- Last Appium version that did not exhibit the issue (if applicable):
- Desktop OS/version used to run Appium: Window 7
- Node.js version (unless using Appium.app|exe): v9.7.1
- Mobile platform/version under test: Andorid 7.0
- Real device or emulator/simulator: Real device (Huawei P10)
- Appium CLI or Appium.app|exe:
Details
If necessary, describe the problem you have been experiencing in more detail.
Link to Appium logs
The server is running
[Appium] Welcome to Appium v1.10.0
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/sessions
[HTTP] {}
[GENERIC] Calling AppiumDriver.getSessions() with args: []
[GENERIC] Responding to client with driver.getSessions() result: []
[HTTP] <-- GET /wd/hub/sessions 200 10 ms - 40
[HTTP]
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"appActivity":".mSFA","appPackage":"com.swirebevmobile.msfa.login","automationName":"uiautomator2","deviceName":"HuaweiP10","noReset":true,"platformName":"Android","platformVersion":"7.0","newCommandTimeout":0,"connectHardwareKeyboard":true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"appActivity":".mSFA","appPackage":"com.swirebevmobile.msfa.login","automationName":"uiautomator2","deviceName":"HuaweiP10","noReset":true,"platformName":"Android","platformVersion":"7.0","newCommandTimeout":0,"connectHardwareKeyboard":true},null,null]
[BaseDriver] Event 'newSessionRequested' logged at 1546939872184 (17:31:12 GMT+0800 (China Standard Time))
[Appium] Creating new AndroidUiautomator2Driver (v1.26.0) session
[Appium] Capabilities:
[Appium] appActivity: .***
[Appium] appPackage: com.******
[Appium] automationName: uiautomator2
[Appium] deviceName: HuaweiP10
[Appium] noReset: true
[Appium] platformName: Android
[Appium] platformVersion: 7.0
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[BaseDriver] Creating session with MJSONWP desired capabilities: {"appActivity":".***","app...
[BaseDriver] The following capabilities were provided, but are not recognized by appium: connectHardwareKeyboard.
[BaseDriver] Session created with session id: 7346ac5c-e4a5-4dc3-a5da-4a4d0da8c698
[AndroidDriver] Java version is: 1.8.0_171
[ADB] Checking whether adb is present
[ADB] Found 1 'build-tools' folders under 'D:\DeviceSettingPOC\android-sdk' (newest first):
[ADB] D:/DeviceSettingPOC/android-sdk/build-tools/27.0.3
[ADB] Using adb.exe from D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe
[AndroidDriver] Retrieving device list
[ADB] Trying to find a connected android device
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[AndroidDriver] Looking for a device with Android '7.0'
[ADB] Setting device id to SJE5T17A17000561
[ADB] Getting device platform version
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 shell getprop ro.build.version.release'
[ADB] Current device property 'ro.build.version.release': 7.0
[AndroidDriver] Using device: SJE5T17A17000561
[ADB] Setting device id to SJE5T17A17000561
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 shell getprop ro.build.version.sdk'
[ADB] Current device property 'ro.build.version.sdk': 24
[ADB] Device API level: 24
[AndroidDriver] No app sent in, not parsing package/activity
[ADB] Getting install status for io.appium.uiautomator2.server
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 shell dumpsys package io.appium.uiautomator2.server'
[ADB] 'io.appium.uiautomator2.server' is installed
[ADB] Getting package info for 'io.appium.uiautomator2.server'
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 shell dumpsys package io.appium.uiautomator2.server'
[ADB] Checking whether aapt is present
[ADB] Using aapt.exe from D:\DeviceSettingPOC\android-sdk\build-tools\27.0.3\aapt.exe
[ADB] The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('3.1.1' >= '3.1.1')
[UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled
[ADB] Checking app cert for C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v3.1.1.apk
[ADB] Using apksigner.bat from D:\DeviceSettingPOC\android-sdk\build-tools\27.0.3\apksigner.bat
[ADB] Starting 'D:\DeviceSettingPOC\android-sdk\build-tools\27.0.3\apksigner.bat' with args '["verify","--print-certs","C:\\Users\\Administrator\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-v3.1.1.apk"]'
[ADB] 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v3.1.1.apk' is signed with non-default certificate
[ADB] Checking whether zipalign is present
[ADB] Using zipalign.exe from D:\DeviceSettingPOC\android-sdk\build-tools\27.0.3\zipalign.exe
[ADB] C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v3.1.1.apk' is already zip-aligned. Doing nothing
[ADB] Signing 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v3.1.1.apk' with default cert
[ADB] Starting 'D:\DeviceSettingPOC\android-sdk\build-tools\27.0.3\apksigner.bat' with args '["sign","--key","C:\\Users\\Administrator\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium-adb\\keys\\testkey.pk8","--cert","C:\\Users\\Administrator\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium-adb\\keys\\testkey.x509.pem","C:\\Users\\Administrator\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-v3.1.1.apk"]'
[ADB] Checking app cert for C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk
[ADB] Starting 'D:\DeviceSettingPOC\android-sdk\build-tools\27.0.3\apksigner.bat' with args '["verify","--print-certs","C:\\Users\\Administrator\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-debug-androidTest.apk"]'
[ADB] 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is signed with non-default certificate
[ADB] C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is already zip-aligned. Doing nothing
[ADB] Signing 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' with default cert
[ADB] Starting 'D:\DeviceSettingPOC\android-sdk\build-tools\27.0.3\apksigner.bat' with args '["sign","--key","C:\\Users\\Administrator\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium-adb\\keys\\testkey.pk8","--cert","C:\\Users\\Administrator\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium-adb\\keys\\testkey.x509.pem","C:\\Users\\Administrator\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-debug-androidTest.apk"]'
[UiAutomator2] Server packages are going to be (re)installed
[UiAutomator2] Full packages reinstall is going to be performed
[ADB] Uninstalling io.appium.uiautomator2.server
[ADB] Getting install status for io.appium.uiautomator2.server
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 shell dumpsys package io.appium.uiautomator2.server'
[ADB] 'io.appium.uiautomator2.server' is installed
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 shell am force-stop io.appium.uiautomator2.server'
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 uninstall io.appium.uiautomator2.server'
[ADB] 'adb uninstall io.appium.uiautomator2.server' command output: Success
[ADB] io.appium.uiautomator2.server was successfully uninstalled
[ADB] Device API level: 24
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 install C\:\\Users\\Administrator\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-v3.1.1.apk'
[ADB] Install command stdout: Success
[ADB] Uninstalling io.appium.uiautomator2.server.test
[ADB] Getting install status for io.appium.uiautomator2.server.test
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 shell dumpsys package io.appium.uiautomator2.server.test'
[ADB] 'io.appium.uiautomator2.server.test' is installed
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 shell am force-stop io.appium.uiautomator2.server.test'
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 uninstall io.appium.uiautomator2.server.test'
[ADB] 'adb uninstall io.appium.uiautomator2.server.test' command output: Success
[ADB] io.appium.uiautomator2.server.test was successfully uninstalled
[ADB] Device API level: 24
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 install C\:\\Users\\Administrator\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-debug-androidTest.apk'
[ADB] Install command stdout: Success
[UiAutomator2] Waiting up to 20000ms for instrumentation 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' to be available
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 shell pm list instrumentation'
[UiAutomator2] Instrumentation 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' available
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 wait-for-device'
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 shell echo ping'
[AndroidDriver] Pushing settings apk to device...
[ADB] Getting install status for io.appium.settings
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 shell dumpsys package io.appium.settings'
[ADB] 'io.appium.settings' is installed
[ADB] Getting package info for 'io.appium.settings'
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 shell dumpsys package io.appium.settings'
[ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('2.11.0' >= '2.11.0')
[ADB] There is no need to install/upgrade 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\io.appium.settings\apks\settings_apk-debug.apk'
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 shell ps'
[ADB] Device API level: 24
[ADB] Device API level: 24
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 shell am start -W -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'
[ADB] Device API level: 24
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 shell appops set io.appium.settings android\:mock_location allow'
[Logcat] Starting logcat capture
[UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8200
[ADB] Forwarding system: 8200 to device: 6790
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 forward tcp\:8200 tcp\:6790'
[UiAutomator2] No app capability. Assuming it is already on the device
[ADB] Checking app cert for undefined
[ADB] 'undefined' does not exist
[ADB] Getting all processes with uiautomator
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 shell ps'
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 shell am force-stop io.appium.uiautomator2.server'
[UiAutomator2] Starting UIAutomator2 server 3.1.1
[UiAutomator2] Using UIAutomator2 server from 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v3.1.1.apk' and test from 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[UiAutomator2] Running command: 'adb -s SJE5T17A17000561 shell am instrument -w io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner'
[UiAutomator2] Waiting up to 20000ms for UiAutomator2 to be online...
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[UiAutomator2] [UIAutomator2] INSTRUMENTATION_STATUS: id=ActivityManagerService
[UiAutomator2] [UIAutomator2] INSTRUMENTATION_STATUS: Error=Permission Denial: starting instrumentation ComponentInfo{io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner} from pid=19303, uid=19303 not allowed because package io.appium.uiautomator2.server.test does not have a signature matching the target io.appium.uiautomator2.server
[UiAutomator2] [UIAutomator2] INSTRUMENTATION_STATUS_CODE: -1
[UiAutomator2] [UIAutomator2] java.lang.SecurityException: Permission Denial: starting instrumentation ComponentInfo{io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner} from pid=19303, uid=19303 not allowed because package io.appium.uiautomator2.server.test does not have a signature matching the target io.appium.uiautomator2.server
[UiAutomator2] [UIAutomator2] at android.os.Parcel.readException(Parcel.java:1665)
[UiAutomator2] [UIAutomator2] at android.os.Parcel.readException(Parcel.java:1618)
[UiAutomator2] [UIAutomator2] at android.app.ActivityManagerProxy.startInstrumentation(ActivityManagerNative.java:4542)
[UiAutomator2] [UIAutomator2] at com.android.commands.am.Am.runInstrument(Am.java:889)
[UiAutomator2] [UIAutomator2] at com.android.commands.am.Am.onRun(Am.java:400)
[UiAutomator2] [UIAutomator2] at com.android.internal.os.BaseCommand.run(BaseCommand.java:51)
[UiAutomator2] [UIAutomator2] at com.android.commands.am.Am.main(Am.java:121)
[UiAutomator2] [UIAutomator2] at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
[UiAutomator2] [UIAutomator2] at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:262)
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[JSONWP Proxy] Matched '/status' to command name 'getStatus'
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[UiAutomator2] Deleting UiAutomator2 session
[UiAutomator2] Deleting UiAutomator2 server session
[JSONWP Proxy] Matched '/' to command name 'deleteSession'
[UiAutomator2] 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
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 shell am force-stop com.swirebevmobile.msfa.login'
[Logcat] Stopping logcat capture
[ADB] Removing forwarded port socket connection: 8200
[ADB] Running 'D:\DeviceSettingPOC\android-sdk\platform-tools\adb.exe -P 5037 -s SJE5T17A17000561 forward --remove tcp\:8200'
[ADB] Device API level: 24
[BaseDriver] Event 'newSessionStarted' logged at 1546939898318 (17:31:38 GMT+0800 (China Standard Time))
[MJSONWP] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: read ECONNRESET
[MJSONWP] at JWProxy.command (C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:236:13)
[HTTP] <-- POST /wd/hub/session 500 26146 ms - 217
[HTTP]
[HTTP] --> DELETE /wd/hub/session
[HTTP] {}
[HTTP] No route found. Setting content type to 'text/plain'
[HTTP] <-- DELETE /wd/hub/session 404 8 ms - 57
[HTTP]
Issue Analytics
- State:
- Created 5 years ago
- Comments:11
Top Results From Across the Web
Issue with installing Appium UIAutomator2 on virtual device
Having troubles with getting UIAutomator2 setup on a virtual Android device. ... Error: Cannot verify the signature of '/Applications/Appium.app/Contents/ ...
Read more >When starting session in appium recieving error - Stack Overflow
An unknown server-side error occurred while processing the command. Original error: Cannot verify the signature of ...
Read more >appium server运行脚本时报错 - 霍格沃兹答疑区 - 测试人社区
[Appium] Setting 'automationName=UiAutomator2' by default and using the ... error has occurred, please check your installation and try again
Read more >appium/appium - Gitter
Hello! I have a strange problem: I copy app.apk to folder for Appium, start tests (Pytest, Uiautomator2) and when Appium try install apk...
Read more >Server-side error occurred while processing Appium-server
I took a little Appium test in java just to launch the test app on a ... session [Appium] [Appium] Setting 'automationName=UiAutomator2' by ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am having the exact same issue. I tried to sign the apk manually via the apksigner commands and it worked. However, when I start my tests Appium is always complaining about
[debug] [JSONWP Proxy] Matched ‘/status’ to command name ‘getStatus’ [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body [JSONWP Proxy] Got an unexpected response: {“code”:“ECONNRESET”,“errno”:“ECONNRESET”,“syscall”:“read”}
when I run Appium from the command line. I am struggling to get it running, any help will be very welcome. Thank you in advance.
@mykola-mokhnach after check apksigner.bat, found apksigner can’t sign app. After reinstall android sdk build-tool, now can start app normally. Thanks.