Re: [selenium-users] Getting error {"msg":"Cannot find proxy with ID =http://127.0.0.1:5555 in the registry.","success":f

770 views
Skip to first unread message

François Reynaud

unread,
Nov 18, 2012, 5:20:17 PM11/18/12
to seleniu...@googlegroups.com
no, this is how it should work.

Can you try  http://127.0.0.1:4444/grid/api/hub/ and see what list of proxy it returns ?
The proxy id is a string, and is compared as such. 127.0.0.1 != localhost

thanks,
Frnaçois

On Sun, Nov 18, 2012 at 7:10 PM, Gulshan Saini <gulsha...@gmail.com> wrote:
When I access url : http://127.0.0.1:4444/grid/api/proxy?id=http://127.0.0.1:5555

I get following error

{"msg":"Cannot find proxy with ID =http://127.0.0.1:5555 in the registry.","success":false}

Confirguration
Hub is running at port 4444
Node is running at port 5555

Build info: version: '2.25.0', revision: '17482', time: '2012-07-18 21:08:56'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0_31'
Driver info: driver.version: EventFiringWebDriver

I want to extract proxy data..Am i doing something wrong?

Regards
Gulshan

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/88JYARyKNekJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Message has been deleted

harry thebest

unread,
Nov 18, 2012, 11:55:13 PM11/18/12
to seleniu...@googlegroups.com
Hello frnds my name is harbans u can call me harry i want to start selenium please let me know how should i start it and how should i prepare for it please.


On Mon, Nov 19, 2012 at 12:40 AM, Gulshan Saini <gulsha...@gmail.com> wrote:
When I access url : http://127.0.0.1:4444/grid/api/proxy?id=http://127.0.0.1:5555

I get following error

{"msg":"Cannot find proxy with ID =http://127.0.0.1:5555 in the registry.","success":false}

Confirguration
Hub is running at port 4444
Node is running at port 5555

Build info: version: '2.25.0', revision: '17482', time: '2012-07-18 21:08:56'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0_31'
Driver info: driver.version: EventFiringWebDriver

I want to extract proxy data..Am i doing something wrong?

Regards
Gulshan

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/88JYARyKNekJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Thanks & Regards,
Harbans Lal
Software Quality Engineer
EMP CODE-24719
IDS InfoTech Limited Mohali (SSB)
professi...@gmail.com  http://www.idsil.com


Message has been deleted
Message has been deleted
Message has been deleted

Krishnan Mahadevan

unread,
Nov 19, 2012, 1:18:55 AM11/19/12
to seleniu...@googlegroups.com
Gulshan,
Your posts weren't deleted but they went in for moderation (not sure why that happened though). So did what Francois suggested work for you ?

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


On Mon, Nov 19, 2012 at 11:28 AM, Gulshan Saini <gulsha...@gmail.com> wrote:
You may delete this post as well. But I would like to know reason behind deletion of my previous posts
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/FE3xU1dOiPEJ.
Message has been deleted
Message has been deleted

François Reynaud

unread,
Nov 19, 2012, 3:31:28 AM11/19/12
to seleniu...@googlegroups.com
Your node didn't register properly.


If you launch the hub :
➜  dist  java -jar selenium-server-standalone-2.25.0.jar -role hub
Nov 19, 2012 8:26:15 AM org.openqa.grid.selenium.GridLauncher main
INFO: Launching a selenium grid server
2012-11-19 08:26:20.967:INFO:osjs.Server:jetty-7.x.y-SNAPSHOT
2012-11-19 08:26:21.009:INFO:osjsh.ContextHandler:started o.s.j.s.ServletContextHandler{/,null}
2012-11-19 08:26:21.017:INFO:osjs.AbstractConnector:Started SocketC...@0.0.0.0:4444

then the node :

➜  dist  java -jar selenium-server-standalone-2.25.0.jar -role node -hub http://localhost:4444/grid/register
Nov 19, 2012 8:27:41 AM org.openqa.grid.selenium.GridLauncher main
INFO: Launching a selenium grid node
08:27:51.852 INFO - Java: Apple Inc. 20.10-b01-428
08:27:51.853 INFO - OS: Mac OS X 10.7.4 x86_64
08:27:51.858 INFO - v2.25.0, with Core v2.25.0. Built from revision 17643
08:27:51.952 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:5555/wd/hub
08:27:51.953 INFO - Version Jetty/5.1.x
08:27:51.954 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
08:27:51.955 INFO - Started HttpContext[/selenium-server,/selenium-server]
08:27:51.955 INFO - Started HttpContext[/,/]
08:27:52.193 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@56f0cb3c
08:27:52.193 INFO - Started HttpContext[/wd,/wd]
08:27:52.197 INFO - Started SocketListener on 0.0.0.0:5555
08:27:52.198 INFO - Started org.openqa.jetty.jetty.Server@bc5fde0
08:27:52.198 INFO - using the json request : {"class":"org.openqa.grid.common.RegistrationRequest","capabilities":[{"platform":"MAC","seleniumProtocol":"Selenium","browserName":"*firefox","maxInstances":5},{"platform":"MAC","seleniumProtocol":"Selenium","browserName":"*googlechrome","maxInstances":5},{"platform":"MAC","seleniumProtocol":"Selenium","browserName":"*iexplore","maxInstances":1},{"platform":"MAC","seleniumProtocol":"WebDriver","browserName":"firefox","maxInstances":5},{"platform":"MAC","seleniumProtocol":"WebDriver","browserName":"chrome","maxInstances":5},{"platform":"WINDOWS","seleniumProtocol":"WebDriver","browserName":"internet explorer","maxInstances":1}],"configuration":{"port":5555,"register":true,"host":"192.168.0.2","proxy":"org.openqa.grid.selenium.proxy.DefaultRemoteProxy","maxSession":5,"hubHost":"localhost","role":"node","registerCycle":5000,"hub":"http://localhost:4444/grid/register","hubPort":4444,"url":"http://192.168.0.2:5555","remoteHost":"http://192.168.0.2:5555"}}
08:27:52.199 INFO - starting auto register thread. Will try to register every 5000 ms.


you should have  http://localhost:4444/grid/api/hub/ returning something like :

{
  "sessionId": null,
  "status": 0,
  "value": {
    "build": {
      "revision": "17643",
      "time": "2012-08-09 08:58:23",
      "version": "2.25.0"
    },
    "configuration": {
      "browserTimeout": 0,
      "capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher",
      "cleanUpCycle": 5000,
      "host": null,
      "maxSession": 5,
      "newSessionWaitTimeout": -1,
      "nodePolling": 5000,
      "port": 4444,
      "prioritizer": null,
      "role": "hub",
      "servlets": [],
      "throwOnCapabilityNotPresent": true,
      "timeout": 300000
    },
    "java": {"version": "1.6.0_35"},
    "nodes": [{
      "id": "http://192.168.0.2:5555",
      "status": "http://192.168.0.2:5555/wd/hub/status",
      "url": "http://192.168.0.2:5555"
    }],
    "os": {
      "arch": "x86_64",
      "name": "Mac OS X",
      "version": "10.7.4"
    }
  }
}


On Mon, Nov 19, 2012 at 7:39 AM, Gulshan Saini <gulsha...@gmail.com> wrote:
Hi Krishnan,

I navigated to url as François Reynaud suggested.

I get following output on browser

{"port":4444,"servlets":[],"host":null,"cleanUpCycle":5000,"browserTimeout":0,"capabilityMatcher":"org.openqa.grid.internal.utils.DefaultCapabilityMatcher","newSessionWaitTimeout":-1,"prioritizer":null,"throwOnCapabilityNotPresent":true,"nodePolling":5000,"maxSession":5,"role":"hub","success":true,"timeout":300000}


Thanks
Gulshan

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/dUPlm-pN2SwJ.

Gulshan Saini

unread,
Nov 19, 2012, 4:56:33 AM11/19/12
to seleniu...@googlegroups.com
Hi François

I followed steps exactly mentioned in your post. Please see below output that I am getting


java -jar selenium-server-standalone-2.25.0.jar -role hub
Nov 19, 2012 1:51:01 AM org.openqa.grid.selenium.GridLauncher main

INFO: Launching a selenium grid server
2012-11-19 01:51:03.891:INFO:osjs.Server:jetty-7.x.y-SNAPSHOT
2012-11-19 01:51:03.932:INFO:osjsh.ContextHandler:started o.s.j.s.ServletContextHandler{/,null}
2012-11-19 01:51:03.940:INFO:osjs.AbstractConnector:Started SocketC...@0.0.0.0:4444
******************************************************************************************************

java -jar selenium-server-standalone-2.25.0.jar -role node -hub http://localhost:4444/grid/register
Nov 19, 2012 1:53:02 AM org.openqa.grid.selenium.GridLauncher main

INFO: Launching a selenium grid node
01:53:03.923 INFO - Java: Apple Inc. 20.10-b01-428
01:53:03.925 INFO - OS: Mac OS X 10.6.8 x86_64
01:53:03.953 INFO - v2.25.0, with Core v2.25.0. Built from revision 17482
01:53:04.186 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:5555/wd/hub
01:53:04.186 INFO - Version Jetty/5.1.x
01:53:04.187 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
01:53:04.188 INFO - Started HttpContext[/selenium-server,/selenium-server]
01:53:04.188 INFO - Started HttpContext[/,/]
01:53:04.194 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@5ba8773c
01:53:04.194 INFO - Started HttpContext[/wd,/wd]
01:53:04.196 INFO - Started SocketListener on 0.0.0.0:5555
01:53:04.196 INFO - Started org.openqa.jetty.jetty.Server@163dc0bb
01:53:04.197 INFO - using the json request : {"class":"org.openqa.grid.common.RegistrationRequest","capabilities":[{"platform":"MAC","seleniumProtocol":"Selenium","browserName":"*firefox","maxInstances":5},{"platform":"MAC","seleniumProtocol":"Selenium","browserName":"*googlechrome","maxInstances":5},{"platform":"MAC","seleniumProtocol":"Selenium","browserName":"*iexplore","maxInstances":1},{"platform":"MAC","seleniumProtocol":"WebDriver","browserName":"firefox","maxInstances":5},{"platform":"MAC","seleniumProtocol":"WebDriver","browserName":"chrome","maxInstances":5},{"platform":"WINDOWS","seleniumProtocol":"WebDriver","browserName":"internet explorer","maxInstances":1}],"configuration":{"port":5555,"register":true,"host":"172.18.228.143","proxy":"org.openqa.grid.selenium.proxy.DefaultRemoteProxy","maxSession":5,"hubHost":"localhost","role":"node","registerCycle":5000,"hub":"http://localhost:4444/grid/register","hubPort":4444,"url":"http://172.18.228.143:5555","remoteHost":"http://172.18.228.143:5555"}}
01:53:04.198 INFO - starting auto register thread. Will try to register every 5000 ms.
01:53:04.198 INFO - Registering the node to hub :http://localhost:4444/grid/register
01:53:09.471 INFO - Executing: org.openqa.selenium.remote.server.handler.Status@6f57b46f at URL: /status)
01:53:09.473 INFO - Done: /status

If I visit http://localhost:4444/grid/api/hub/ it return something like :


{"port":4444,"servlets":[],"host":null,"cleanUpCycle":5000,"browserTimeout":0,"capabilityMatcher":"org.openqa.grid.internal.utils.DefaultCapabilityMatcher","newSessionWaitTimeout":-1,"prioritizer":null,"throwOnCapabilityNotPresent":true,"nodePolling":5000,"maxSession":5,"role":"hub","success":true,"timeout":300000}


This output is totally different from what you are getting. I am also attaching screenshot of same


Please advise.

Thanks
Gulshan


On Sunday, 18 November 2012 14:20:41 UTC-8, François Reynaud wrote:
Screen shot 2012-11-19 at 1.56.24 AM.png

François Reynaud

unread,
Nov 19, 2012, 5:18:27 AM11/19/12
to seleniu...@googlegroups.com
do you see your node when you go to http://localhost:4444/grid/console ?

To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/_09OxfNTAgoJ.

Gulshan Saini

unread,
Nov 19, 2012, 6:04:41 AM11/19/12
to seleniu...@googlegroups.com
I see following details

DefaultRemoteProxylistening on http://172.18.228.143:5555
test session time out after 300 sec.
Supports up to 5 concurrent tests from:


Config for the hub :
host : null
port : 4444
cleanUpCycle : 5000
timeout : 300000
browserTimeout : 0
newSessionWaitTimeout : -1
grid1Mapping : {}
throwOnCapabilityNotPresent : true
capabilityMatcher : org.openqa.grid.internal.utils.DefaultCapabilityMatcher
prioritizer : null
servlets :

