mercredi 1 novembre 2017

Appium chrome not reachable Windows 10

I can't run a test thru Appium on a real android device. It's a hybrid app. Keeps getting error

 An unknown server-side error occurred while processing the command. Original error: chrome not reachable

The tests were running fine a couple days ago, and then just stopped working and started showing that error.

Appium Version is at 1.7.1.

Chromedriver at 2.30

I tried to re-install Appium quite a few times and it did not solve the problem. I also tried to add the setProperty() with chromedriver path but did not work as well.

Here is my Appium log. I saw it can see where chromedriver.exe is, but it doesnt matter because test keeps failing when trying to open the WebView Context.

[debug] [AndroidDriver] Found webviews:     ["WEBVIEW_com.mydomain.app"]
[debug] [AndroidDriver] Available contexts:     ["NATIVE_APP","WEBVIEW_com.mydomain.app"]
[debug] [AndroidDriver] Connecting to chrome-backed webview context 'WEBVIEW_com.mydomain.app'
[debug] [AndroidDriver] A port was not given, using random port: 8001
[debug] [Chromedriver] Changed state to 'starting'
[Chromedriver] Set chromedriver binary as:     C:\Users\larissa\AppData\Roaming\npm\node_modules\appium\node_modules\appium-chromedriver\chromedriver\win\chromedriver.exe
[debug] [Chromedriver] Killing any old chromedrivers, running: FOR /F "usebackq tokens=5" %a in (`netstat -nao ^| findstr /R /C:"8001 "`) do (FOR /F "usebackq" %b in (`TASKLIST /FI "PID eq %a" ^| findstr /I chromedriver.exe`) do (IF NOT %b=="" TASKKILL /F /PID %a))
[Chromedriver] No old chromedrivers seemed to exist
[debug] [Chromedriver] Cleaning any old adb forwarded port socket connections
[debug] [ADB] List forwarding ports
[debug] [ADB] Running 'C:\Users\larissa\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","0024804552","forward","--list"]
[debug] [ADB] Removing forwarded port socket connection: 12323
[debug] [ADB] Running 'C:\Users\larissa\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","0024804552","forward","--remove","tcp:12323"]
[Chromedriver] Spawning chromedriver with: C:\Users\larissa\AppData\Roaming\npm\node_modules\appium\node_modules\appium-chromedriver\chromedriver\win\chromedriver.exe --url-base=wd/hub --port=8001 --adb-port=5037 --verbose
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://ift.tt/2gQMKwC] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"\",\"status\":0,\"value\":{\"build\":{\"version\":\"alpha\"},\"os\":{\"arch\":\"x86_64\",\"name\":\"Windows NT\",\"version\":\"10.0.14393\"}}}"
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://ift.tt/2ikiDhm] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.mydomain.app","androidUseRunningApp":true,"androidDeviceSerial":"0024804552"}}}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"75a149fdaecee4b0aa8cdb918e40126a","status":100,"value":{"message":"chrome not reachable\n  (Driver info: chromedriver=2.30.477700 (0057494ad8732195794a7b32078424f92a5fce41),platform=Windows NT 10.0.14393 x86_64)"}}
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://ift.tt/2ikiDhm] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.mydomain.app","androidUseRunningApp":true,"androidDeviceSerial":"0024804552"}}}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"60405d7465025a41691e55604ad015f6","status":100,"value":{"message":"chrome not reachable\n  (Driver info: chromedriver=2.30.477700 (0057494ad8732195794a7b32078424f92a5fce41),platform=Windows NT 10.0.14393 x86_64)"}}
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://ift.tt/2ikiDhm] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.mydomain.app","androidUseRunningApp":true,"androidDeviceSerial":"0024804552"}}}
[debug] [AndroidBootstrap] Emitting alert message...
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Emitting system alert message
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"5e2a64b719375fbe9ab991e2196061cd","status":100,"value":{"message":"chrome not reachable\n  (Driver info: chromedriver=2.30.477700 (0057494ad8732195794a7b32078424f92a5fce41),platform=Windows NT 10.0.14393 x86_64)"}}
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://ift.tt/2ikiDhm] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.mydomain.app","androidUseRunningApp":true,"androidDeviceSerial":"0024804552"}}}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"5e2a64b719375fbe9ab991e2196061cd","status":100,"value":{"message":"chrome not reachable\n  (Driver info: chromedriver=2.30.477700 (0057494ad8732195794a7b32078424f92a5fce41),platform=Windows NT 10.0.14393 x86_64)"}}
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://ift.tt/2ikiDhm] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.mydomain.app","androidUseRunningApp":true,"androidDeviceSerial":"0024804552"}}}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"4f7d535ec2da981db3699553ee2b2b11","status":100,"value":{"message":"chrome not reachable\n  (Driver info: chromedriver=2.30.477700 (0057494ad8732195794a7b32078424f92a5fce41),platform=Windows NT 10.0.14393 x86_64)"}}
[Chromedriver] Chromedriver exited unexpectedly with code null, signal SIGTERM
[debug] [Chromedriver] Changed state to 'stopped'
[Chromedriver] Error: chrome not reachable
  (Driver info: chromedriver=2.30.477700 (0057494ad8732195794a7b32078424f92a5fce41),platform=Windows NT 10.0.14393 x86_64)
    at Chromedriver.callee$2$0$ (../../lib/chromedriver.js:197:15)
    at tryCatch     (C:\Users\larissa\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke [as _invoke]     (C:\Users\larissa\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:315:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next]     (C:\Users\larissa\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
    at GeneratorFunctionPrototype.invoke     (C:\Users\larissa\AppData\Roaming\npm\node_modules\appium\node_modules\    babel-runtime\regenerator\runtime.js:136:37)
 Error: chrome not reachable
  (Driver info: chromedriver=2.30.477700     (0057494ad8732195794a7b32078424f92a5fce41),platform=Windows NT 10.0.14393 x86_64)
    at Chromedriver.callee$2$0$ (../../lib/chromedriver.js:197:15)
    at tryCatch     (C:\Users\larissa\AppData\Roaming\npm\node_modules\appium\node_modules\    babel-runtime\regenerator\runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Users\larissa\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (C:\Users\larissa\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\larissa\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
[MJSONWP] Encountered internal error running command: Error: chrome not reachable
  (Driver info: chromedriver=2.30.477700 (0057494ad8732195794a7b32078424f92a5fce41),platform=Windows NT 10.0.14393 x86_64)
    at Chromedriver.callee$2$0$ (../../lib/chromedriver.js:197:15)
    at tryCatch     (C:\Users\larissa\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke [as _invoke]     (C:\Users\larissa\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:315:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next]     (C:\Users\larissa\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
    at GeneratorFunctionPrototype.invoke (C:\Users\larissa\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
[HTTP] <-- POST /wd/hub/session/3cab9d65-e952-4d96-9a17-0d5a474c62ec/context 500 253000 ms - 315
[HTTP] --> DELETE /wd/hub/session/3cab9d65-e952-4d96-9a17-0d5a474c62ec {}

Aucun commentaire:

Enregistrer un commentaire