Selenium error: Chrome failed to start: exited abnormally

selenium-and-chromeWhen I launched Selenium tests In Jenkins with Maven on CentOS 7 I got:

unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn’t exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

Full error:
org.openqa.selenium.WebDriverException:
unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'testenv', ip: '192.168.3.33', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-693.17.1.el7.x86_64', java.version: '1.8.0_152'
Driver info: driver.version: ChromeDriver
remote stacktrace: #0 0x561bcf9f2479

I’d already installed Google Chrome on CentOS 7 Minimal as follows:

And Google Chrome version is 79.0.3945.117-1

Corresponding ChromeDriver 79.0.3945.36 was downloaded from here: https://chromedriver.chromium.org/downloads

The test server has CentOS 7 Minimal installed without graphical interface so in order to launch Selenium tests as Maven job in Jenkins on CentOS 7 the “headless” and “no-sandboxoptions must be used in ChromeDriver settings (lines 23-26):

Good luck!

 

Leave a Reply