Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Grid2: couldn't register this node : Error sending the registration request.

View previous topic View next topic Go down

Grid2: couldn't register this node : Error sending the registration request.

Post by teiva on Tue Sep 16, 2014 1:12 am

cmd launch commands.
Hub: java -jar selenium-server-standalone-2.42.2.jar -role hub -port 4443
Node: java -jar selenium-server-standalone-2.42.2.jar -role node -port 5554 -hub %http xx.xx.x.xxx:4443%/grid/register

I've turned off the firewall on both machines.
I can successfully ping the hub from the node and vise versa.
I get an expected response for localhost:4443/grid/console
I get a server error : 500 for localhost:4443/grid/register

See debug below.  Any suggestions would be appreciated.



Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Selenium_Grid>java -jar selenium-server-standalone-2.42.2.jar -role node -hub
 http:xx.xx.x.xxx:4443/grid/register -debug
Sep 15, 2014 10:24:48 AM org.openqa.grid.selenium.GridLauncher main
INFO: Launching a selenium grid node
Sep 15, 2014 10:24:48 AM org.apache.http.client.protocol.RequestAddCookies proce
ss
FINE: CookieSpec selected: best-match
Sep 15, 2014 10:24:48 AM org.apache.http.client.protocol.RequestAuthCache proces
s
FINE: Auth cache not set in the context
Sep 15, 2014 10:24:48 AM org.apache.http.impl.conn.PoolingHttpClientConnectionMa
nager requestConnection
FINE: Connection request: [route: {}->http:xx.xx.x.xxx:4443][total kept alive:
 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
Sep 15, 2014 10:24:48 AM org.apache.http.impl.conn.PoolingHttpClientConnectionMa
nager leaseConnection
FINE: Connection leased: [id: 0][route: {}->http:xx.xx.x.xxx:4443][total kept
alive: 0; route allocated: 1 of 2000; total allocated: 1 of 2000]
Sep 15, 2014 10:24:48 AM org.apache.http.impl.execchain.MainClientExec execute
FINE: Opening connection {}->http:xx.xx.x.xxx:4443
Sep 15, 2014 10:24:48 AM org.apache.http.conn.HttpClientConnectionManager connec
t
FINE: Connecting to /xx.xx.x.xxx:4443
Sep 15, 2014 10:24:49 AM org.apache.http.impl.conn.DefaultManagedHttpClientConne
ction shutdown
FINE: http-outgoing-0: Shutdown connection
Sep 15, 2014 10:24:49 AM org.apache.http.impl.execchain.MainClientExec abortConn
ection
FINE: Connection discarded
Sep 15, 2014 10:24:49 AM org.apache.http.impl.conn.DefaultManagedHttpClientConne
ction close
FINE: http-outgoing-0: Close connection
Sep 15, 2014 10:24:49 AM org.apache.http.impl.conn.PoolingHttpClientConnectionMa
nager releaseConnection
FINE: Connection released: [id: 0][route: {}->http:xx.xx.x.xxx:4443][total kep
t alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
Sep 15, 2014 10:24:49 AM org.openqa.grid.internal.utils.SelfRegisteringRemote st
artRemoteServer
WARNING: error getting the parameters from the hub. The node may end up with wro
ng timeouts.Connect to xx.xx.x.xxx:4443 [/xx.xx.x.xxx] failed: Connection refuse
d: connect
10:24:49.967 INFO - Java: Oracle Corporation 25.20-b23
10:24:49.968 INFO - OS: Windows 7 6.1 x86
10:24:49.975 INFO - v2.42.2, with Core v2.42.2. Built from revision 6a6995d
10:24:49.976 INFO - Selenium server running in debug mode.
10:24:49.989 DEBUG - add component: SocketListener0@0.0.0.0:5555
10:24:50.000 DEBUG - add component: org.openqa.jetty.http.ResourceCache@3a8624
10:24:50.003 DEBUG - add component: org.openqa.selenium.server.ProxyHandler in H
ttpContext[/,/]
10:24:50.005 DEBUG - add component: HttpContext[/,/]
10:24:50.006 DEBUG - Added HttpContext[/,/] for host *
10:24:50.006 DEBUG - add component: org.openqa.jetty.http.ResourceCache@25b2fe
10:24:50.008 DEBUG - added SC{BASIC,null,user,CONFIDENTIAL} at /org/openqa/selen
ium/tests/html/basicAuth/*
10:24:50.015 DEBUG - add component: org.openqa.jetty.http.handler.SecurityHandle
r in HttpContext[/selenium-server,/selenium-server]
10:24:50.018 DEBUG - add component: org.openqa.selenium.server.StaticContentHand
ler in HttpContext[/selenium-server,/selenium-server]
10:24:50.020 DEBUG - add component: org.openqa.selenium.server.SessionExtensionJ
sHandler in HttpContext[/selenium-server,/selenium-server]
10:24:50.021 DEBUG - add component: org.openqa.selenium.server.htmlrunner.Single
TestSuiteResourceHandler in HttpContext[/selenium-server,/selenium-server]
10:24:50.023 DEBUG - add component: org.openqa.selenium.server.htmlrunner.Seleni
umHTMLRunnerResultsHandler@1846619
10:24:50.024 DEBUG - add component: HttpContext[/selenium-server,/selenium-serve
r]
10:24:50.025 DEBUG - Added HttpContext[/selenium-server,/selenium-server] for ho
st *
10:24:50.066 DEBUG - add component: org.openqa.jetty.http.ResourceCache@1c0542
10:24:50.072 DEBUG - add component: org.openqa.selenium.server.SeleniumDriverRes
ourceHandler in HttpContext[/selenium-server,/selenium-server]
10:24:50.072 DEBUG - add component: HttpContext[/selenium-server/driver,/seleniu
m-server/driver]
10:24:50.072 DEBUG - Added HttpContext[/selenium-server/driver,/selenium-server/
driver] for host *
10:24:50.073 DEBUG - add component: org.openqa.jetty.http.ResourceCache@33cc44
10:24:50.084 DEBUG - add component: WebDriver remote server
10:24:50.089 DEBUG - add component: org.openqa.jetty.jetty.servlet.HashSessionMa
nager@1808f31
10:24:50.089 DEBUG - add component: org.openqa.jetty.jetty.servlet.ServletHandle
r@16e852b
10:24:50.089 INFO - RemoteWebDriver instances should connect to: http:127.0.0.
1:5555/wd/hub
10:24:50.089 DEBUG - add component: HttpContext[/wd,/wd]
10:24:50.090 DEBUG - Added HttpContext[/wd,/wd] for host *
10:24:50.090 DEBUG - Starting org.openqa.jetty.jetty.Server@1ee9faa
10:24:50.091 INFO - Version Jetty/5.1.x
10:24:50.091 DEBUG - LISTENERS: [SocketListener0@0.0.0.0:5555]
10:24:50.092 DEBUG - HANDLER: {null={/selenium-server/*=[HttpContext[/selenium-s
erver,/selenium-server]], /wd/*=[HttpContext[/wd,/wd]], /selenium-server/driver/
*=[HttpContext[/selenium-server/driver,/selenium-server/driver]], /=[HttpContext
[/,/]]}}
10:24:50.092 DEBUG - Starting HttpContext[/selenium-server,/selenium-server]
10:24:50.093 DEBUG - Init classloader from null, sun.misc.Launcher$AppClassLoade
r@647e05 for HttpContext[/selenium-server,/selenium-server]
10:24:50.094 DEBUG - Started org.openqa.jetty.http.handler.SecurityHandler in Ht
tpContext[/selenium-server,/selenium-server]
10:24:50.094 DEBUG - Started org.openqa.selenium.server.StaticContentHandler in
HttpContext[/selenium-server,/selenium-server]
10:24:50.095 DEBUG - Started org.openqa.selenium.server.SessionExtensionJsHandle
r in HttpContext[/selenium-server,/selenium-server]
10:24:50.095 DEBUG - Started org.openqa.selenium.server.htmlrunner.SingleTestSui
teResourceHandler in HttpContext[/selenium-server,/selenium-server]
10:24:50.096 DEBUG - Started org.openqa.selenium.server.SeleniumDriverResourceHa
ndler in HttpContext[/selenium-server,/selenium-server]
10:24:50.096 INFO - Started HttpContext[/selenium-server,/selenium-server]
10:24:50.096 DEBUG - Starting HttpContext[/wd,/wd]
10:24:50.096 DEBUG - Init classloader from null, sun.misc.Launcher$AppClassLoade
r@647e05 for HttpContext[/wd,/wd]
10:24:50.097 DEBUG - Starting org.openqa.jetty.jetty.servlet.ServletHandler@16e8
52b
10:24:50.098 DEBUG - New random session seed
10:24:50.098 DEBUG - Started holder of class org.openqa.selenium.remote.server.D
riverServlet
10:24:50.100 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@16e852
b
10:24:50.100 INFO - Started HttpContext[/wd,/wd]
10:24:50.100 DEBUG - Starting HttpContext[/selenium-server/driver,/selenium-serv
er/driver]
10:24:50.101 DEBUG - Init classloader from null, sun.misc.Launcher$AppClassLoade
r@647e05 for HttpContext[/selenium-server/driver,/selenium-server/driver]
10:24:50.101 INFO - Started HttpContext[/selenium-server/driver,/selenium-server
/driver]
10:24:50.101 DEBUG - Starting HttpContext[/,/]
10:24:50.102 DEBUG - Init classloader from null, sun.misc.Launcher$AppClassLoade
r@647e05 for HttpContext[/,/]
10:24:50.102 DEBUG - Started org.openqa.selenium.server.ProxyHandler in HttpCont
ext[/,/]
10:24:50.102 INFO - Started HttpContext[/,/]
10:24:50.105 INFO - Started SocketListener on 0.0.0.0:5555
10:24:50.105 INFO - Started org.openqa.jetty.jetty.Server@1ee9faa
10:24:50.111 INFO - using the json request : {"capabilities":[{"seleniumProtocol
":"Selenium","browserName":"*firefox","maxInstances":5,"platform":"VISTA"},{"sel
eniumProtocol":"Selenium","browserName":"*googlechrome","maxInstances":5,"platfo
rm":"VISTA"},{"seleniumProtocol":"Selenium","browserName":"*iexplore","maxInstan
ces":1,"platform":"VISTA"},{"seleniumProtocol":"WebDriver","browserName":"firefo
x","maxInstances":5,"platform":"VISTA"},{"seleniumProtocol":"WebDriver","browser
Name":"chrome","maxInstances":5,"platform":"VISTA"},{"seleniumProtocol":"WebDriv
er","browserName":"internet explorer","maxInstances":1,"platform":"VISTA"}],"con
figuration":{"role":"node","debug":"","remoteHost":"http:10.10.2.156:5555","hu
bHost":"xx.xx.x.xxx","hubPort":4443,"url":"http:10.10.2.156:5555","proxy":"org
.openqa.grid.selenium.proxy.DefaultRemoteProxy","hub":"http:xx.xx.x.xxx:4443/g
rid/register","port":5555,"host":"10.10.2.156","maxSession":5,"registerCycle":50
00,"register":true},"class":"org.openqa.grid.common.RegistrationRequest"}
10:24:50.115 DEBUG - Session scavenger period = 30s
10:24:50.115 INFO - Starting auto register thread. Will try to register every 50
00 ms.
10:24:50.116 INFO - Registering the node to hub :http:xx.xx.x.xxx:4443/grid/re
gister
10:24:50.120 DEBUG - CookieSpec selected: best-match
10:24:50.121 DEBUG - Auth cache not set in the context
10:24:50.122 DEBUG - Connection request: [route: {}->http:xx.xx.x.xxx:4443][to
tal kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
10:24:50.123 DEBUG - Connection leased: [id: 1][route: {}->http:xx.xx.x.xxx:44
43][total kept alive: 0; route allocated: 1 of 2000; total allocated: 1 of 2000]

10:24:50.124 DEBUG - Opening connection {}->http:xx.xx.x.xxx:4443
10:24:50.125 DEBUG - Connecting to /xx.xx.x.xxx:4443
10:24:51.133 DEBUG - http-outgoing-1: Shutdown connection
10:24:51.133 DEBUG - Connection discarded
10:24:51.133 DEBUG - http-outgoing-1: Close connection
10:24:51.133 DEBUG - Connection released: [id: 1][route: {}->http:xx.xx.x.xxx:
4443][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 200
0]
10:24:51.133 INFO - couldn't register this node : Error sending the registration
 request.
10:24:56.134 DEBUG - CookieSpec selected: best-match
10:24:56.134 DEBUG - Auth cache not set in the context
10:24:56.142 DEBUG - Connection request: [route: {}->http:xx.xx.x.xxx:4443][to
tal kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
10:24:56.142 DEBUG - Connection leased: [id: 2][route: {}->http:xx.xx.x.xxx:44
43][total kept alive: 0; route allocated: 1 of 2000; total allocated: 1 of 2000]

10:24:56.142 DEBUG - Opening connection {}->http:xx.xx.x.xxx:4443
10:24:56.142 DEBUG - Connecting to /xx.xx.x.xxx:4443
10:24:57.157 DEBUG - http-outgoing-2: Shutdown connection
10:24:57.157 DEBUG - Connection discarded
10:24:57.157 DEBUG - http-outgoing-2: Close connection
10:24:57.157 DEBUG - Connection released: [id: 2][route: {}->http:xx.xx.x.xxx:
4443][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 200
0]
10:24:57.157 INFO - couldn't register this node : Hub is down or not responding:
 Connect to xx.xx.x.xxx:4443 [/xx.xx.x.xxx] failed: Connection refused: connect
10:25:02.157 DEBUG - CookieSpec selected: best-match
10:25:02.157 DEBUG - Auth cache not set in the context
10:25:02.157 DEBUG - Connection request: [route: {}->http:xx.xx.x.xxx:4443][to
tal kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 2000]
10:25:02.157 DEBUG - Connection leased: [id: 3][route: {}->httpxx.xx.x.xxx:44
43][total kept alive: 0; route allocated: 1 of 2000; total allocated: 1 of 2000]

10:25:02.157 DEBUG - Opening connection {}->httpxx.xx.x.xxx:4443
10:25:02.165 DEBUG - Connecting to /xx.xx.x.xxx:4443
10:25:03.189 DEBUG - http-outgoing-3: Shutdown connection
10:25:03.189 DEBUG - Connection discarded
10:25:03.197 DEBUG - http-outgoing-3: Close connection
10:25:03.197 DEBUG - Connection released: [id: 3][route: {}->httpxx.xx.x.xxx:
4443][total kept alive: 0; route allocated: 0 of 2000; total allocated: 0 of 200
0]
10:25:03.197 INFO - couldn't register this node : Hub is down or not responding:
 Connect to xx.xx.x.xxx:4443 [/xx.xx.x.xxx] failed: Connection refused: connect

C:\Selenium_Grid>

teiva

Posts : 1
Join date : 2014-09-13

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum