Chrome failed to start: exited abnormally (on Ubuntu server 12.x using Xvfb)

2,161 views
Skip to first unread message

Yohanes Gultom

unread,
Jul 22, 2014, 11:05:15 PM7/22/14
to seleniu...@googlegroups.com
Hi all,

I'm currently facing this issue when trying to run automated test of a Grails 2.2.2 app using ChromeDriver v2.10.267518 on Ubuntu server x64 12.x (using Xvfb) and Jenkins :

Exception: geb.driver.DriverCreationException: failed to create driver from callback 'script14060817443231637961566$_run_closure1@51aef44e'
...
Caused by: org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally

(detailed exception and log below)

This tests run well in Windows 7 environment with the same version of Grails, Selenium WebDriver & Chromedriver. But when I set up the Xvfb & Chromedriver in Ubuntu server by following this article http://alex.nederlof.com/blog/2012/11/19/installing-selenium-with-jenkins-on-ubuntu/, they don't work at all (throwing exception above)

Can you guys help to give me a clue how to solve this?
If anyone have done similar configuration (Grails, Chromedriver, Ubuntu server), please kindly share your knowledge on how to setup this properly. Thanks a lot

Additional details

ChromeDriver version 2.10.267518
Grails plugin: 
  • test ":geb:0.9.3"
  • test ":spock:0.7"
  • test "org.seleniumhq.selenium:selenium-chrome-driver:2.42.2"
  • test "org.spockframework:spock-grails-support:0.7-groovy-2.0"
  • test "org.gebish:geb-spock:0.9.3"
  • test "org.seleniumhq.selenium:selenium-support:2.40.0"

Console output (on Jenkins)

INFO: Initializing Spring FrameworkServlet 'grails'
Jul 23, 2014 4:15:41 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-7777"]
|Server running. Browse to http://localhost:7777/app
.
|Compiling 10 source files
.
|Running 7 spock tests...
|Running 7 spock tests... 1 of 7
Failure:  |
register as user(RegisterSpec)
 |
geb.driver.DriverCreationException: failed to create driver from callback 'script14060817443231637961566$_run_closure1@51aef44e'
    at geb.driver.CallbackDriverFactory.getDriver(CallbackDriverFactory.groovy:35)
    at geb.driver.CachingDriverFactory.getDriver_closure3(CachingDriverFactory.groovy:85)
    at geb.driver.CachingDriverFactory$SimpleCache.get(CachingDriverFactory.groovy:32)
    at geb.driver.CachingDriverFactory.getDriver(CachingDriverFactory.groovy:84)
    at geb.Configuration.createDriver(Configuration.groovy:361)
    at geb.Configuration.getDriver(Configuration.groovy:350)
    at geb.Browser.getDriver(Browser.groovy:105)
    at geb.Browser.go(Browser.groovy:405)
    at geb.Page.to(Page.groovy:195)
    at geb.Browser.via(Browser.groovy:488)
    at geb.Browser.to(Browser.groovy:448)
    at geb.Browser.to(Browser.groovy:426)
    at geb.spock.GebSpec.methodMissing(GebSpec.groovy:54)
    at RegisterSpec.register as user(RegisterSpec.groovy:22)
Caused by: org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally
  (Driver info: chromedriver=2.10.267518,platform=Linux 3.13.0-32-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 61.02 seconds
Build info: version: '2.42.2', revision: '6a6995d31c7c56c340d6f45a76976d43506cd6cc', time: '2014-06-03 10:52:47'
System info: host: 's17298254', ip: '87.106.222.225', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-32-generic', java.version: '1.7.0_45'
Driver info: org.openqa.selenium.chrome.ChromeDriver
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:240)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:126)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:139)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:171)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:160)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:117)
    at script14060817443231637961566.run_closure1(script14060817443231637961566.groovy:4)
    at geb.driver.CallbackDriverFactory.getDriver(CallbackDriverFactory.groovy:29)
    ... 13 more


chromedriver.log

[0.469][INFO]: COMMAND InitSession {
   "desiredCapabilities": {
      "browserName": "chrome",
      "chrome.switches": [  ],
      "chromeOptions": {
         "args": [  ],
         "extensions": [  ]
      },
      "platform": "ANY",
      "version": ""
   }
}
[0.470][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.471][INFO]: Populating Local State file: {
   "background_mode": {
      "enabled": false
   },
   "ssl": {
      "rev_checking": {
         "enabled": false
      }
   }
}
[0.472][INFO]: Launching chrome: /opt/google/chrome/google-chrome --disable-background-networking --disable-client-side-phishing-detection --disable-component-update --disable-default-apps --disable-hang-monitor --disable-prompt-on-repost --disable-sync --disable-web-resources --enable-logging --ignore-certificate-errors --load-extension=/tmp/.com.google.Chrome.gT5ZDQ/internal --logging-level=1 --metrics-recording-only --no-first-run --password-store=basic --remote-debugging-port=12160 --safebrowsing-disable-auto-update --safebrowsing-disable-download-protection --use-mock-keychain --user-data-dir=/tmp/.com.google.Chrome.DtbgII data:,
[0.474][WARNING]: PAC support disabled because there is no system implementation

Reply all
Reply to author
Forward
0 new messages