FuckTheWorld / chromedriver

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

org.openqa.selenium.WebDriverException: chrome not reachable with Chrome 43.0.2357.81 on CentOS 7.0/Ubuntu 14.04 #1109

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It seems there is a problem with the latest Chrome 43.0.2357.81 version and 
ChromeDriver 2.15.  I tested on Windows and it is working fine there. I work on 
the chef-selenium project and I have not had an issue with ChromeDriver until 
this week. 

Exception in thread "main" org.openqa.selenium.WebDriverException: chrome not 
reachable
  (Driver info: chromedriver=2.15.322448 (52179c1b310fec1797c81ea9a20326839860b7d3),platform=Linux 3.10.0-123.el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 60.53 seconds
Build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50'
System info: host: 'N/A', ip: 'N/A', os.name: 'Linux', os.arch: 'amd64', 
os.version: '3.10.0-123.el7.x86_64', java.version: '1.7.0_79'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Command duration or timeout: 137.33 seconds
Build info: version: '2.45.0', revision: 
'5017cb8e7ca8e37638dc3091b2440b90a1d8686f', time: '2015-02-27 09:10:26'
System info: host: 'hidden.local', ip: '10.0.0.2', os.name: 'Mac OS X', 
os.arch: 'x86_64', os.version: '10.10.3', java.version: '1.7.0_67'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    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 com.openqa.selenium.example.Selenium2Example.main(Selenium2Example.java:34)
Caused by: org.openqa.selenium.WebDriverException: chrome not reachable
  (Driver info: chromedriver=2.15.322448 (52179c1b310fec1797c81ea9a20326839860b7d3),platform=Linux 3.10.0-123.el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 60.53 seconds
Build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50'
System info: host: 'N/A', ip: 'N/A', os.name: 'Linux', os.arch: 'amd64', 
os.version: '3.10.0-123.el7.x86_64', java.version: '1.7.0_79'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Build info: version: '2.45.0', revision: 
'5017cb8e7ca8e37638dc3091b2440b90a1d8686f', time: '2015-02-27 09:10:26'
System info: host: 'hidden.local', ip: '10.0.0.2', os.name: 'Mac OS X', 
os.arch: 'x86_64', os.version: '10.10.3', java.version: '1.7.0_67'
Driver info: driver.version: ChromeDriver
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    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:139)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at org.openqa.selenium.remote.server.DefaultDriverProvider.callConstructor(DefaultDriverProvider.java:59)
    at org.openqa.selenium.remote.server.DefaultDriverProvider.newInstance(DefaultDriverProvider.java:53)
    at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:54)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:214)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:1)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:168)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)

Original issue reported on code.google.com by Dennis.H...@gmail.com on 26 May 2015 at 8:30

GoogleCodeExporter commented 9 years ago
Tested on Ubuntu 14.04 LTS with chrome version 43.0.2357.81, Chromedriver 
version 2.15 and it works fine.
Could you please provide more information about your testsetup?

Original comment by gmanikp...@chromium.org on 26 May 2015 at 9:28

GoogleCodeExporter commented 9 years ago
Mac OS X tested fine as well. 

Original comment by Dennis.H...@gmail.com on 26 May 2015 at 9:43

GoogleCodeExporter commented 9 years ago
I have a test-kitchen test suite to test centos and ubuntu: 
https://github.com/dhoer/chef-selenium/blob/master/.kitchen.yml

Mac works and is setup the same way as Ubuntu and CentOS. 

The drivers directory for centos where I create a link to the driver I 
downloaded and unzipped:
[vagrant@selenium-test-centos-70 drivers]$ ls -al
total 0
drwxr-xr-x. 3 root root 57 May 26 23:06 .
drwxr-xr-x. 5 root root 46 May 26 23:05 ..
lrwxrwxrwx. 1 root root 53 May 26 23:06 chromedriver -> 
/usr/local/selenium/drivers/chromedriver_linux64-2.15
drwxr-xr-x. 2 root root 25 May 26 23:06 chromedriver_linux64-2.15

The permissions for chromedriver:
[vagrant@selenium-test-centos-70 chromedriver]$ ls -al
total 4916
drwxr-xr-x. 2 root root      25 May 26 23:06 .
drwxr-xr-x. 3 root root      57 May 26 23:06 ..
-rwx------. 1 root root 5031816 Mar 26 18:15 chromedriver

Selenium runs as root. Changing the permissions to 755 didn't help.

The args passed to init.d:
           +args="-Xms1024m -jar "/usr/local/selenium/server/selenium-server-standalone.jar" -role node -nodeConfig "/usr/local/selenium/config/selenium_node.json" -Dwebdriver.chrome.driver="/usr/local/selenium/drivers/chromedriver/chromedriver""

Let me know if you need more info.

Original comment by Dennis.H...@gmail.com on 26 May 2015 at 11:20

GoogleCodeExporter commented 9 years ago
Let me add

[vagrant@selenium-test-centos-70 chromedriver]$ google-chrome --version
Google Chrome 43.0.2357.81
[vagrant@selenium-test-centos-70 chromedriver]$ which google-chrome
/usr/bin/google-chrome

Original comment by Dennis.H...@gmail.com on 26 May 2015 at 11:23

GoogleCodeExporter commented 9 years ago
I am also able to fire up chrome with x11 successfully.  I always have had 
errors like below in the past.  But the errors never seem to cause problems, so 
I always ignored them.

hoerde ~/chef/cookbooks/selenium$ ssh -X vagrant google-chrome
/usr/bin/xauth:  file /home/vagrant/.Xauthority does not exist
[1:1:0526/232536:ERROR:image_metadata_extractor.cc(111)] Couldn't load libexif.
[24355:24355:0526/232536:ERROR:x11_util.cc(70)] X error received: serial 232, 
error_code 10, request_code 132, minor_code 5
[24355:24355:0526/232536:ERROR:x11_util.cc(70)] X error received: serial 234, 
error_code 9, request_code 62, minor_code 0
[24355:24355:0526/232536:ERROR:x11_util.cc(70)] X error received: serial 256, 
error_code 9, request_code 62, minor_code 0
[24355:24355:0526/232536:ERROR:x11_util.cc(70)] X error received: serial 275, 
error_code 9, request_code 62, minor_code 0
libGL error: dlopen /usr/lib64/dri/swrast_dri.so failed 
(/usr/lib64/dri/swrast_dri.so: cannot open shared object file: No such file or 
directory)
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
[24420:24420:0526/232537:ERROR:image_metadata_extractor.cc(111)] Couldn't load 
libexif.
[24432:24432:0526/232537:ERROR:image_metadata_extractor.cc(111)] Couldn't load 
libexif.
[24417:24417:0526/232537:ERROR:image_metadata_extractor.cc(111)] Couldn't load 
libexif.
[24431:24431:0526/232537:ERROR:image_metadata_extractor.cc(111)] Couldn't load 
libexif.
[24418:24418:0526/232537:ERROR:image_metadata_extractor.cc(111)] Couldn't load 
libexif.
[24474:24474:0526/232540:ERROR:image_metadata_extractor.cc(111)] Couldn't load 
libexif.
[24531:24531:0526/232541:ERROR:image_metadata_extractor.cc(111)] Couldn't load 
libexif.
[24533:24533:0526/232541:ERROR:image_metadata_extractor.cc(111)] Couldn't load 
libexif.
[24583:24583:0526/232542:ERROR:image_metadata_extractor.cc(111)] Couldn't load 
libexif.
[24594:24594:0526/232542:ERROR:image_metadata_extractor.cc(111)] Couldn't load 
libexif.
[24606:24606:0526/232543:ERROR:image_metadata_extractor.cc(111)] Couldn't load 
libexif.
[24621:24621:0526/232543:ERROR:image_metadata_extractor.cc(111)] Couldn't load 
libexif.
[24625:24625:0526/232543:ERROR:image_metadata_extractor.cc(111)] Couldn't load 
libexif.
[24940:24940:0526/232543:ERROR:image_metadata_extractor.cc(111)] Couldn't load 
libexif.
xdg-settings: unknown desktop environment
[24355:24398:0526/232555:ERROR:channel.cc(300)] RawChannel read error 
(connection broken)
[46:46:0526/232558:ERROR:dispatcher.cc(256)] Extension 
"chrome://chrome-signin/" not found
[46:46:0526/232558:ERROR:dispatcher.cc(256)] Extension 
"chrome://chrome-signin/" not found
[46:46:0526/232558:ERROR:dispatcher.cc(256)] Extension 
"chrome://chrome-signin/" not found
[46:46:0526/232558:ERROR:dispatcher.cc(256)] Extension 
"chrome://chrome-signin/" not found
[46:46:0526/232558:ERROR:dispatcher.cc(256)] Extension 
"chrome://chrome-signin/" not found
[46:46:0526/232558:ERROR:dispatcher.cc(256)] Extension 
"chrome://chrome-signin/" not found
[46:46:0526/232558:ERROR:dispatcher.cc(256)] Extension 
"chrome://chrome-signin/" not found
[46:46:0526/232558:ERROR:dispatcher.cc(256)] Extension 
"chrome://chrome-signin/" not found

Original comment by Dennis.H...@gmail.com on 26 May 2015 at 11:33

GoogleCodeExporter commented 9 years ago
Reference this ticket from GitHub: 
https://github.com/dhoer/chef-selenium/issues/13

Original comment by Dennis.H...@gmail.com on 27 May 2015 at 4:52

GoogleCodeExporter commented 9 years ago
To mimic test setup:
Download and install the following tools for your platform:
- ChefDK https://downloads.chef.io/chef-dk/
- Vagrant http://www.vagrantup.com/downloads.html
- VirtualBox & Extension Pack (Windows) 
https://www.virtualbox.org/wiki/Downloads

Verify issue:
- git clone https://github.com/dhoer/chef-selenium
- cd chef-selenium
- chef exec kitchen verify 70 # Performs integration testing against CentOS 7.0

Original comment by Dennis.H...@gmail.com on 27 May 2015 at 10:53

GoogleCodeExporter commented 9 years ago
Starting ChromeDriver 2.15.322448 (52179c1b310fec1797c81ea9a20326839860b7d3) on
port 54368
Only local connections are allowed.

Exceção Sem Tratamento: System.InvalidOperationException: chrome not reachable
  (Driver info: chromedriver=2.15.322448 (52179c1b310fec1797c81ea9a20326839860b7
d3),platform=Windows NT 6.1 SP1 x86_64) (100)
   em OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response erro
rResponse)
   em OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecu
te, Dictionary`2 parameters)
   em OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredC
apabilities)
   em OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecu
tor, ICapabilities desiredCapabilities)
   em OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeDriverService service, Chr
omeOptions options, TimeSpan commandTimeout)
   em OpenQA.Selenium.Chrome.ChromeDriver..ctor(String chromeDriverDirectory, Ch
romeOptions options, TimeSpan commandTimeout)
   em TesteChrome.Teste.TesteWithChrome() na c:\Projetos\TestChrome\TesteChrome\
Teste.cs:linha 24
   em TesteChrome.Program.Main(String[] args) na c:\Projetos\TestChrome\TesteChr
ome\Program.cs:linha 15
   em System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args
)
   em System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySec
urity, String[] args)
   em Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   em System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   em System.Threading.ExecutionContext.RunInternal(ExecutionContext executionCo
ntext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C
ontextCallback callback, Object state, Boolean preserveSyncCtx)
   em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C
ontextCallback callback, Object state)
   em System.Threading.ThreadHelper.ThreadStart()

Original comment by bruno.al...@clear.com.br on 3 Jun 2015 at 9:16

GoogleCodeExporter commented 9 years ago
Dennis, you run selenium and chromedriver under root?
I have this issue, I'm run selenium hub and node driver under root and get 
exception like you, but the google-chrome does not start under root, it need to 
be started under another user, today I run selenium hub and node driver under 
another user and chrome started successfully.

Original comment by amateur...@gmail.com on 4 Jun 2015 at 3:16

GoogleCodeExporter commented 9 years ago
That is good to know.  This has been working as is since October last year.  It 
seems the Chrome 43 release has caused this to surface?  Anyway, I will look at 
this and see if it fixes it.  Thanks for the tip.

Original comment by Dennis.H...@gmail.com on 4 Jun 2015 at 4:02

GoogleCodeExporter commented 9 years ago
Same issue here, running selenium under an other user fixed the problem. Thx

Original comment by lol...@lemonde.fr on 5 Jun 2015 at 11:36

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This issue is now fixed under chef-selenium release 2.3.3.  Please close.

Original comment by Dennis.H...@gmail.com on 9 Jun 2015 at 10:49

GoogleCodeExporter commented 9 years ago
Dennis.Hoer@

thanks for update that this issue is fixed for you.
we are leaving this bug open for some time to get more reports if anyone else 
is facing similar issue.

thanks 

Original comment by agau...@chromium.org on 22 Jun 2015 at 11:49

GoogleCodeExporter commented 9 years ago
Hello,

I'm having the same problem. Under Kubuntu 15.04 Chrome fails to retrieve the 
passwords for some of my sites, but in Windows 8.1 it works well. My Chrome 
version is: 43.0.2357.130 (64-bit)

This is the log from Kubuntu:

[5246:5246:0623/222050:ERROR:url_pattern_set.cc(240)] Invalid url pattern: 
chrome://print/*
[5278:5278:0624/042050:ERROR:gles2_cmd_decoder.cc(11539)] 
[GroupMarkerNotSet(crbug.com/242999)!:D0E89CEE92320000]GL ERROR 
:GL_INVALID_OPERATION : glTexStorage2DEXT: <- error from previous GL command
[5246:5269:0623/222058:ERROR:native_backend_kwallet_x.cc(103)] Failed to 
deserialize version 6 KWallet entry (realm: DansGuardian)
[5246:5269:0623/222058:ERROR:native_backend_kwallet_x.cc(86)] Failed to 
deserialize URL.
[5246:5269:0623/222058:ERROR:native_backend_kwallet_x.cc(103)] Failed to 
deserialize version 6 KWallet entry (realm: http://127.0.0.1:8080/)
[5246:5269:0623/222058:ERROR:native_backend_kwallet_x.cc(103)] Failed to 
deserialize version 6 KWallet entry (realm: http://157.253.192.193/)
[5246:5269:0623/222058:ERROR:native_backend_kwallet_x.cc(86)] Failed to 
deserialize URL.
[5246:5269:0623/222058:ERROR:native_backend_kwallet_x.cc(103)] Failed to 
deserialize version 6 KWallet entry (realm: http://190.145.91.56/)
[5246:5269:0623/222058:ERROR:native_backend_kwallet_x.cc(103)] Failed to 
deserialize version 6 KWallet entry (realm: 
http://192.168.0.1/TP-LINK%20Wireless%20Dual%20Band%20Router%20WDR3500)
...

My entire log is 1600+ lines full of those error messages. I checked the sites 
for which Chrome is not remembering my passwords and they are listed in one of 
these error lines.

Thanks.

Original comment by dwilc...@gmail.com on 24 Jun 2015 at 4:26