WebDriverException: unknown error: Chrome failed to start: exited abnormally

20,085 views
Skip to first unread message

temp....@gmail.com

unread,
Oct 26, 2017, 9:51:53 AM10/26/17
to ChromeDriver Users

OS:
Linux
Selenium Version: 3.5.3
Browser: Chrome driver V2.33 , chrome version 62.03

I'm running Selenium tests from jenkins on a linux machine. For this i'm using the latest chromedriver, when I run my tests about 90% will succeed but maybe 1 in 10 of the tests it will randomly fail with the following error:

Error:

Starting ChromeDriver 2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4) on port 24178
Only local connections are allowed.
Failure in before hook:EsizeCucumberTest.setupTest()
Message: org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally
  (Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 3.10.0-693.2.2.el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 60.05 seconds
Build info: version: '3.5.3', revision: 'a88d25fe6b', time: '2017-08-29T12:42:44.417Z'
System info: host: 'ehgd-bld-l04.esizedc.com', ip: '10.3.162.21', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-693.2.2.el7.x86_64', java.version: '1.8.0_144'
Driver info: driver.version: ChromeDriver
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:215)
	at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:167)
	at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$new$0(JsonWireProtocolResponse.java:53)
	at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$getResponseFunction$2(JsonWireProtocolResponse.java:91)
	at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$24(ProtocolHandshake.java:359)
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
	at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
	at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
	at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
	at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:362)
	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:136)
	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:646)
	at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:255)
	at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:237)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:138)
	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:178)
	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:167)
	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:124)
	at nl.esize.cucumber.helper.LinuxDriverHelper.getDriver(LinuxDriverHelper.java:39)
	at nl.esize.cucumber.helper.DriverHelper.setUp(DriverHelper.java:29)
	at nl.esize.cucumber.EsizeCucumberTest.setupTest(EsizeCucumberTest.java:36)
	at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at cucumber.runtime.Utils$1.call(Utils.java:40)
	at cucumber.runtime.Timeout.timeout(Timeout.java:16)
	at cucumber.runtime.Utils.invoke(Utils.java:34)
	at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
	at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:224)
	at cucumber.runtime.Runtime.runHooks(Runtime.java:212)
	at cucumber.runtime.Runtime.runBeforeHooks(Runtime.java:202)
	at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:40)
	at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:102)
	at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
	at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
	at cucumber.api.junit.Cucumber.runChild(Cucumber.java:95)
	at cucumber.api.junit.Cucumber.runChild(Cucumber.java:38)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at cucumber.api.junit.Cucumber.run(Cucumber.java:100)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)

      org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally
        (Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 3.10.0-693.2.2.el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
      Command duration or timeout: 60.05 seconds
      Build info: version: '3.5.3', revision: 'a88d25fe6b', time: '2017-08-29T12:42:44.417Z'
      System info: host: 'ehgd-bld-l04.esizedc.com', ip: '10.3.162.21', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-693.2.2.el7.x86_64', java.version: '1.8.0_144'
      Driver info: driver.version: ChromeDriver
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:215)
      	at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:167)
      	at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$new$0(JsonWireProtocolResponse.java:53)
      	at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$getResponseFunction$2(JsonWireProtocolResponse.java:91)
      	at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$24(ProtocolHandshake.java:359)
      	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      	at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
      	at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
      	at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
      	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
      	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      	at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
      	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      	at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
      	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:362)
      	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:136)
      	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
      	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
      	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:646)
      	at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:255)
      	at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:237)
      	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:138)
      	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:178)
      	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:167)
      	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:124)
      	at nl.esize.cucumber.helper.LinuxDriverHelper.getDriver(LinuxDriverHelper.java:39)
      	at nl.esize.cucumber.helper.DriverHelper.setUp(DriverHelper.java:29)
      	at nl.esize.cucumber.EsizeCucumberTest.setupTest(EsizeCucumberTest.java:36)
      	at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at cucumber.runtime.Utils$1.call(Utils.java:40)
      	at cucumber.runtime.Timeout.timeout(Timeout.java:16)
      	at cucumber.runtime.Utils.invoke(Utils.java:34)
      	at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
      	at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:224)
      	at cucumber.runtime.Runtime.runHooks(Runtime.java:212)
      	at cucumber.runtime.Runtime.runBeforeHooks(Runtime.java:202)
      	at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:40)
      	at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:102)
      	at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
      	at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
      	at cucumber.api.junit.Cucumber.runChild(Cucumber.java:95)
      	at cucumber.api.junit.Cucumber.runChild(Cucumber.java:38)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at cucumber.api.junit.Cucumber.run(Cucumber.java:100)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)

When rerunning the same test it will usually succeed the 2nd try so im not sure how i can reproduce this consitantly. I have a maven project and it is setup like the follow:

Driver class:

	public static WebDriver getDriver(BrowserType browser) {
		WebDriver driver = null;
		switch (browser) {
		case CHROME:
			System.setProperty(PROPERTY_DRIVER_CHROME, PATH_DRIVER_CHROME);
			System.setProperty("webdriver.chrome.logfile", "C:/Programs/eclipse Neon/workspace/cucumber/logs/chromedriver.log");
			System.setProperty("webdriver.chrome.verboseLogging", "true");
			driver = new ChromeDriver();
			break;
		case FF:
		default:
			FirefoxOptions options = new FirefoxOptions();
			options.setLogLevel(Level.WARNING);


			System.setProperty(PROPERTY_DRIVER_FIREFOX, PATH_DRIVER_FIREFOX);
			driver = new FirefoxDriver(options);
			break;
		}
		return driver;
	}

Pom.xml dependencies:

	<dependencies>
		<!-- https://mvnrepository.com/artifact/javax.mail/mail -->
		<dependency>
			<groupId>javax.mail</groupId>
			<artifactId>mail</artifactId>
			<version>1.5.0-b01</version>
		</dependency>


		<dependency>
			<groupId>org.seleniumhq.selenium</groupId>
			<artifactId>selenium-htmlunit-driver</artifactId>
			<version>2.52.0</version>
		</dependency>

		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.12</version>
		</dependency>

		<dependency>
			<groupId>info.cukes</groupId>
			<artifactId>cucumber-java</artifactId>
			<version>1.2.5</version>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>info.cukes</groupId>
			<artifactId>cucumber-picocontainer</artifactId>
			<version>1.2.5</version>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>info.cukes</groupId>
			<artifactId>cucumber-junit</artifactId>
			<version>1.2.5</version>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>org.seleniumhq.selenium</groupId>
			<artifactId>selenium-java</artifactId>
			<version>3.5.3</version>
		</dependency>

		<dependency>
			<groupId>org.seleniumhq.selenium</groupId>
			<artifactId>selenium-firefox-driver</artifactId>
			<version>3.5.3</version>
		</dependency>

		<dependency>
			<groupId>org.seleniumhq.selenium</groupId>
			<artifactId>selenium-chrome-driver</artifactId>
			<version>3.5.3</version>
		</dependency>

		<dependency>
			<groupId>org.seleniumhq.selenium</groupId>
			<artifactId>selenium-ie-driver</artifactId>
			<version>3.5.3</version>
		</dependency>

		<dependency>
			<groupId>org.seleniumhq.selenium</groupId>
			<artifactId>selenium-edge-driver</artifactId>
			<version>3.5.3</version>
		</dependency>

		<dependency>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-resources-plugin</artifactId>
			<version>3.0.2</version>
		</dependency>

		<dependency>
			<groupId>org.seleniumhq.selenium</groupId>
			<artifactId>selenium-support</artifactId>
			<version>3.5.3</version>
		</dependency>
	</dependencies>

Hopefully you can help me, if you need some chrome logs i will add these aswell but they are a bit long so I didnt add them yet.

stefano...@webrepublic.ch

unread,
Oct 27, 2017, 10:13:19 AM10/27/17
to ChromeDriver Users
Same here.
Os: Linux
Browser: Chrome driver V2.33.506092 , chrome version 62.03

[16:07:51] E/launcher - WebDriverError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.4.0-1035-aws x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 60.08 seconds
Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T16:15:40.131Z'
System info: host: 'task-master', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-1035-aws', java.version: '1.8.0_131'
Driver info: driver.version: unknown
at Object.checkLegacyResponse (/mnt/data/jenkins/jobs/test_fr_frontend/workspace/node_modules/selenium-webdriver/lib/error.js:546:15)
at parseHttpResponse (/mnt/data/jenkins/jobs/test_fr_frontend/workspace/node_modules/selenium-webdriver/lib/http.js:509:13)
at doSend.then.response (/mnt/data/jenkins/jobs/test_fr_frontend/workspace/node_modules/selenium-webdriver/lib/http.js:441:30)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:169:7)
From: Task: WebDriver.createSession()
at Function.createSession (/mnt/data/jenkins/jobs/test_fr_frontend/workspace/node_modules/selenium-webdriver/lib/webdriver.js:769:24)
at Function.createSession (/mnt/data/jenkins/jobs/test_fr_frontend/workspace/node_modules/selenium-webdriver/chrome.js:761:15)
at createDriver (/mnt/data/jenkins/jobs/test_fr_frontend/workspace/node_modules/selenium-webdriver/index.js:170:33)
at Builder.build (/mnt/data/jenkins/jobs/test_fr_frontend/workspace/node_modules/selenium-webdriver/index.js:626:16)
at Local.getNewDriver (/mnt/data/jenkins/jobs/test_fr_frontend/workspace/node_modules/protractor/built/driverProviders/driverProvider.js:53:33)
at Runner.createBrowser (/mnt/data/jenkins/jobs/test_fr_frontend/workspace/node_modules/protractor/built/runner.js:195:43)
at q.then.then (/mnt/data/jenkins/jobs/test_fr_frontend/workspace/node_modules/protractor/built/runner.js:339:29)
at _fulfilled (/mnt/data/jenkins/jobs/test_fr_frontend/workspace/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/mnt/data/jenkins/jobs/test_fr_frontend/workspace/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/mnt/data/jenkins/jobs/test_fr_frontend/workspace/node_modules/q/q.js:796:13)


On Thursday, October 26, 2017 at 3:51:53 PM UTC+2, temp....@gmail.com wrote:
> OS:
> Linux
> Selenium Version: 3.5.3
> Browser: Chrome driver V2.33 , chrome version 62.03
> I'm running Selenium tests from jenkins on a linux machine. For this i'm using the latest chromedriver, when I run my tests about 90% will succeed but maybe 1 in 10 of the tests it will randomly fail with the following error:

> Error:Starting ChromeDriver 2.33.506092 (733a02544d189eeb7S51fe0d7ddca79a0ee28cce4) on port 24178

temp....@gmail.com

unread,
Nov 2, 2017, 9:53:07 AM11/2/17
to ChromeDriver Users
if anyone has any idea I'm getting really desperate on a way to fix this issue since it's really frustrating
Message has been deleted

temp....@gmail.com

unread,
Nov 16, 2017, 9:36:56 AM11/16/17
to ChromeDriver Users
I can't be the only one having these issues right?

alex....@gmail.com

unread,
Nov 28, 2017, 12:32:41 PM11/28/17
to ChromeDriver Users
Greetings,
I'm getting the same issue.

org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally

(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.10.0-40-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 60.09 seconds
Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:01:39.354Z'
System info: host: 'ubuntu', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.10.0-40-generic', java.version: '1.8.0_151'


Driver info: driver.version: ChromeDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)


