New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 716175 link

Starred by 3 users

Issue metadata

Status: Duplicate
Merged: issue chromedriver:1766
Owner: ----
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

Chrome not reachable error

Reported by nelsj...@yahoo.com, Apr 27 2017

Issue description

Chrome Version       : 58.0.3029.81 (Official Build) (64-bit)
chromedriver version : 2.29.461591
URLs (if applicable) : n/a
Other browsers tested: None


Description: 
Using the latest version of Chrome, chromedriver, and Selenium 3.3.1 my tests fail to run with fairly high frequency.  When I watch the running processes, I do see chromedriver.exe start, but the browser does not open.  After a minute or so, I get a No such session exception from Selenium, in that I see that chromedriver is saying "Chrome not reachable".  In trying to isolate what the problem was, I did see a suggestion saying it would be helpful to try to reproduce the problem manually, which also causes the issue for me. 

What steps will reproduce the problem?

(1) run the command "chromedriver --url-base=wd/hub --verbose" in one terminal
(2) run the command "url -XPOST http://localhost:9515/wd/hub/session -d '{"desiredCapabilities":{"browserName":"chrome"}}' in another terminal

Results:

$ curl -XPOST http://localhost:9515/wd/hub/session -d '{"desiredCapabilities":{"browserName":"chrome"}}'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   278  100   230    0    48      3      0  0:01:16  0:01:01  0:00:15    40{"sessionId":"b6d2a81c479d21cc7028c30ec0014ec1","status":100,"value":{"message":"chrome not reachable\n  (Driver info: chromedriver=2.29.461591 (62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 6.1.7601 SP1 x86_64)"}}

$ ./chromedriver --url-base=wd/hub --verbose
Starting ChromeDriver 2.29.461591 (62ebf098771772160f391d75e589dc567915b233) on port 9515
Only local connections are allowed.
[62.147][INFO]: COMMAND InitSession {
   "desiredCapabilities": {
      "browserName": "chrome"
   }
}
[62.153][INFO]: Populating Preferences file: {
   "alternate_error_pages": {
      "enabled": false
   },
   "autofill": {
      "enabled": false
   },
   "browser": {
      "check_default_browser": false
   },
   "distribution": {
      "import_bookmarks": false,
      "import_history": false,
      "import_search_engine": false,
      "make_chrome_default_for_user": false,
      "show_welcome_page": false,
      "skip_first_run_ui": true
   },
   "dns_prefetching": {
      "enabled": false
   },
   "profile": {
      "content_settings": {
         "pattern_pairs": {
            "https://*,*": {
               "media-stream": {
                  "audio": "Default",
                  "video": "Default"
               }
            }
         }
      },
      "default_content_setting_values": {
         "geolocation": 1
      },
      "default_content_settings": {
         "geolocation": 1,
         "mouselock": 1,
         "notifications": 1,
         "popups": 1,
         "ppapi-broker": 1
      },
      "password_manager_enabled": false
   },
   "safebrowsing": {
      "enabled": false
   },
   "search": {
      "suggest_enabled": false
   },
   "translate": {
      "enabled": false
   }
}
[62.157][INFO]: Populating Local State file: {
   "background_mode": {
      "enabled": false
   },
   "ssl": {
      "rev_checking": {
         "enabled": false
      }
   }
}
[62.183][INFO]: Launching chrome: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-background-networking --disable-client-side-phishing-detection --disable-default-apps --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --disable-web-resources --enable-automation --enable-logging --ignore-certificate-errors --load-component-extension="C:\Users\username\AppData\Local\Temp\scoped_dir7280_22616\internal" --log-level=0 --metrics-recording-only --no-first-run --password-store=basic --remote-debugging-port=12209 --safebrowsing-disable-auto-update --test-type=webdriver --use-mock-keychain --user-data-dir="C:\Users\username\AppData\Local\Temp\scoped_dir7280_266" data:,
[62.295][DEBUG]: DevTools request: http://localhost:12209/json/version
[64.307][DEBUG]: DevTools request failed
[64.358][DEBUG]: DevTools request: http://localhost:12209/json/version
[64.552][DEBUG]: DevTools request failed
[64.603][DEBUG]: DevTools request: http://localhost:12209/json/version
[66.358][DEBUG]: DevTools request failed
[66.409][DEBUG]: DevTools request: http://localhost:12209/json/version
[66.601][DEBUG]: DevTools request failed
[66.652][DEBUG]: DevTools request: http://localhost:12209/json/version
[68.410][DEBUG]: DevTools request failed
[68.461][DEBUG]: DevTools request: http://localhost:12209/json/version
[68.749][DEBUG]: DevTools request failed
[68.800][DEBUG]: DevTools request: http://localhost:12209/json/version
[70.466][DEBUG]: DevTools request failed
[70.517][DEBUG]: DevTools request: http://localhost:12209/json/version
[70.812][DEBUG]: DevTools request failed
[70.863][DEBUG]: DevTools request: http://localhost:12209/json/version
[72.514][DEBUG]: DevTools request failed
[72.564][DEBUG]: DevTools request: http://localhost:12209/json/version
[72.861][DEBUG]: DevTools request failed
[72.912][DEBUG]: DevTools request: http://localhost:12209/json/version
[74.567][DEBUG]: DevTools request failed
[74.617][DEBUG]: DevTools request: http://localhost:12209/json/version
[74.912][DEBUG]: DevTools request failed
[74.962][DEBUG]: DevTools request: http://localhost:12209/json/version
[76.620][DEBUG]: DevTools request failed
[76.670][DEBUG]: DevTools request: http://localhost:12209/json/version
[76.960][DEBUG]: DevTools request failed
[77.010][DEBUG]: DevTools request: http://localhost:12209/json/version
[78.676][DEBUG]: DevTools request failed
[78.726][DEBUG]: DevTools request: http://localhost:12209/json/version
[79.016][DEBUG]: DevTools request failed
[79.067][DEBUG]: DevTools request: http://localhost:12209/json/version
[80.726][DEBUG]: DevTools request failed
[80.777][DEBUG]: DevTools request: http://localhost:12209/json/version
[81.069][DEBUG]: DevTools request failed
[81.120][DEBUG]: DevTools request: http://localhost:12209/json/version
[82.773][DEBUG]: DevTools request failed
[82.823][DEBUG]: DevTools request: http://localhost:12209/json/version
[83.123][DEBUG]: DevTools request failed
[83.173][DEBUG]: DevTools request: http://localhost:12209/json/version
[84.822][DEBUG]: DevTools request failed
[84.872][DEBUG]: DevTools request: http://localhost:12209/json/version
[85.172][DEBUG]: DevTools request failed
[85.222][DEBUG]: DevTools request: http://localhost:12209/json/version
[86.878][DEBUG]: DevTools request failed
[86.928][DEBUG]: DevTools request: http://localhost:12209/json/version
[87.228][DEBUG]: DevTools request failed
[87.278][DEBUG]: DevTools request: http://localhost:12209/json/version
[88.949][DEBUG]: DevTools request failed
[89.000][DEBUG]: DevTools request: http://localhost:12209/json/version
[89.286][DEBUG]: DevTools request failed
[89.336][DEBUG]: DevTools request: http://localhost:12209/json/version
[91.007][DEBUG]: DevTools request failed
[91.057][DEBUG]: DevTools request: http://localhost:12209/json/version
[91.337][DEBUG]: DevTools request failed
[91.387][DEBUG]: DevTools request: http://localhost:12209/json/version
[93.056][DEBUG]: DevTools request failed
[93.106][DEBUG]: DevTools request: http://localhost:12209/json/version
[93.398][DEBUG]: DevTools request failed
[93.449][DEBUG]: DevTools request: http://localhost:12209/json/version
[95.101][DEBUG]: DevTools request failed
[95.152][DEBUG]: DevTools request: http://localhost:12209/json/version
[95.451][DEBUG]: DevTools request failed
[95.502][DEBUG]: DevTools request: http://localhost:12209/json/version
[97.153][DEBUG]: DevTools request failed
[97.204][DEBUG]: DevTools request: http://localhost:12209/json/version
[97.506][DEBUG]: DevTools request failed
[97.557][DEBUG]: DevTools request: http://localhost:12209/json/version
[99.208][DEBUG]: DevTools request failed
[99.259][DEBUG]: DevTools request: http://localhost:12209/json/version
[99.552][DEBUG]: DevTools request failed
[99.603][DEBUG]: DevTools request: http://localhost:12209/json/version
[101.268][DEBUG]: DevTools request failed
[101.319][DEBUG]: DevTools request: http://localhost:12209/json/version
[101.607][DEBUG]: DevTools request failed
[101.658][DEBUG]: DevTools request: http://localhost:12209/json/version
[103.326][DEBUG]: DevTools request failed
[103.376][DEBUG]: DevTools request: http://localhost:12209/json/version
[103.665][DEBUG]: DevTools request failed
[103.716][DEBUG]: DevTools request: http://localhost:12209/json/version
[105.372][DEBUG]: DevTools request failed
[105.423][DEBUG]: DevTools request: http://localhost:12209/json/version
[105.711][DEBUG]: DevTools request failed
[105.761][DEBUG]: DevTools request: http://localhost:12209/json/version
[107.424][DEBUG]: DevTools request failed
[107.475][DEBUG]: DevTools request: http://localhost:12209/json/version
[107.764][DEBUG]: DevTools request failed
[107.815][DEBUG]: DevTools request: http://localhost:12209/json/version
[109.477][DEBUG]: DevTools request failed
[109.528][DEBUG]: DevTools request: http://localhost:12209/json/version
[109.817][DEBUG]: DevTools request failed
[109.868][DEBUG]: DevTools request: http://localhost:12209/json/version
[111.520][DEBUG]: DevTools request failed
[111.570][DEBUG]: DevTools request: http://localhost:12209/json/version
[111.872][DEBUG]: DevTools request failed
[111.923][DEBUG]: DevTools request: http://localhost:12209/json/version
[113.583][DEBUG]: DevTools request failed
[113.633][DEBUG]: DevTools request: http://localhost:12209/json/version
[113.926][DEBUG]: DevTools request failed
[113.976][DEBUG]: DevTools request: http://localhost:12209/json/version
[115.636][DEBUG]: DevTools request failed
[115.686][DEBUG]: DevTools request: http://localhost:12209/json/version
[115.976][DEBUG]: DevTools request failed
[116.026][DEBUG]: DevTools request: http://localhost:12209/json/version
[117.683][DEBUG]: DevTools request failed
[117.733][DEBUG]: DevTools request: http://localhost:12209/json/version
[118.023][DEBUG]: DevTools request failed
[118.073][DEBUG]: DevTools request: http://localhost:12209/json/version
[119.735][DEBUG]: DevTools request failed
[119.786][DEBUG]: DevTools request: http://localhost:12209/json/version
[120.075][DEBUG]: DevTools request failed
[120.125][DEBUG]: DevTools request: http://localhost:12209/json/version
[121.786][DEBUG]: DevTools request failed
[121.837][DEBUG]: DevTools request: http://localhost:12209/json/version
[122.126][DEBUG]: DevTools request failed
[122.177][DEBUG]: DevTools request: http://localhost:12209/json/version
[123.837][DEBUG]: DevTools request failed
[123.875][INFO]: RESPONSE InitSession chrome not reachable
[123.875][DEBUG]: Log type 'driver' lost 0 entries on destruction
[123.875][DEBUG]: Log type 'browser' lost 0 entries on destruction




Sometimes it works though, in which case I get the following results:

$ curl -XPOST http://localhost:9515/wd/hub/session -d '{"desiredCapabilities":{"browserName":"Chrome"}}'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   828  100   780  100    48    112      6  0:00:08  0:00:06  0:00:02   199{"sessionId":"ef91600e7111f6895e21472f99e43f34","status":0,"value":{"acceptSslCerts":true,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"browserName":"chrome","chrome":{"chromedriverVersion":"2.29.461591 (62ebf098771772160f391d75e589dc567915b233)","userDataDir":"C:\\Users\\username\\AppData\\Local\\Temp\\scoped_dir7704_18380"},"cssSelectorsEnabled":true,"databaseEnabled":false,"handlesAlerts":true,"hasTouchScreen":false,"javascriptEnabled":true,"locationContextEnabled":true,"mobileEmulationEnabled":false,"nativeEvents":true,"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platform":"Windows NT","rotatable":false,"takesHeapSnapshot":true,"takesScreenshot":true,"unexpectedAlertBehaviour":"","version":"58.0.3029.81","webStorageEnabled":true}}


$ ./chromedriver --url-base=wd/hub --verbose
Starting ChromeDriver 2.29.461591 (62ebf098771772160f391d75e589dc567915b233) on port 9515
Only local connections are allowed.
[9.131][INFO]: COMMAND InitSession {
   "desiredCapabilities": {
      "browserName": "Chrome"
   }
}
[9.137][INFO]: Populating Preferences file: {
   "alternate_error_pages": {
      "enabled": false
   },
   "autofill": {
      "enabled": false
   },
   "browser": {
      "check_default_browser": false
   },
   "distribution": {
      "import_bookmarks": false,
      "import_history": false,
      "import_search_engine": false,
      "make_chrome_default_for_user": false,
      "show_welcome_page": false,
      "skip_first_run_ui": true
   },
   "dns_prefetching": {
      "enabled": false
   },
   "profile": {
      "content_settings": {
         "pattern_pairs": {
            "https://*,*": {
               "media-stream": {
                  "audio": "Default",
                  "video": "Default"
               }
            }
         }
      },
      "default_content_setting_values": {
         "geolocation": 1
      },
      "default_content_settings": {
         "geolocation": 1,
         "mouselock": 1,
         "notifications": 1,
         "popups": 1,
         "ppapi-broker": 1
      },
      "password_manager_enabled": false
   },
   "safebrowsing": {
      "enabled": false
   },
   "search": {
      "suggest_enabled": false
   },
   "translate": {
      "enabled": false
   }
}
[9.140][INFO]: Populating Local State file: {
   "background_mode": {
      "enabled": false
   },
   "ssl": {
      "rev_checking": {
         "enabled": false
      }
   }
}
[9.166][INFO]: Launching chrome: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-background-networking --disable-client-side-phishing-detection --disable-default-apps --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --disable-web-resources --enable-automation --enable-logging --ignore-certificate-errors --load-component-extension="C:\Users\username\AppData\Local\Temp\scoped_dir7704_13859\internal" --log-level=0 --metrics-recording-only --no-first-run --password-store=basic --remote-debugging-port=12391 --safebrowsing-disable-auto-update --test-type=webdriver --use-mock-keychain --user-data-dir="C:\Users\username\AppData\Local\Temp\scoped_dir7704_18380" data:,
[9.280][DEBUG]: DevTools request: http://localhost:12391/json/version
[11.291][DEBUG]: DevTools request failed
[11.342][DEBUG]: DevTools request: http://localhost:12391/json/version
[11.550][DEBUG]: DevTools response: {
   "Browser": "Chrome/58.0.3029.81",
   "Protocol-Version": "1.2",
   "User-Agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36",
   "V8-Version": "5.8.283.32",
   "WebKit-Version": "537.36 (@ac0bae59f0aa5b391517e132bf172144b1939333)"
}

