ericmckean / chromedriver

Automatically exported from code.google.com/p/chromedriver
0 stars 0 forks source link

Chrome when launched by Chromedriver hangs when under the system account of Windows 2008 server #951

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am using Jenkins to run test automation via the ruby 'watir' gem, which uses 
Chromedriver. Everything has been working fine for a long time, and suddenly 
all tests started failing. Nothing has changed regarding the server or Jenkins 
configuration. I hacked the necessary ruby script to turn on verbose logging 
from Chromedriver and included the log output below. 

NOTE: Tests run fine when I pull up a command prompt from my administrator 
account and run tests from there. But when run via the Jenkins service they 
fail. The Jenkins Windows service is permitted to interact with the desktop. 
What I can see when I look at that desktop is that Chrome has hung. I cannot 
navigate to any web site from it. So, I don't actually know if this is a Chrome 
problem, or a Chromedriver problem. I tried installing the latest version of 
Chrome using the off line installer. My version of Chrome is up to date: 
Version 38.0.2125.104 m. 

------------ CHROMEDRIVER LOG OUTPUT ----------------------------

Starting ChromeDriver (v2.9.248315) on port 9515
[0.537][INFO]: COMMAND InitSession {
   "desiredCapabilities": {
      "browserName": "chrome",
      "chrome.detach": true,
      "chrome.switches": [ "--ignore-certificate-errors", "--disable-extensions", "--disable-popup-blocking", "--disable-translate", "--allow-file-access" ],
      "chromeOptions": {
         "args": [ "--ignore-certificate-errors", "--disable-extensions", "--disable-popup-blocking", "--disable-translate", "--allow-file-access" ],
         "detach": true
      },
      "cssSelectorsEnabled": true,
      "javascriptEnabled": true,
      "nativeEvents": false,
      "platform": "ANY",
      "rotatable": false,
      "takesScreenshot": false,
      "version": ""
   }
}
[0.539][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_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
   }
}
[0.539][INFO]: Populating Local State file: {
   "background_mode": {
      "enabled": false
   },
   "ssl": {
      "rev_checking": {
         "enabled": false
      }
   }
}
[0.541][INFO]: Launching chrome: "C:\Program Files 
(x86)\Google\Chrome\Application\chrome.exe" --allow-file-access 
--disable-background-networking --disable-client-side-phishing-detection 
--disable-component-update --disable-default-apps --disable-extensions 
--disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost 
--disable-sync --disable-translate --disable-web-resources --enable-logging 
--full-memory-crash-report --ignore-certificate-errors 
--load-component-extension="C:\Windows\TEMP\scoped_dir4484_12200\internal" 
--logging-level=1 --metrics-recording-only --no-first-run 
--password-store=basic --remote-debugging-port=12859 
--safebrowsing-disable-auto-update --safebrowsing-disable-download-protection 
--use-mock-keychain --user-data-dir="C:\Windows\TEMP\scoped_dir4484_31752" 
data:,
[0.542][DEBUG]: DevTools request: http://127.0.0.1:12859/json/version
[1.808][DEBUG]: DevTools response: {

   "Browser": "Chrome/38.0.2125.104",

   "Protocol-Version": "1.1",

   "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36",

   "WebKit-Version": "537.36 (@183466)"

}

[1.808][DEBUG]: DevTools request: http://127.0.0.1:12859/json
[1.839][DEBUG]: DevTools response: [ {

   "description": "",

   "devtoolsFrontendUrl": "/devtools/devtools.html?ws=127.0.0.1:12859/devtools/page/7916B2B7-AA23-4FE5-B54A-31A1A1541355",

   "faviconUrl": "chrome://extension-icon/gfdkimpbcpahaombhbimeihdjnejgicl/24/1",

   "id": "7916B2B7-AA23-4FE5-B54A-31A1A1541355",

   "title": "Feedback",

   "type": "background_page",

   "url": "chrome-extension://gfdkimpbcpahaombhbimeihdjnejgicl/_generated_background_page.html",

   "webSocketDebuggerUrl": "ws://127.0.0.1:12859/devtools/page/7916B2B7-AA23-4FE5-B54A-31A1A1541355"

}, {

   "description": "",

   "devtoolsFrontendUrl": "/devtools/devtools.html?ws=127.0.0.1:12859/devtools/page/2CBA06A8-FCF8-4095-B72D-91D973101B75",

   "faviconUrl": "chrome://extension-icon/ennkphjdgehloodpbhlhldgbnhmacadg/24/1",

   "id": "2CBA06A8-FCF8-4095-B72D-91D973101B75",

   "title": "Settings",

   "type": "background_page",

   "url": "chrome-extension://ennkphjdgehloodpbhlhldgbnhmacadg/_generated_background_page.html",

   "webSocketDebuggerUrl": "ws://127.0.0.1:12859/devtools/page/2CBA06A8-FCF8-4095-B72D-91D973101B75"

}, {

   "description": "",

   "devtoolsFrontendUrl": "/devtools/devtools.html?ws=127.0.0.1:12859/devtools/page/A08DF22F-7D7E-4BD4-BA12-0907127A70CF",

   "faviconUrl": "chrome://extension-icon/nkeimhogjdpnpccoofpliimaahmaaome/24/1",

   "id": "A08DF22F-7D7E-4BD4-BA12-0907127A70CF",

   "title": "Google+ Hangouts",

   "type": "background_page",

   "url": "chrome-extension://nkeimhogjdpnpccoofpliimaahmaaome/background.html",

   "webSocketDebuggerUrl": "ws://127.0.0.1:12859/devtools/page/A08DF22F-7D7E-4BD4-BA12-0907127A70CF"

}, {

   "description": "",

   "devtoolsFrontendUrl": "/devtools/devtools.html?ws=127.0.0.1:12859/devtools/page/40559AD3-AFB7-4C05-8A4E-5E2D5B07A7CA",

   "id": "40559AD3-AFB7-4C05-8A4E-5E2D5B07A7CA",

   "title": "",

   "type": "page",

   "url": "data:,",

   "webSocketDebuggerUrl": "ws://127.0.0.1:12859/devtools/page/40559AD3-AFB7-4C05-8A4E-5E2D5B07A7CA"

}, {

   "description": "",

   "devtoolsFrontendUrl": "/devtools/devtools.html?ws=127.0.0.1:12859/devtools/page/74B317FF-4BDA-4E74-B0F2-EDD4C9EA2C1F",

   "faviconUrl": "chrome://extension-icon/aapnijgdinlhnhlmodcfapnahmbfebeb/24/1",

   "id": "74B317FF-4BDA-4E74-B0F2-EDD4C9EA2C1F",

   "title": "Chrome Automation Extension",

   "type": "background_page",

   "url": "chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html",

   "webSocketDebuggerUrl": "ws://127.0.0.1:12859/devtools/page/74B317FF-4BDA-4E74-B0F2-EDD4C9EA2C1F"

} ]

[1.839][DEBUG]: DevTools request: http://127.0.0.1:12859/json
[1.839][DEBUG]: DevTools response: [ {

   "description": "",

   "devtoolsFrontendUrl": "/devtools/devtools.html?ws=127.0.0.1:12859/devtools/page/0BD959CE-F55F-411C-84DC-C2BA3DA0CC03",

   "faviconUrl": "chrome://extension-icon/kmendfapggjehodndflmmgagdbamhnfd/24/1",

   "id": "0BD959CE-F55F-411C-84DC-C2BA3DA0CC03",

   "title": "CryptoTokenExtension",

   "type": "background_page",

   "url": "chrome-extension://kmendfapggjehodndflmmgagdbamhnfd/_generated_background_page.html",

   "webSocketDebuggerUrl": "ws://127.0.0.1:12859/devtools/page/0BD959CE-F55F-411C-84DC-C2BA3DA0CC03"

}, {

   "description": "",

   "devtoolsFrontendUrl": "/devtools/devtools.html?ws=127.0.0.1:12859/devtools/page/09B992F4-831F-437C-AF6B-C59784F79E6F",

   "faviconUrl": "chrome://extension-icon/neajdppkdcdipfabeoofebfddakdcjhd/24/1",

   "id": "09B992F4-831F-437C-AF6B-C59784F79E6F",

   "title": "Google Network Speech",

   "type": "background_page",

   "url": "chrome-extension://neajdppkdcdipfabeoofebfddakdcjhd/_generated_background_page.html",

   "webSocketDebuggerUrl": "ws://127.0.0.1:12859/devtools/page/09B992F4-831F-437C-AF6B-C59784F79E6F"

}, {

   "description": "",

   "devtoolsFrontendUrl": "/devtools/devtools.html?ws=127.0.0.1:12859/devtools/page/7916B2B7-AA23-4FE5-B54A-31A1A1541355",

   "faviconUrl": "chrome://extension-icon/gfdkimpbcpahaombhbimeihdjnejgicl/24/1",

   "id": "7916B2B7-AA23-4FE5-B54A-31A1A1541355",

   "title": "Feedback",

   "type": "background_page",

   "url": "chrome-extension://gfdkimpbcpahaombhbimeihdjnejgicl/_generated_background_page.html",

   "webSocketDebuggerUrl": "ws://127.0.0.1:12859/devtools/page/7916B2B7-AA23-4FE5-B54A-31A1A1541355"

}, {

   "description": "",

   "devtoolsFrontendUrl": "/devtools/devtools.html?ws=127.0.0.1:12859/devtools/page/2CBA06A8-FCF8-4095-B72D-91D973101B75",

   "faviconUrl": "chrome://extension-icon/ennkphjdgehloodpbhlhldgbnhmacadg/24/1",

   "id": "2CBA06A8-FCF8-4095-B72D-91D973101B75",

   "title": "Settings",

   "type": "background_page",

   "url": "chrome-extension://ennkphjdgehloodpbhlhldgbnhmacadg/_generated_background_page.html",

   "webSocketDebuggerUrl": "ws://127.0.0.1:12859/devtools/page/2CBA06A8-FCF8-4095-B72D-91D973101B75"

}, {

   "description": "",

   "devtoolsFrontendUrl": "/devtools/devtools.html?ws=127.0.0.1:12859/devtools/page/A08DF22F-7D7E-4BD4-BA12-0907127A70CF",

   "faviconUrl": "chrome://extension-icon/nkeimhogjdpnpccoofpliimaahmaaome/24/1",

   "id": "A08DF22F-7D7E-4BD4-BA12-0907127A70CF",

   "title": "Google+ Hangouts",

   "type": "background_page",

   "url": "chrome-extension://nkeimhogjdpnpccoofpliimaahmaaome/background.html",

   "webSocketDebuggerUrl": "ws://127.0.0.1:12859/devtools/page/A08DF22F-7D7E-4BD4-BA12-0907127A70CF"

}, {

   "description": "",

   "devtoolsFrontendUrl": "/devtools/devtools.html?ws=127.0.0.1:12859/devtools/page/40559AD3-AFB7-4C05-8A4E-5E2D5B07A7CA",

   "id": "40559AD3-AFB7-4C05-8A4E-5E2D5B07A7CA",

   "title": "",

   "type": "page",

   "url": "data:,",

   "webSocketDebuggerUrl": "ws://127.0.0.1:12859/devtools/page/40559AD3-AFB7-4C05-8A4E-5E2D5B07A7CA"

}, {

   "description": "",

   "devtoolsFrontendUrl": "/devtools/devtools.html?ws=127.0.0.1:12859/devtools/page/74B317FF-4BDA-4E74-B0F2-EDD4C9EA2C1F",

   "faviconUrl": "chrome://extension-icon/aapnijgdinlhnhlmodcfapnahmbfebeb/24/1",

   "id": "74B317FF-4BDA-4E74-B0F2-EDD4C9EA2C1F",

   "title": "Chrome Automation Extension",

   "type": "background_page",

   "url": "chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html",

   "webSocketDebuggerUrl": "ws://127.0.0.1:12859/devtools/page/74B317FF-4BDA-4E74-B0F2-EDD4C9EA2C1F"

} ]

[1.839][INFO]: RESPONSE InitSession {
   "acceptSslCerts": true,
   "applicationCacheEnabled": false,
   "browserConnectionEnabled": false,
   "browserName": "chrome",
   "chrome": {
      "userDataDir": "C:\\Windows\\TEMP\\scoped_dir4484_31752"
   },
   "cssSelectorsEnabled": true,
   "databaseEnabled": false,
   "handlesAlerts": true,
   "javascriptEnabled": true,
   "locationContextEnabled": true,
   "nativeEvents": true,
   "platform": "Windows NT",
   "rotatable": false,
   "takesHeapSnapshot": true,
   "takesScreenshot": true,
   "version": "38.0.2125.104",
   "webStorageEnabled": true
}
[1.982][INFO]: COMMAND Navigate {
   "url": "http://test.teachtown.com/Public/ClearCookies.aspx"
}
[1.984][DEBUG]: DEVTOOLS COMMAND Console.enable (id=1) {

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

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

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

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

}
[21.058][SEVERE]: Unable to receive message from renderer
[21.058][DEBUG]: DevTools request: http://127.0.0.1:12859/json
[22.294][DEBUG]: DevTools request failed
[22.294][INFO]: RESPONSE Navigate
[22.301][INFO]: COMMAND GetUrl {

}
[23.385][DEBUG]: DevTools request: http://127.0.0.1:12859/json
[24.460][DEBUG]: DevTools request failed
[24.460][INFO]: RESPONSE GetUrl chrome not reachable
  (Session info: chrome=38.0.2125.104)
Environment variable WATIR_SERVER found. Hitting server test.teachtown.com
Run options: 

# Running tests:

E[24.654][INFO]: COMMAND Navigate {
   "url": "http://test.teachtown.com/Public/ClearCookies.aspx"
}
[25.806][DEBUG]: DevTools request: http://127.0.0.1:12859/json
[26.937][DEBUG]: DevTools request failed
[26.937][INFO]: RESPONSE Navigate chrome not reachable
  (Session info: chrome=38.0.2125.104)
E[27.122][INFO]: COMMAND Navigate {
   "url": "http://test.teachtown.com/Public/ClearCookies.aspx"
}
[28.253][DEBUG]: DevTools request: http://127.0.0.1:12859/json
[29.437][DEBUG]: DevTools request failed
[29.437][INFO]: RESPONSE Navigate chrome not reachable
  (Session info: chrome=38.0.2125.104)
EBuild was aborted
Aborted by Kevin
Finished: ABORTED

Original issue reported on code.google.com by kevinmac...@gmail.com on 22 Oct 2014 at 3:03

GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 21 Feb 2015 at 12:18

GoogleCodeExporter commented 9 years ago
I'm not sure, but this might be related to 
https://code.google.com/p/chromium/issues/detail?id=422218, which was fixed a 
while ago. Could you please try again with the latest version of Chrome and 
ChromeDriver?

Original comment by samu...@chromium.org on 12 Mar 2015 at 3:30

GoogleCodeExporter commented 9 years ago

Original comment by ssudunag...@chromium.org on 26 Mar 2015 at 6:32