at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$new$0(JsonWireProtocolResponse.java:53)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$getResponseFunction$2(JsonWireProtocolResponse.java:91)

at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:123)


at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)

at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:73)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:600)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:219)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:142)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:123)

alex....@gmail.com

unread,
Nov 29, 2017, 7:50:10 AM11/29/17
to ChromeDriver Users
I have a backup of my ubuntu 17.07 system which isn't as up to date by about 2 weeks worth of system updates on linux including an update to chromium-browser the same code and same driver works fine with 3.7.1 and chromium-browser Version 62.0.3202.89 (Official Build) Built on Ubuntu , running on Ubuntu 17.04 (64-bit)

I guess there have been a few updates since then

62.0.3202.89-0ubuntu0.17.04.1386
62.0.3202.89-0ubuntu0.17.04.1386
62.0.3202.94-0ubuntu0.17.04.1388
62.0.3202.94-0ubuntu0.17.04.1388

https://launchpad.net/ubuntu/zesty/+source/chromium-browser

I suppose at this point this is my best guess of what could be causing the problem.

cohy...@gmail.com

unread,
Nov 29, 2017, 3:31:25 PM11/29/17
to ChromeDriver Users

Add 'no-sandbox' for a workaround. It works for me.

temp....@gmail.com

unread,
Nov 30, 2017, 7:45:30 AM11/30/17
to ChromeDriver Users
Im not sure if i want to keep my chrome in no-sandbox for security reasons but il look into seeing if this resolves any problems.
Same thing goes for downgrading my linux machine unfortunately

nadia....@acadaca.com

unread,
Jan 18, 2018, 1:07:57 PM1/18/18
to ChromeDriver Users
On Thursday, November 30, 2017 at 6:45:30 AM UTC-6, temp....@gmail.com wrote:
> Im not sure if i want to keep my chrome in no-sandbox for security reasons but il look into seeing if this resolves any problems.
> Same thing goes for downgrading my linux machine unfortunately

I am getting this error with Chrome 63 and Chromedriver 2.35 in a Linux machine.

Is there any fix?

temp....@gmail.com

unread,
Jan 23, 2018, 6:23:32 AM1/23/18
to ChromeDriver Users
There doesn't seem to be any fix and im not sure the devs even read these posts.
I also tried with ChromeOptions.addArguments("--no-sandbox"); but this didn't solve the issue
My guess is the only actual fix is using a diffrent driver

temp....@gmail.com

unread,
Jan 31, 2018, 3:26:55 AM1/31/18
to ChromeDriver Users
People still having this issue and are desperate the only thing that seems to work is update to V2.35
Then add the following chromeoptions:
      ChromeOptions ChromeOptions = new ChromeOptions();
      ChromeOptions.addArguments("--headless", "window-size=1024,768", "--no-sandbox");
      driver = new ChromeDriver(ChromeOptions);

It's not a great fix but it seems it's the only thing you can do.

fadi101...@gmail.com

unread,
May 15, 2018, 3:34:12 AM5/15/18
to ChromeDriver Users
Thanks this fixed my problem, I've tried a lot of other stuff before, updating chrome and webdriver version, also tried to play with selenium driver also and it did not help, but this fixed it eventually, thanks again mate.

sapram...@gmail.com

unread,
Jul 13, 2018, 1:18:42 PM7/13/18
to ChromeDriver Users
============
I am also getting same issue with chrome version 66.0.Did anyone got the solution.
WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.37.544315 (730aa6a5fdba159ac9f4c1e8cbc59bf1b5ce12b7),platform=Linux 3.10.0-862.el7.x86_64 x86_64)

Caleb Rouleau

unread,
Jul 13, 2018, 1:26:48 PM7/13/18
to sapram...@gmail.com, ChromeDriver Users
Hi everyone!

We ChromeDriver devs do read these posts! One thing is that we don't usually provide support for older ChromeDriver versions and older Chrome versions. If you can update to ChromeDriver 2.40 aand Chrome version 67.0.3396.99 or newer and try again, then it would help us more.

The other thing is that we really need a chromedriver log file in order to understand what's going on so that we can help you. See http://chromedriver.chromium.org/logging for information on how to get that.

"Chrome failed to start: exited abnormally" means that ChromeDriver started Chrome as a subprocess, but then Chrome crashed. It could help you to find the command that started Chrome in the chromedriver log and run that command yourself to see what happens. Maybe you're pointing to a broken Chrome binary or something like that.


--
You received this message because you are subscribed to the Google Groups "ChromeDriver Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromedriver-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

macg...@gmail.com

unread,
Nov 7, 2018, 6:04:04 PM11/7/18
to ChromeDriver Users
Well, making a testing in my log I have:
(google-chrome:29357): Gtk-WARNING **: 22:45:13.453: cannot open display
I fix it with /usr/bin/Xvfb :99 -ac -screen 0 1024x768x8 & export DISPLAY=":99"
and DISPLAY=:99 python chrome_test.py but if I configure my real test to use my Selenium Grid it not work with DISPLAY=:99, geckodriver does it, but chromedriver not. In my test using Selenium Grid I not use-> driver = webdriver.Chrome(executable_path="/usr/local/bin/chromedriver", service_args=["--verbose", "--log-path=./mylog"])
I need to use-> self.driver = webdriver.Remote(
command_executor='http://172.31.#.#:4444/wd/hub',
desired_capabilities=desired_caps)
I can not set the executable_path, looks like when I up my selenium node it do not know where is my chromedriver.
Message has been deleted

kkrev....@gmail.com

unread,
Dec 3, 2018, 5:28:00 AM12/3/18
to ChromeDriver Users
пятница, 13 июля 2018 г., 20:26:48 UTC+3 пользователь Caleb Rouleau написал:
Hello, Caleb.
My Chrome version is 70.0.3538.110
ChromeDriver version is 2.44
Here's my code:
ChromeOptions options = new ChromeOptions();
options.addArguments("user-data-dir=");
ChromeDriver driver = new ChromeDriver(options);
I started getting the error after trying to run the browser under the custom profile.

Part of my log file:
[1543832588,836][INFO]: Launching chrome: /usr/bin/google-chrome --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 --force-fieldtrials=SiteIsolationExtensions/Control --ignore-certificate-errors --load-extension=/tmp/.org.chromium.Chromium.42WwuA/internal --log-level=0 --metrics-recording-only --no-first-run --password-store=basic --remote-debugging-port=0 --test-type=webdriver --use-mock-keychain --user-data-dir
[1543832589,182][INFO]: [a333834f0608c78cb9305bdb6fd769d4] RESPONSE InitSession ERROR 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.)
[1543832589,184][DEBUG]: Log type 'driver' lost 0 entries on destruction
[1543832589,184][DEBUG]: Log type 'browser' lost 0 entries on destruction

John Chen

unread,
Dec 3, 2018, 10:33:16 AM12/3/18
to kkrev....@gmail.com, chromedri...@googlegroups.com
The code used
        options.addArguments("user-data-dir=");

This won't work. Please either remove this argument, or set user-data-dir to a valid path.

tomch...@gmail.com

unread,
Jan 8, 2019, 3:56:54 AM1/8/19
to ChromeDriver Users
ChromeOptions opt = new ChromeOptions();

opt.addArguments("headless", "no-sandbox");

it works to me ( argument without prefix"--")

patry...@gmail.com

unread,
Jul 25, 2019, 9:37:33 AM7/25/19
to ChromeDriver Users
Hi, I had the same problem.
After a lot of searching, the problem was i not have installed google chrome in my virtual machine.
Could you check if you have google chrome installed in your pc. 
Reply all
Reply to author
Forward
0 new messages