FuckTheWorld / chromedriver

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

org.openqa.selenium.WebDriverException: chrome not reachable on Linux machine #1128

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
See http://goo.gl/ll2FvQ for common issues.

Issue Description:
org.openqa.selenium.WebDriverException: chrome not reachable on Linux machine.
Where as this works perfectly fine in windows machine.

Chrome version : 43.xx
Chrome driver version : 2.7
Linux version : 3.10
Selenium webdriver version : 2.44

Steps to reproduce (if relevant, you MUST provide a simplified html page or
link to public site):

System.setProperty("webdriver.chrome.driver", "/usr/bin/chromedriver");
        System.setProperty("webdriver.chrome.logfile", "/tmp/ChromeTest/PropertiesFileTest/chromedriver.log");
ChromeOptions options = new ChromeOptions();
        options.addArguments(new String[] { "chrome.switches", "--disable-extensions" });
WebDriver driver = new ChromeDriver(options);
driver.get("http://www.google.com");

This gives me the following stacktrace.

org.openqa.selenium.WebDriverException: chrome not reachable (Driver info: 
chromedriver=2.7.236843,platform=Linux 3.10.0-123.el7.x86_64 x86_64) (WARNING: 
The server did not provide any stacktrace information) Command duration or 
timeout: 20.21 seconds Build info: version: '2.44.0', revision: '76d78cf', 
time: '2014-10-23 20:03:00' System info: host: 'xxx.xxx.xxx', ip: 
'xxx.xxx.x.xx', os.name: 'Linux', os.arch: 'amd64', os.version: 
'3.10.0-123.el7.x86_64', java.version: '1.7.0_75' 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:149) at 
com.test.ChromeTest.testChrome(ChromeTest.java:34) ... Removed 27 stack frames

I have attached chrome log as well.

Note : i have tried replacing different versions of chrome driver as well. 
(2.15,2.16,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9)

Original issue reported on code.google.com by ksmano...@gmail.com on 18 Jun 2015 at 12:19

Attachments:

GoogleCodeExporter commented 9 years ago
Looks like a duplicate of Issue1109

Original comment by gmanikp...@chromium.org on 18 Jun 2015 at 5:47

GoogleCodeExporter commented 9 years ago
ksmanoj99

Unable to reproduce issue with chromedriver:2.16, Ubuntu:14.04, Selenium:2.46. 
Please try with latest version and let us know if you still facing the issue

Please find below sample code:
System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver");
System.setProperty("webdriver.chrome.logfile", "/path/to/chromedriver.log");

ChromeOptions options = new ChromeOptions();
options.addArguments(new String[]{"chrome.switches","--disable-extensions"});

WebDriver driver =new ChromeDriver(options);
driver.get("http://www.google.com");

Original comment by ssudunag...@chromium.org on 22 Jun 2015 at 10:53

GoogleCodeExporter commented 9 years ago
Hi, 
Issue is still reproducable to me for the following configs.
Selenium : 2.46
chromedriver:2.16
LSB Version:    
:core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:d
esktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:pr
inting-4.1-noarch
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 7.0 (Maipo)
Release:        7.0
Codename:       Maipo

Please find the attached chromedriver log

Original comment by ksmano...@gmail.com on 22 Jun 2015 at 12:19

Attachments:

GoogleCodeExporter commented 9 years ago
I have same problem.

Original comment by bruno.al...@clear.com.br on 10 Jul 2015 at 10:15

Attachments: