Can not Start Google Chrome on Linux.

53 views
Skip to first unread message

Nainesh Prajapati

unread,
Jun 24, 2011, 8:11:43 AM6/24/11
to seleniu...@googlegroups.com
Hi all,

i am facing problem with selenium grid 1.0.8 and selenium stand
alone server. Both can not launch google chrome browser. Here i am
pasting here debug logs. Any body's help will be appreciated.

Log:-

17:39:16.252 INFO - Java: Sun Microsystems Inc. 14.0-b16
17:39:16.255 INFO - OS: Linux 2.6.32.26-175.fc12.i686.PAE i386
17:39:16.270 INFO - v2.0 [a2], with Core v2.0 [a2]
17:39:16.270 INFO - Selenium server running in debug mode.
17:39:16.303 DEBUG - add component: SocketL...@0.0.0.0:4444
17:39:16.335 DEBUG - add component:
org.openqa.jetty.http.ResourceCache@ef5502
17:39:16.345 DEBUG - add component:
org.openqa.selenium.server.ProxyHandler in HttpContext[/,/]
17:39:16.346 DEBUG - add component: HttpContext[/,/]
17:39:16.350 DEBUG - Added HttpContext[/,/] for host *
17:39:16.350 DEBUG - add component:
org.openqa.jetty.http.ResourceCache@1edc073
17:39:16.359 DEBUG - added SC{BASIC,null,user,CONFIDENTIAL} at
/tests/html/basicAuth/*
17:39:16.367 DEBUG - add component:
org.openqa.jetty.http.handler.SecurityHandler in
HttpContext[/selenium-server,/selenium-server]
17:39:16.377 DEBUG - add component:
org.openqa.selenium.server.StaticContentHandler in
HttpContext[/selenium-server,/selenium-server]
17:39:16.380 DEBUG - add component:
org.openqa.selenium.server.SessionExtensionJsHandler in
HttpContext[/selenium-server,/selenium-server]
17:39:16.381 DEBUG - add component:
org.openqa.selenium.server.htmlrunner.SingleTestSuiteResourceHandler in
HttpContext[/selenium-server,/selenium-server]
17:39:16.384 DEBUG - add component:
org.openqa.selenium.server.htmlrunner.SeleniumHTMLRunnerResultsHandler@341960
17:39:16.385 DEBUG - add component:
org.openqa.selenium.server.CachedContentTestHandler@54a328
17:39:16.386 DEBUG - add component:
HttpContext[/selenium-server,/selenium-server]
17:39:16.386 DEBUG - Added
HttpContext[/selenium-server,/selenium-server] for host *
17:39:16.387 DEBUG - add component:
org.openqa.jetty.http.ResourceCache@587c94
17:39:16.421 DEBUG - add component:
org.openqa.selenium.server.SeleniumDriverResourceHandler in
HttpContext[/selenium-server,/selenium-server]
17:39:16.421 DEBUG - add component:
HttpContext[/selenium-server/driver,/selenium-server/driver]
17:39:16.422 DEBUG - Added
HttpContext[/selenium-server/driver,/selenium-server/driver] for host *
17:39:16.422 DEBUG - add component:
org.openqa.jetty.http.ResourceCache@1db699b
17:39:16.444 DEBUG - add component: WebDriver remote server
17:39:16.455 DEBUG - add component:
org.openqa.jetty.jetty.servlet.HashSessionManager@1db7df8
17:39:16.455 DEBUG - add component:
org.openqa.jetty.jetty.servlet.ServletHandler@12b3d53
17:39:16.468 INFO - RemoteWebDriver instances should connect to:
http://192.168.142.1:4444/wd/hub
17:39:16.468 DEBUG - add component: HttpContext[/wd,/wd]
17:39:16.468 DEBUG - Added HttpContext[/wd,/wd] for host *
17:39:16.469 DEBUG - Starting org.openqa.jetty.jetty.Server@1507fb2
17:39:16.471 INFO - Version Jetty/5.1.x
17:39:16.472 DEBUG - LISTENERS: [SocketL...@0.0.0.0:4444]
17:39:16.473 DEBUG - HANDLER:
{null={/selenium-server/driver/*=[HttpContext[/selenium-server/driver,/selenium-server/driver]],
/selenium-server/*=[HttpContext[/selenium-server,/selenium-server]],
/=[HttpContext[/,/]], /wd/*=[HttpContext[/wd,/wd]]}}
17:39:16.474 DEBUG - Starting
HttpContext[/selenium-server/driver,/selenium-server/driver]
17:39:16.475 DEBUG - Init classloader from null,
sun.misc.Launcher$AppClassLoader@df6ccd for
HttpContext[/selenium-server/driver,/selenium-server/driver]
17:39:16.475 INFO - Started
HttpContext[/selenium-server/driver,/selenium-server/driver]
17:39:16.476 DEBUG - Starting HttpContext[/selenium-server,/selenium-server]
17:39:16.476 DEBUG - Init classloader from null,
sun.misc.Launcher$AppClassLoader@df6ccd for
HttpContext[/selenium-server,/selenium-server]
17:39:16.478 DEBUG - Started
org.openqa.jetty.http.handler.SecurityHandler in
HttpContext[/selenium-server,/selenium-server]
17:39:16.479 DEBUG - Started
org.openqa.selenium.server.StaticContentHandler in
HttpContext[/selenium-server,/selenium-server]
17:39:16.479 DEBUG - Started
org.openqa.selenium.server.SessionExtensionJsHandler in
HttpContext[/selenium-server,/selenium-server]
17:39:16.480 DEBUG - Started
org.openqa.selenium.server.htmlrunner.SingleTestSuiteResourceHandler in
HttpContext[/selenium-server,/selenium-server]
17:39:16.480 DEBUG - Started
org.openqa.selenium.server.SeleniumDriverResourceHandler in
HttpContext[/selenium-server,/selenium-server]
17:39:16.480 INFO - Started HttpContext[/selenium-server,/selenium-server]
17:39:16.480 DEBUG - Starting HttpContext[/,/]
17:39:16.480 DEBUG - Init classloader from null,
sun.misc.Launcher$AppClassLoader@df6ccd for HttpContext[/,/]
17:39:16.481 DEBUG - Started org.openqa.selenium.server.ProxyHandler in
HttpContext[/,/]
17:39:16.481 INFO - Started HttpContext[/,/]
17:39:16.481 DEBUG - Starting HttpContext[/wd,/wd]
17:39:16.481 DEBUG - Init classloader from null,
sun.misc.Launcher$AppClassLoader@df6ccd for HttpContext[/wd,/wd]
17:39:16.481 DEBUG - Starting
org.openqa.jetty.jetty.servlet.ServletHandler@12b3d53
17:39:16.482 DEBUG - New random session seed


17:39:21.449 DEBUG - Started holder of class
org.openqa.selenium.remote.server.DriverServlet
17:39:21.454 INFO - Started
org.openqa.jetty.jetty.servlet.ServletHandler@12b3d53
17:39:21.454 INFO - Started HttpContext[/wd,/wd]
17:39:21.455 DEBUG - Session scavenger period = 30s
17:39:21.465 INFO - Started SocketListener on 0.0.0.0:4444
17:39:21.466 INFO - Started org.openqa.jetty.jetty.Server@1507fb2
Entering interactive mode... type Selenium commands here (e.g:
cmd=open&1=http://www.yahoo.com)

cmd=getNewBrowserSession&1=*googlechrome&2=http://www.google.com
17:39:50.433 INFO - ---> Requesting
http://localhost:4444/selenium-server/driver?cmd=getNewBrowserSession&1=*googlechrome&2=http://www.google.com
17:39:50.491 DEBUG - new HttpConnection:
Socket[addr=/127.0.0.1,port=46325,localport=4444]
17:39:50.576 DEBUG - REQUEST from SocketL...@0.0.0.0:4444:
GET
/selenium-server/driver?cmd=getNewBrowserSession&1=*googlechrome&2=http://www.google.com
HTTP/1.1
User-Agent: Java/1.6.0_18
Host: localhost:4444
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive


17:39:50.580 DEBUG - Try
HttpContext[/selenium-server/driver,/selenium-server/driver],0
17:39:50.588 DEBUG - new HttpConnection:
Socket[addr=/127.0.0.1,port=46326,localport=4444]
17:39:50.599 DEBUG -
HttpContext[/selenium-server/driver,/selenium-server/driver] consumed
all of path /selenium-server/driver, redirect to
http://localhost:4444/selenium-server/driver/?cmd=getNewBrowserSession&1=*googlechrome&2=http://www.google.com
17:39:50.600 DEBUG - RESPONSE:
HTTP/1.1 302 Moved Temporarily
Date: Fri, 24 Jun 2011 12:09:50 GMT
Server: Jetty/5.1.x (Linux/2.6.32.26-175.fc12.i686.PAE i386 java/1.6.0_18
Location:
http://localhost:4444/selenium-server/driver/?cmd=getNewBrowserSession&1=*googlechrome&2=http://www.google.com
Transfer-Encoding: chunked


17:39:50.602 DEBUG - EOFException()
17:39:50.610 DEBUG - REQUEST from SocketL...@0.0.0.0:4444:
GET
/selenium-server/driver/?cmd=getNewBrowserSession&1=*googlechrome&2=http://www.google.com
HTTP/1.1
User-Agent: Java/1.6.0_18
Host: localhost:4444
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive


17:39:50.610 DEBUG - Try
HttpContext[/selenium-server/driver,/selenium-server/driver],0
17:39:50.610 DEBUG - Try HttpContext[/selenium-server,/selenium-server],0
17:39:50.611 DEBUG - Handler
org.openqa.jetty.http.handler.SecurityHandler in
HttpContext[/selenium-server,/selenium-server]
17:39:50.611 DEBUG - Handler
org.openqa.selenium.server.StaticContentHandler in
HttpContext[/selenium-server,/selenium-server]
17:39:50.625 INFO - Checking Resource aliases
17:39:50.626 DEBUG - PATH=/driver/
RESOURCE=file:/usr/local/selenium-grid-1.0.8/vendor/MISSING%20RESOURCE
17:39:50.627 DEBUG - Looking for
file:/usr/local/selenium-grid-1.0.8/vendor/MISSING%20RESOURCE
17:39:50.628 DEBUG - Handler
org.openqa.selenium.server.SessionExtensionJsHandler in
HttpContext[/selenium-server,/selenium-server]
17:39:50.628 DEBUG - Handler
org.openqa.selenium.server.htmlrunner.SingleTestSuiteResourceHandler in
HttpContext[/selenium-server,/selenium-server]
17:39:50.628 DEBUG - Handler
org.openqa.selenium.server.htmlrunner.SeleniumHTMLRunnerResultsHandler@341960
17:39:50.628 DEBUG - Handler
org.openqa.selenium.server.CachedContentTestHandler@54a328
17:39:50.628 DEBUG - Handler
org.openqa.selenium.server.SeleniumDriverResourceHandler in
HttpContext[/selenium-server,/selenium-server]
17:39:50.629 DEBUG - req: GET
/selenium-server/driver/?cmd=getNewBrowserSession&1=*googlechrome&2=http://www.google.com
HTTP/1.1
User-Agent: Java/1.6.0_18
Host: localhost:4444
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive


17:39:50.631 INFO - Command request: getNewBrowserSession[*googlechrome,
http://www.google.com] on session null
17:39:50.635 INFO - creating new remote session
17:39:50.658 DEBUG - Requested browser string '*googlechrome' matches
*googlechrome
17:39:50.664 DEBUG - Discovering Google Chrome...
17:39:50.670 DEBUG - Checking whether Google Chrome launcher at
:'/usr/bin/chrome.exe' is valid...
17:39:50.670 DEBUG - Checking whether Google Chrome launcher at
:'/usr/bin/google-chrome' is valid...
17:39:50.671 WARN - Caution: '/usr/bin/google-chrome': file is a script
file, not a real executable. The browser environment is no longer fully
under RC control
17:39:50.671 DEBUG - Discovered valid Google Chrome launcher :
'/usr/bin/google-chrome'
17:39:50.702 INFO - Allocated session 04d87e16badd4ec4a16e17a2e386cb15
for http://www.google.com, launching...
17:39:50.703 INFO - Launching Google Chrome...
17:39:50.763 DEBUG - Execute:Java13CommandLauncher: Executing
'/usr/bin/google-chrome' with arguments:
'--disable-hang-monitor'
'--disable-metrics'
'--disable-popup-blocking'
'--disable-prompt-on-repost'
'--proxy-server=localhost:4444'
'--start-maximized'
'--no-first-run'
'--user-data-dir="/tmp/customProfileDir04d87e16badd4ec4a16e17a2e386cb15"'
''
''
'http://www.google.com/selenium-server/core/RemoteRunner.html?sessionId=04d87e16badd4ec4a16e17a2e386cb15&multiWindow=true&baseUrl=http%3A%2F%2Fwww.google.com&debugMode=false'

The ' characters around the executable and arguments are
not part of the command.
17:39:50.770 DEBUG - spawned process java.lang.UNIXProcess@1d95492
17:39:50.771 DEBUG - waiting for window 'null' local frame 'null' for
2147483647 more secs
17:39:50.772 DEBUG - waiting for condition for 1000 more ms
17:39:51.780 DEBUG - got condition? : false
17:39:51.781 DEBUG - waiting for window 'null' local frame 'null' for
2147483646 more secs
17:39:51.862 DEBUG - waiting for condition for 1000 more ms
17:39:52.863 DEBUG - got condition? : false
17:39:52.863 DEBUG - waiting for window 'null' local frame 'null' for
2147483645 more secs
17:39:52.863 DEBUG - waiting for condition for 1000 more ms
17:39:53.864 DEBUG - got condition? : false
17:39:53.864 DEBUG - waiting for window 'null' local frame 'null' for
2147483644 more secs
17:39:53.864 DEBUG - waiting for condition for 1000 more ms
17:39:54.865 DEBUG - got condition? : false
17:39:54.865 DEBUG - waiting for window 'null' local frame 'null' for
2147483643 more secs
17:39:54.866 DEBUG - waiting for condition for 1000 more ms
17:39:55.866 DEBUG - got condition? : false
17:39:55.867 DEBUG - waiting for window 'null' local frame 'null' for
2147483642 more secs
17:39:55.867 DEBUG - waiting for condition for 1000 more ms
17:39:56.867 DEBUG - got condition? : false
17:39:56.868 DEBUG - waiting for window 'null' local frame 'null' for
2147483641 more secs
17:39:56.868 DEBUG - waiting for condition for 1000 more ms
17:39:57.868 DEBUG - got condition? : false
17:39:57.869 DEBUG - waiting for window 'null' local frame 'null' for
2147483640 more secs
17:39:57.869 DEBUG - waiting for condition for 1000 more ms
^C17:39:58.496 INFO - Shutting down...
17:39:58.496 DEBUG - Stopping org.openqa.jetty.jetty.Server@1507fb2
Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
at java.net.Socket.connect(Socket.java:546)
at java.net.Socket.connect(Socket.java:495)
at sun.net.NetworkClient.doConnect(NetworkClient.java:174)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:409)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:761)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1162)
at
org.openqa.selenium.server.SeleniumServer$1.run(SeleniumServer.java:597)
at java.lang.Thread.run(Thread.java:636)

Regards,
Nainesh Prajapati

Reply all
Reply to author
Forward
0 new messages