-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Error: The instrumentation process cannot be initialized. #12607
Comments
Are you sure the UIA2 server is installed on the device? |
|
The server installation is disabled explicitly, so I don't think it is an Appium issue. It just does what is supposed to do, e. g. if you want to control server version on your own then please do it. |
the same works in version 1.10.1, this is problem in appium or automator2 driver. The same environment. |
How to update UIAutomator2 inside appium? or downgrade version of UIAutomator2? I want to try to get back the driver version to see if it works in version 1.13. |
you cannot, since UIA2 has dependencies on other modules. You must downgrade the whole Appium package |
Thanks very much for support, |
I don't see any problems there - the exception is expected. Like I said above you either keep skipping server install and then manage it on your own or let Appium to manage it. |
Closed as not an issue |
Can someone explained that please? I got the same problem and I do not understand why this expected. I just want to run a test in chrome. ` capabilities.browserName = "chrome"
Cannot work with the device in my tests. |
Just change the emulator/simulator on the device you are running your tests on. Worked for me |
This issue is occurring even with real device. Can you someone mention resolution steps. Appium version: 1.15.1 |
same issue happening so often especially when u try to run inspector session on remote device with another appium installed on the remote server |
An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized within 60000ms timeout. Make sure the application under test does not crash and investigate the logcat output. You could also try to increase the value of 'uiautomator2ServerLaunchTimeout' capability.don't know why :( |
I got the same error when using physical device and switching between different appium servers (on different computer). The solution that I got is to uninstall the |
I got the same error pls support
|
If not then how I can install UIA? |
HI , Am getting the below error, While i run my appium via protractor, Can anyone please help [info] �[35m[Appium]�[39m Welcome to Appium v1.15.1 |
Something permission error on your local had?
|
HI KazuCocoa, sorry for the above post, after connected to my organisation network. Am getting an different error screen in Appium .. Could you please have a look [info] �[35m[Appium]�[39m Welcome to Appium v1.15.1
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[Instrumentation]�[39m io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:[debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [debug] �[35m[WD Proxy]�[39m Matched '/status' to command name 'getStatus' [debug] �[35m[WD Proxy]�[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body[info] �[35m[WD Proxy]�[39m Got an unexpected response with status 401: [info] �[35m[WD Proxy]�[39m <TITLE>Access Denied</TITLE> [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m
[info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [info] �[35m[WD Proxy]�[39m [error] �[35m[UiAutomator2]�[39m Error: The instrumentation process cannot be initialized within 30000ms timeout. Make sure the application under test does not crash and investigate the logcat output. You could also try to increase the value of 'uiautomator2ServerLaunchTimeout' capability. [error] �[35m[UiAutomator2]�[39m at Object.wrappedLogger.errorAndThrow (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:79:13) [error] �[35m[UiAutomator2]�[39m at UiAutomator2Server.errorAndThrow [as startSession] (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\uiautomator2.js:216:15) [debug] �[35m[UiAutomator2]�[39m Deleting UiAutomator2 session [debug] �[35m[UiAutomator2]�[39m Deleting UiAutomator2 server session [debug] �[35m[WD Proxy]�[39m Matched '/' to command name 'deleteSession' [warn] �[35m[UiAutomator2]�[39m 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] �[35m[Logcat]�[39m Stopping logcat capture [debug] �[35m[ADB]�[39m Removing forwarded port socket connection: 8200 [debug] �[35m[ADB]�[39m Running 'C:\Users\z029678\Desktop\Appium\platform-tools\adb.exe -P 5037 -s 6b426af90906 forward --remove tcp:8200' [info] �[35m[UiAutomator2]�[39m Restoring hidden api policy to the device default configuration [debug] �[35m[ADB]�[39m Running 'C:\Users\z029678\Desktop\Appium\platform-tools\adb.exe -P 5037 -s 6b426af90906 shell settings delete global hidden_api_policy_pre_p_apps'[debug] �[35m[ADB]�[39m Running 'C:\Users\z029678\Desktop\Appium\platform-tools\adb.exe -P 5037 -s 6b426af90906 shell settings delete global hidden_api_policy_p_apps'[debug] �[35m[ADB]�[39m Running 'C:\Users\z029678\Desktop\Appium\platform-tools\adb.exe -P 5037 -s 6b426af90906 shell settings delete global hidden_api_policy'[debug] �[35m[BaseDriver]�[39m Event 'newSessionStarted' logged at 1588172991587 (20:39:51 GMT+0530 (India Standard Time)) [debug] �[35m[MJSONWP]�[39m Encountered internal error running command: Error: The instrumentation process cannot be initialized within 30000ms timeout. Make sure the application under test does not crash and investigate the logcat output. You could also try to increase the value of 'uiautomator2ServerLaunchTimeout' capability. [debug] �[35m[MJSONWP]�[39m at Object.wrappedLogger.errorAndThrow (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:79:13) [debug] �[35m[MJSONWP]�[39m at UiAutomator2Server.errorAndThrow [as startSession] (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\uiautomator2.js:216:15) [info] �[35m[HTTP]�[39m �[37m<-- POST /wd/hub/session �[39m�[31m500�[39m �[90m57313 ms - 388�[39m [info] �[35m[HTTP]�[39m �[90m�[39m |
What happens when you call adb shell am instrument command as below?
|
Thank you. |
The problem
I'm have this error in appium version 1.11 upper, in version 1.10.1 works very well, the same error in windows, linux and mac.
Error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.
An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output. (Selenium::WebDriver::Error::UnknownError)
UnknownError: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.
at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:826:9)
at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:447:37)
at
Briefly describe the issue you are experiencing (or the feature you want to see added to Appium). Tell us what you were trying to do and what happened instead. Remember, this is not a place to ask questions. For that, go to http://discuss.appium.io!
Environment
Name: Nexus_5_API_27
CPU/ABI: Google Play Intel Atom (x86)
Path: /home/reinaldorossetti/.android/avd/Nexus_5_API_27.avd
Target: google_apis_playstore [Google Play] (API level 27)
Android SDK 26.1.1
Skin: nexus_5
Java:
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
Details
If necessary, describe the problem you have been experiencing in more detail.
Link to Appium logs
https://gist.github.com/reinaldorossetti/a8c75b679ac613571bb3b5d5ec9b0ae0
Code To Reproduce Issue [ Good To Have ]
Please remember that with sample code it's easier to reproduce the bug and it's much faster to fix it.
Please git clone https://github.com/appium/appium and from the
sample-code
directory, use one of your favourite languages and sample apps to reproduce the issue.In case a similar scenario is missing in sample-code, please submit a PR with one of the sample apps provided.
** Appium started as sudo and adb uninstall io.appium.uiautomator2.server as Success
reinaldorossetti@reinaldorossetti-Notebook:~$ adb uninstall io.appium.uiautomator2.server.test
Success
The text was updated successfully, but these errors were encountered: