FuckTheWorld / chromedriver

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

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Issue Description:
We wanted to carry out the run for our regression tests on Chrome browser 
hosted on the Linux platform (Red Hat Enterprise Linux Server release 7.0 
(Maipo)).

Running selenium tests using Chrome (version- 43.0.2357.81 (64-bit)) as browser 
on Linux are failing to spawn a browser.

Steps to reproduce:
1. Chrome rpm was downloaded form the below link. 
"https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm".

2. Following chromedriver used (2.14.313457): 
http://chromedriver.storage.googleapis.com/2.14/chromedriver_linux64.zip

3. After installing chrome, the attached script (ChromeTest.java) was ran and 
I'm receiving the following error.

Stack trace: 

Starting ChromeDriver 2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf) on 
port 3039
Only local connections are allowed.
Exception in thread "main" org.openqa.selenium.WebDriverException: unknown 
error: Chrome failed to start: exited abnormally
  (Driver info: chromedriver=2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf),platform=Linux 3.8.13-35.3.1.el7uek.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 60.20 seconds
Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:11:15'
System info: host: 'localhost.localdomain', ip: '<>', os.name: 'Linux', 
os.arch: 'amd64', os.version: '3.8.13-35.3.1.el7uek.x86_64', java.version: 
'1.8.0_25'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
        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:408)
        at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193)
        at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554)
        at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:216)
        at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:111)
        at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129)
        at ChromeTest.main(ChromeTest.java:36)

Please write back to me if any further information is needed.
Attaching the chromedriver.log

Original issue reported on code.google.com by abhib...@gmail.com on 1 Jun 2015 at 10:32

GoogleCodeExporter commented 9 years ago
Missed out on attaching the script and the chromedriver.log:

Original comment by abhib...@gmail.com on 1 Jun 2015 at 10:36

Attachments:

GoogleCodeExporter commented 9 years ago
abhibang@

Tested your sample code in environment:- 
OS:- Ubuntu 14.04
ChromeDriver(2.15), Chrome(43.0.2357.81) and selenium(2.45)

and I did not observe any such issue. Could you please update ChromeDriver and 
Selenium bindings to latest available version and rerun your sample test. If 
issue is still reproducible please let us know.

Thanks

Original comment by agau...@chromium.org on 1 Jun 2015 at 12:03

GoogleCodeExporter commented 9 years ago
agau..@

Thanks for your response. 
As suggested I've upgraded my selenium binaries by using 
selenium-server-standalone-2.45.0.jar and ChromeDriver(2.15) and the issue 
still persist.

Stack :

Starting ChromeDriver 2.15.322448 (52179c1b310fec1797c81ea9a20326839860b7d3) on 
port 7668
Only local connections are allowed.
Exception in thread "main" org.openqa.selenium.WebDriverException: unknown 
error: Chrome failed to start: exited abnormally
  (Driver info: chromedriver=2.15.322448 (52179c1b310fec1797c81ea9a20326839860b7d3),platform=Linux 3.8.13-35.3.1.el7uek.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 60.22 seconds
Build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50'
System info: host: 'localhost.localdomain', ip: '<>', os.name: 'Linux', 
os.arch: 'amd64', os.version: '3.8.13-35.3.1.el7uek.x86_64', java.version: 
'1.8.0_25'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
        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:408)
        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:153)
        at ChromeTest.main(ChromeTest.java:36)

Attaching the chromedriver.log as well.
Can you please try to mimic the same combination i.e (Red Hat Enterprise Linux 
Server release 7.0 (Maipo)), ChromeDriver(2.15), Chrome(43.0.2357.81) and 
selenium(2.45)  to reproduce the issue.

Thanks in advance for your help.

Original comment by abhib...@gmail.com on 1 Jun 2015 at 12:37

Attachments:

GoogleCodeExporter commented 9 years ago
@abhibang,

From the logs, it shows Chromedriver is trying to launch the system chrome.

[0.626][INFO]: Launching chrome: /opt/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.d1jgAQ/internal --log-level=0 
--metrics-recording-only --no-first-run --password-store=basic 
--remote-debugging-port=12963 --safebrowsing-disable-auto-update 
--safebrowsing-disable-download-protection --test-type=webdriver 
--use-mock-keychain --user-data-dir=/tmp/.com.google.Chrome.4LkqBw data:,

And looks like , you do not have the stable released version of chrome 
installed on your system and therefore it is failing.

If you want to launch rpm chrome through chromedriver, you would need to set 
the binary path of it

 ChromeOptions options = new ChromeOptions(); 
 options.setBinary("/path/to/the/rpm/chrome");
 WebDriver driver = new ChromeDriver(options);

Can you please try and let us know?

Original comment by gmanikp...@chromium.org on 5 Jun 2015 at 6:37

GoogleCodeExporter commented 9 years ago
abhibang @

please try with latest version of chromedriver:2.16 and chrome using sample 
code provided in comment #4 and let us know if you still seeing the issue.

Original comment by ssudunag...@chromium.org on 6 Jul 2015 at 12:44

ghost commented 9 years ago

The same problem, chromedriver 2.20. Chromedriver log: "....[60,162][INFO]: RESPONSE InitSession unknown error: Chrome failed to start: exited abnormally"

japel commented 8 years ago

@kenksis me too, same chromedriver version trying to call it from with builder ("selenium-webdriver": "2.47.0") did you find any solution?

ghost commented 8 years ago

Hi. Unfortunately, not yet found. While use windows. Sorry for my English. I use google-translate

Среда, 16 декабря 2015, 4:55 -08:00 от Jan Viktor Apel notifications@github.com:

@kenksis me too, same chromedriver version trying to call it from with builder ("selenium-webdriver": "2.47.0") did you find any solution? — Reply to this email directly or view it on GitHub .

С уважением, Евгений Кравцов

seaify commented 8 years ago

same with u