[11.596][DEBUG]: DevTools request: http://localhost:12391/json
[11.599][DEBUG]: DevTools response: [ {
   "description": "",
   "devtoolsFrontendUrl": "/devtools/inspector.html?ws=localhost:12391/devtools/page/b967e909-5232-44db-8e4a-9f0c78701682",
   "id": "b967e909-5232-44db-8e4a-9f0c78701682",
   "title": "",
   "type": "other",
   "url": "chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html",
   "webSocketDebuggerUrl": "ws://localhost:12391/devtools/page/b967e909-5232-44db-8e4a-9f0c78701682"
}, {
   "description": "",
   "devtoolsFrontendUrl": "/devtools/inspector.html?ws=localhost:12391/devtools/page/f9dcfc7c-8ebd-4bd1-a583-4ca636ccc555",
   "id": "f9dcfc7c-8ebd-4bd1-a583-4ca636ccc555",
   "title": "",
   "type": "page",
   "url": "data:,",
   "webSocketDebuggerUrl": "ws://localhost:12391/devtools/page/f9dcfc7c-8ebd-4bd1-a583-4ca636ccc555"
} ]

[11.599][DEBUG]: DevTools request: http://localhost:12391/json
[11.603][DEBUG]: DevTools response: [ {
   "description": "",
   "devtoolsFrontendUrl": "/devtools/inspector.html?ws=localhost:12391/devtools/page/b967e909-5232-44db-8e4a-9f0c78701682",
   "id": "b967e909-5232-44db-8e4a-9f0c78701682",
   "title": "",
   "type": "other",
   "url": "chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html",
   "webSocketDebuggerUrl": "ws://localhost:12391/devtools/page/b967e909-5232-44db-8e4a-9f0c78701682"
}, {
   "description": "",
   "devtoolsFrontendUrl": "/devtools/inspector.html?ws=localhost:12391/devtools/page/f9dcfc7c-8ebd-4bd1-a583-4ca636ccc555",
   "id": "f9dcfc7c-8ebd-4bd1-a583-4ca636ccc555",
   "title": "",
   "type": "page",
   "url": "data:,",
   "webSocketDebuggerUrl": "ws://localhost:12391/devtools/page/f9dcfc7c-8ebd-4bd1-a583-4ca636ccc555"
} ]

[11.623][INFO]: resolved localhost to ["::1","127.0.0.1"]
[12.700][DEBUG]: DEVTOOLS COMMAND Log.enable (id=1) {

}
[12.700][DEBUG]: DEVTOOLS COMMAND DOM.getDocument (id=2) {

}
[12.701][DEBUG]: DEVTOOLS COMMAND Runtime.enable (id=3) {

}
[12.701][DEBUG]: DEVTOOLS COMMAND Page.enable (id=4) {

}
[12.701][DEBUG]: DEVTOOLS COMMAND Page.enable (id=5) {

}
[15.800][DEBUG]: DEVTOOLS RESPONSE Log.enable (id=1) {

}
[15.800][DEBUG]: DEVTOOLS RESPONSE DOM.getDocument (id=2) {
   "root": {
      "backendNodeId": 1,
      "baseURL": "",
      "childNodeCount": 1,
      "children": [ {
         "attributes": [  ],
         "backendNodeId": 2,
         "childNodeCount": 2,
         "children": [ {
            "attributes": [  ],
            "backendNodeId": 3,
            "childNodeCount": 0,
            "localName": "head",
            "nodeId": 3,
            "nodeName": "HEAD",
            "nodeType": 1,
            "nodeValue": "",
            "parentId": 2
         }, {
            "attributes": [  ],
            "backendNodeId": 4,
            "childNodeCount": 0,
            "localName": "body",
            "nodeId": 4,
            "nodeName": "BODY",
            "nodeType": 1,
            "nodeValue": "",
            "parentId": 2
         } ],
         "frameId": "11560.1",
         "localName": "html",
         "nodeId": 2,
         "nodeName": "HTML",
         "nodeType": 1,
         "nodeValue": "",
         "parentId": 1
      } ],
      "documentURL": "",
      "localName": "",
      "nodeId": 1,
      "nodeName": "#document",
      "nodeType": 9,
      "nodeValue": "",
      "xmlVersion": ""
   }
}
[15.800][DEBUG]: DEVTOOLS RESPONSE Runtime.enable (id=3) {

}
[15.800][DEBUG]: DEVTOOLS RESPONSE Page.enable (id=4) {

}
[15.800][DEBUG]: DEVTOOLS RESPONSE Page.enable (id=5) {

}
[15.800][DEBUG]: DEVTOOLS COMMAND Page.enable (id=6) {

}
[15.911][DEBUG]: DEVTOOLS EVENT Runtime.executionContextsCleared {

}
[15.911][DEBUG]: DEVTOOLS EVENT DOM.documentUpdated {

}
[15.911][DEBUG]: DEVTOOLS COMMAND DOM.getDocument (id=7) {

}
[15.911][DEBUG]: DEVTOOLS EVENT Page.frameNavigated {
   "frame": {
      "id": "11560.1",
      "loaderId": "11560.1",
      "mimeType": "text/plain",
      "securityOrigin": "://",
      "url": "data:,"
   }
}
[15.911][DEBUG]: DEVTOOLS EVENT Runtime.executionContextCreated {
   "context": {
      "auxData": {
         "frameId": "11560.1",
         "isDefault": true
      },
      "id": 1,
      "name": "",
      "origin": "://"
   }
}
[15.911][DEBUG]: DEVTOOLS RESPONSE Page.enable (id=6) {

}
[15.912][DEBUG]: DEVTOOLS EVENT Page.loadEventFired {
   "timestamp": 33610.319909
}
[15.912][DEBUG]: DEVTOOLS EVENT Page.frameStoppedLoading {
   "frameId": "11560.1"
}
[15.912][DEBUG]: DEVTOOLS EVENT DOM.documentUpdated {

}
[15.912][DEBUG]: DEVTOOLS COMMAND DOM.getDocument (id=8) {

}
[15.914][DEBUG]: DEVTOOLS EVENT Page.domContentEventFired {
   "timestamp": 33610.321064
}
[15.966][DEBUG]: DEVTOOLS RESPONSE DOM.getDocument (id=7) {
   "root": {
      "backendNodeId": 5,
      "baseURL": "data:,",
      "childNodeCount": 1,
      "children": [ {
         "attributes": [  ],
         "backendNodeId": 6,
         "childNodeCount": 2,
         "children": [ {
            "attributes": [  ],
            "backendNodeId": 7,
            "childNodeCount": 0,
            "localName": "head",
            "nodeId": 7,
            "nodeName": "HEAD",
            "nodeType": 1,
            "nodeValue": "",
            "parentId": 6
         }, {
            "attributes": [  ],
            "backendNodeId": 8,
            "childNodeCount": 1,
            "localName": "body",
            "nodeId": 8,
            "nodeName": "BODY",
            "nodeType": 1,
            "nodeValue": "",
            "parentId": 6
         } ],
         "frameId": "11560.1",
         "localName": "html",
         "nodeId": 6,
         "nodeName": "HTML",
         "nodeType": 1,
         "nodeValue": "",
         "parentId": 5
      } ],
      "documentURL": "data:,",
      "localName": "",
      "nodeId": 5,
      "nodeName": "#document",
      "nodeType": 9,
      "nodeValue": "",
      "xmlVersion": ""
   }
}
[15.967][DEBUG]: DEVTOOLS RESPONSE DOM.getDocument (id=8) {
   "root": {
      "backendNodeId": 5,
      "baseURL": "data:,",
      "childNodeCount": 1,
      "children": [ {
         "attributes": [  ],
         "backendNodeId": 6,
         "childNodeCount": 2,
         "children": [ {
            "attributes": [  ],
            "backendNodeId": 7,
            "childNodeCount": 0,
            "localName": "head",
            "nodeId": 11,
            "nodeName": "HEAD",
            "nodeType": 1,
            "nodeValue": "",
            "parentId": 10
         }, {
            "attributes": [  ],
            "backendNodeId": 8,
            "childNodeCount": 1,
            "localName": "body",
            "nodeId": 12,
            "nodeName": "BODY",
            "nodeType": 1,
            "nodeValue": "",
            "parentId": 10
         } ],
         "frameId": "11560.1",
         "localName": "html",
         "nodeId": 10,
         "nodeName": "HTML",
         "nodeType": 1,
         "nodeValue": "",
         "parentId": 9
      } ],
      "documentURL": "data:,",
      "localName": "",
      "nodeId": 9,
      "nodeName": "#document",
      "nodeType": 9,
      "nodeValue": "",
      "xmlVersion": ""
   }
}
[15.967][DEBUG]: DEVTOOLS COMMAND Runtime.enable (id=9) {

}
[15.970][DEBUG]: DEVTOOLS EVENT Page.frameResized {

}
[15.970][DEBUG]: DEVTOOLS RESPONSE Runtime.enable (id=9) {

}
[15.970][DEBUG]: DEVTOOLS COMMAND Runtime.evaluate (id=10) {
   "expression": "(function() { // Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum f...",
   "returnByValue": true
}
[15.990][DEBUG]: DEVTOOLS RESPONSE Runtime.evaluate (id=10) {
   "result": {
      "type": "object",
      "value": {
         "status": 0,
         "value": 1
      }
   }
}
[15.990][INFO]: RESPONSE InitSession {
   "acceptSslCerts": true,
   "applicationCacheEnabled": false,
   "browserConnectionEnabled": false,
   "browserName": "chrome",
   "chrome": {
      "chromedriverVersion": "2.29.461591 (62ebf098771772160f391d75e589dc567915b233)",
      "userDataDir": "C:\\Users\\username\\AppData\\Local\\Temp\\scoped_dir7704_18380"
   },
   "cssSelectorsEnabled": true,
   "databaseEnabled": false,
   "handlesAlerts": true,
   "hasTouchScreen": false,
   "javascriptEnabled": true,
   "locationContextEnabled": true,
   "mobileEmulationEnabled": false,
   "nativeEvents": true,
   "networkConnectionEnabled": false,
   "pageLoadStrategy": "normal",
   "platform": "Windows NT",
   "rotatable": false,
   "takesHeapSnapshot": true,
   "takesScreenshot": true,
   "~~~": "..."
}

What is the expected result?
Chrome should start, allowing my test to run.


What happens instead?
Chrome fails to start



 
Cc: zhanliang@google.com
Components: Tests>WebDriver
Labels: -Pri-3 M-58 Pri-1
Cc: -zhanliang@google.com johnchen@chromium.org gmanikpure@chromium.org
Hi nelsjaso,

I was unable to repro this issue. I tried running the commands you mentioned, using the same version of Chrome and ChromeDriver, and it worked every time. I suspect it might be a more machine-specific issue. Could you please try a few things:

* Check the event log to see if there are any errors related to Chrome start up or crash.
* Try to launch Chrome manually using the command line displayed by ChromeDriver, and see if it succeeds.
* Try running the same commands on different machines to see if there are any differences.

Thanks,
John

Comment 3 by nelsj...@yahoo.com, Apr 27 2017

Hi John,

Thanks for giving it a shot!

1. I didn't see anything in the event log related to Chrome
2. The command does succeed (There is a warning about not being able to read from the same temp directory the old command used, but after dismissing this chrome starts)
3. I'll give this a try from home and report back.  Curious if it could be some sort of proxy issue.

For the time being I've reverted back to using chromedriver 2.28 and chrome 57.0.2987.98 for my tests.  It's not happening for me with that combination.   

Using Chromedriver 2.28, selenium standalone 3.31 and chrome 58 and I keep getting connection refused.

Chrome is launched by selenium standalone but I keep getting these messages:

Caused by: org.openqa.selenium.WebDriverException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:45816 [localhost/127.0.0.1] failed: Connection refused (Connection refused)
Build info: version: '3.3.1', revision: '5234b32', time: '2017-03-10 09:04:52 -0800'
System info: host: 'Daniels-4k-iMac.local', ip: '10.11.12.1', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.3', java.version: '1.8.0_131'
Driver info: driver.version: ChromeDriver
        at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:91)
        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:604)
        at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:244)
        at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
        at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:144)
        at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:178)
        at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:146)
        ... 14 more
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to localhost:45816 [localhost/127.0.0.1] failed: Connection refused (Connection refused)
        at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:158)
        at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
        at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
        at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
        at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
        at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
        at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
        at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
        at org.openqa.selenium.remote.internal.ApacheHttpClient.fallBackExecute(ApacheHttpClient.java:160)
        at org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:88)
        at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:296)
        at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:113)
        at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
        at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
        ... 20 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:74)
        at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141)
        ... 35 more
13:41:24.996 WARN - Exception: Connection refused (Connection refused)



I've been tracking weird issues with Chromedriver + Selenium + Chrome since Chrome 55 was released; I've tracked all the debugging we've been doing for the Drupal VM project over at https://github.com/geerlingguy/drupal-vm/issues/1152, and Drupal's Behat Extension reports back:

      Could not open connection: chrome not reachable
        (Driver info: chromedriver=2.29.461571 (8a88bbe0775e2a23afda0ceaf2ef7ee74e822cc5),platform=Linux 4.4.0-75-generic x86_64) (WARNING: The server did not provide any stacktrace information)
      Command duration or timeout: 114.32 seconds
      Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
      System info: host: 'drupalvm', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-75-generic', java.version: '1.8.0_121'
      Driver info: driver.version: ChromeDriver (Behat\Mink\Exception\DriverException)

Comment 6 by ajha@chromium.org, Jul 14 2017

Labels: TE-NeedsTriageHelp
Mergedinto: chromedriver:1766
Status: Duplicate (was: Unconfirmed)
Marking this issue as duplicate to https://bugs.chromium.org/p/chromedriver/issues/detail?id=1766.

Please post your observations and repro tests on the original  bug chromedriver:1766  , this will help to track the issue at one place.

Sign in to add a comment