all params :

browserTimeout : 0
capabilityMatcher : org.openqa.grid.internal.utils.DefaultCapabilityMatcher
cleanUpCycle : 5000
host : null
maxSession : 5
newSessionWaitTimeout : -1
nodePolling : 5000
port : 4444
prioritizer : null
role : hub
servlets : []
throwOnCapabilityNotPresent : true
timeout : 300000

Config details :
hub launched with :-role hub
the final configuration comes from :
the default :
host : null
port : 4444
cleanUpCycle : 5000
timeout : 300000
browserTimeout : 0
newSessionWaitTimeout : -1
grid1Mapping : {}
throwOnCapabilityNotPresent : true
capabilityMatcher : org.openqa.grid.internal.utils.DefaultCapabilityMatcher
prioritizer : null
servlets :

all params :

browserTimeout : 0
capabilityMatcher : org.openqa.grid.internal.utils.DefaultCapabilityMatcher
cleanUpCycle : 5000
host : null
maxSession : 5
newSessionWaitTimeout : -1
nodePolling : 5000
port : 4444
prioritizer : null
servlets : []
throwOnCapabilityNotPresent : true
timeout : 300000

updated with grid1 config :No grid1 file specified. To specify one, use -grid1Yml XXX.yml where XXX.yml is a grid1 config file

updated with grid2 config : No hub config file specified. To specify one, use -hubConfig XXX.json where XXX.json is a hub config file

updated with params :
host : null
port : 4444
cleanUpCycle : 5000
timeout : 300000
browserTimeout : 0
newSessionWaitTimeout : -1
grid1Mapping : {}
throwOnCapabilityNotPresent : true
capabilityMatcher : org.openqa.grid.internal.utils.DefaultCapabilityMatcher
prioritizer : null
servlets :

all params :

browserTimeout : 0
capabilityMatcher : org.openqa.grid.internal.utils.DefaultCapabilityMatcher
cleanUpCycle : 5000
host : null
maxSession : 5
newSessionWaitTimeout : -1
nodePolling : 5000
port : 4444
prioritizer : null
role : hub
servlets : []
throwOnCapabilityNotPresent : true
timeout : 300000

Gulshan Saini

unread,
Nov 19, 2012, 11:33:25 AM11/19/12
to seleniu...@googlegroups.com
Is any body working on extracting proxy data?
I am really confused and struggling with this.

Thanks
Gulshan
Reply all
Reply to author
Forward
0 new messages