Skip to content

Instantly share code, notes, and snippets.

@VenkateshPS
Last active February 15, 2019 07:22
Show Gist options
  • Save VenkateshPS/1e78f858da322fbb17654b4f564bd70e to your computer and use it in GitHub Desktop.
Save VenkateshPS/1e78f858da322fbb17654b4f564bd70e to your computer and use it in GitHub Desktop.
appium-uiautomator2-server not exists or is not accessible
[Appium] Welcome to Appium v1.11.1-rc.0
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[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.11.1-rc.0"}}
[HTTP] <-- GET /wd/hub/status 200 6 ms - 73
[HTTP]
[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.11.1-rc.0"}}
[HTTP] <-- GET /wd/hub/status 200 2 ms - 73
[HTTP]
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"app":"/Users/venkateshsingh/client-automation/App/uc-debugJenkins-6.1.0-1416d.apk","appActivity":"com.vocera.uc.authentication.AuthenticationActivity","appPackage":"com.vocera.uc","newCommandTimeout":120000,"automationName":"uiautomator2","useNewWDA":true,"autoGrantPermissions":true,"platformName":"Android","deviceName":"MC 40","version":"7.0","autoAcceptAlerts":true},"capabilities":{"alwaysMatch":{"appium:app":"/Users/venkateshsingh/client-automation/App/uc-debugJenkins-6.1.0-1416d.apk","appium:appActivity":"com.vocera.uc.authentication.AuthenticationActivity","appium:appPackage":"com.vocera.uc","appium:autoAcceptAlerts":true,"appium:autoGrantPermissions":true,"appium:automationName":"uiautomator2","appium:deviceName":"MC 40","appium:newCommandTimeout":120000,"platformName":"android","appium:useNewWDA":true,"version":"7.0"},"firstMatch":[{}]}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"app":"/Users/venkateshsingh/client-automation/App/uc-debugJenkins-6.1.0-1416d.apk","appActivity":"com.vocera.uc.authentication.AuthenticationActivity","appPackage":"com.vocera.uc","newCommandTimeout":120000,"automationName":"uiautomator2","useNewWDA":true,"autoGrantPermissions":true,"platformName":"Android","deviceName":"MC 40","version":"7.0","autoAcceptAlerts":true},null,{"alwaysMatch":{"appium:app":"/Users/venkateshsingh/client-automation/App/uc-debugJenkins-6.1.0-1416d.apk","appium:appActivity":"com.vocera.uc.authentication.AuthenticationActivity","appium:appPackage":"com.vocera.uc","appium:autoAcceptAlerts":true,"appium:autoGrantPermissions":true,"appium:automationName":"uiautomator2","appium:deviceName":"MC 40","appium:newCommandTimeout":120000,"platformName":"android","appium:useNewWDA":true,"version":"7.0"},"firstMatch":[{}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1550214933797 (12:45:33 GMT+0530 (India Standard Time))
[BaseDriver] The capabilities ["version"] are not standard capabilities and should have an extension prefix
[Appium] Creating new AndroidUiautomator2Driver (v1.29.1) session
[Appium] Capabilities:
[Appium] platformName: android
[Appium] version: 7.0
[Appium] app: /Users/venkateshsingh/client-automation/App/uc-debugJenkins-6.1.0-1416d.apk
[Appium] appActivity: com.vocera.uc.authentication.AuthenticationActivity
[Appium] appPackage: com.vocera.uc
[Appium] autoAcceptAlerts: true
[Appium] autoGrantPermissions: true
[Appium] automationName: uiautomator2
[Appium] deviceName: MC 40
[Appium] newCommandTimeout: 120000
[Appium] useNewWDA: true
[debug] [BaseDriver] W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"app":"/Users/venkateshsin... were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"platformNa...
[BaseDriver] The following capabilities were provided, but are not recognized by appium: version, autoAcceptAlerts, useNewWDA.
[BaseDriver] Session created with session id: 272fc944-9e73-4e8a-8009-4be2cc6f1e15
(node:52071) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[BaseDriver] Using local app '/Users/venkateshsingh/client-automation/App/uc-debugJenkins-6.1.0-1416d.apk'
[debug] [UiAutomator2] Checking whether app is actually present
[ADB] Checking whether adb is present
[ADB] Found 17 'build-tools' folders under '/Users/venkateshsingh/android' (newest first):
[ADB] /Users/venkateshsingh/android/build-tools/27.0.1
[ADB] /Users/venkateshsingh/android/build-tools/27.0.0
[ADB] /Users/venkateshsingh/android/build-tools/25.0.3
[ADB] /Users/venkateshsingh/android/build-tools/25.0.2
[ADB] /Users/venkateshsingh/android/build-tools/25.0.1
[ADB] /Users/venkateshsingh/android/build-tools/25.0.0
[ADB] /Users/venkateshsingh/android/build-tools/24.0.3
[ADB] /Users/venkateshsingh/android/build-tools/24.0.2
[ADB] /Users/venkateshsingh/android/build-tools/24.0.1
[ADB] /Users/venkateshsingh/android/build-tools/24.0.0
[ADB] /Users/venkateshsingh/android/build-tools/23.0.3
[ADB] /Users/venkateshsingh/android/build-tools/23.0.2
[ADB] /Users/venkateshsingh/android/build-tools/23.0.1
[ADB] /Users/venkateshsingh/android/build-tools/22.0.1
[ADB] /Users/venkateshsingh/android/build-tools/21.1.2
[ADB] /Users/venkateshsingh/android/build-tools/20.0.0
[ADB] /Users/venkateshsingh/android/build-tools/19.1.0
[ADB] Using adb from /Users/venkateshsingh/android/platform-tools/adb
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[AndroidDriver] Using device: 215d832724057ece
[debug] [ADB] Setting device id to 215d832724057ece
[debug] [ADB] Running '/Users/venkateshsingh/android/platform-tools/adb -P 5037 -s 215d832724057ece shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 26
[debug] [ADB] Device API level: 26
[debug] [ADB] Running '/Users/venkateshsingh/android/platform-tools/adb -P 5037 -s 215d832724057ece wait-for-device'
[debug] [ADB] Running '/Users/venkateshsingh/android/platform-tools/adb -P 5037 -s 215d832724057ece shell echo ping'
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running '/Users/venkateshsingh/android/platform-tools/adb -P 5037 -s 215d832724057ece 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 '/Users/venkateshsingh/android/platform-tools/adb -P 5037 -s 215d832724057ece shell dumpsys package io.appium.settings'
[ADB] Checking whether aapt is present
[ADB] Using aapt from /Users/venkateshsingh/android/build-tools/27.0.1/aapt
[debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('2.14.0' >= '2.14.0')
[debug] [ADB] There is no need to install/upgrade '/usr/local/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 '/Users/venkateshsingh/android/platform-tools/adb -P 5037 -s 215d832724057ece shell 'pgrep --help; echo $?''
[debug] [ADB] Running '/Users/venkateshsingh/android/platform-tools/adb -P 5037 -s 215d832724057ece shell pgrep \^appium\\.settings\$'
[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[debug] [ADB] Running '/Users/venkateshsingh/android/platform-tools/adb -P 5037 -s 215d832724057ece shell appops set io.appium.settings android\:mock_location allow'
[debug] [Logcat] Starting logcat capture
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running '/Users/venkateshsingh/android/platform-tools/adb -P 5037 -s 215d832724057ece 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 '/Users/venkateshsingh/android/platform-tools/adb -P 5037 -s 215d832724057ece shell dumpsys package io.appium.uiautomator2.server'
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [UiAutomator2] Deleting UiAutomator2 server session
[debug] [WD 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
[debug] [ADB] Running '/Users/venkateshsingh/android/platform-tools/adb -P 5037 -s 215d832724057ece shell am force-stop com.vocera.uc'
[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running '/Users/venkateshsingh/android/platform-tools/adb -P 5037 -s 215d832724057ece forward --remove tcp\:8200'
[UiAutomator2] Unable to remove port forward 'Error executing adbExec. Original error: 'Command '/Users/venkateshsingh/android/platform-tools/adb -P 5037 -s 215d832724057ece forward --remove tcp\:8200' exited with code 1'; Stderr: 'error: listener 'tcp:8200' not found'; Code: '1''
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1550214937766 (12:45:37 GMT+0530 (India Standard Time))
[debug] [W3C] Encountered internal error running command: Error: The file at path /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v3.2.1.apk does not exist or is not accessible
[debug] [W3C] at ADB.apkUtilsMethods.getApkInfo (/usr/local/lib/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:854:11)
[HTTP] <-- POST /wd/hub/session 500 3999 ms - 837
[HTTP]
org.openqa.selenium.WebDriverException: It is impossible to create a new session because 'createSession' which takes HttpClient, InputStream and long was not found or it is not accessible
Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T14:04:26.12Z'
System info: host: 'Venkateshs-MacBook-Pro.local', ip: 'fe80:0:0:0:8d:11da:1612:9dc9%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.6', java.version: '1.8.0_60'
Driver info: driver.version: UCAndroidDriver
at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:195)
at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:209)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:231)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:207)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:130)
at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:38)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:84)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:94)
at io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:93)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment