All of a sudden I am confused with selenium grid.
I ran selenium grid with 2 nodes on a windows machine.
Now, I try to run the test from a remote machine on this. It says forwarding error. But if I change the port to 5555, it runs fine. I have tried using the port option while configuring hub. That doesn't work either. Please help me out.
I'll try to help you but I need more details. If I understand you right:
the hub is started on machine_1 (say on default port 4444)
the nodes are started on machine_2, running something like this:
java -jar selenium-server-standalone-2.28.0.jar -role node -hub http://ip_of_machine_1:4444/grid/register -browser "browserName=chrome,maxInstances=5" -port the_port_number (the default is 5555)
you try to run the tests and get forwarding error
Actually this should work. Could you give some more details?
Related
I'm trying to debug Erlang node started on remote PC, from my local PC.
For debugging I'm using latest IntelliJ Idea with Erlang plugin.
Remote node started like this:
erl -pa /path/to/myapp/ebin -name myapp#myremote.host -setcookie mycookie -shell -eval "application:start(myapp)."
Idea uses Rebar "Erlang Remote Node" configuration , so local node started and connected to myapp#myremote.host.
I can confirm connection, because "nodes()." on remote shell show my connected node from local machine. Also net_adm ping/pong works.
"epmd -names" also show correspond sessions.
Unfortunately all my breakpoints within IDE not triggering, so I can't stop execution and perform step-by-step debugging via IDE.
Meantime such debug session works like a charm in case of both nodes started on local PC.
Please suggest me what I'm doing wrong. Many thanks in advance .
PS: I'm also tried with short node names, with same result.
You should setup epmd for listening on external IP (http://erlang.org/doc/man/epmd.html) and after that DNS name "myremote.host" should be resolve to it IP
I am trying to document my React Components and I am running styleguidist server along side with Laravel development server but the styleguidist server crashes with this error.
You have another server running at port 6060 somewhere, shut it down first
You can change the port using the `serverPort` option in your style guide config:
https://react-styleguidist.js.org/docs/configuration.html
I have configured the styleguidist server to run at port 6060 as to resolve this issue and succeeded to run the server only once. After that I am getting this issue again.
How can i resolve this??
The error is saying you have something else running at that port. Have you tried a different one? If you are running a UNIX system, you can see what is running on that port with:
lsof -i tcp:6060
Am Using Jenkins, where so many windows machine i have integrated,but at the same all the windows machine got disconnected could not able to launch slave in windows machine,tried all possibilities like
1) slave.jar version upgrade
2)Java_home_path changes
but my doubt is with port, am getting error while launching that slave as follows
enter image description here
So how to connect windows slave , Hope it may be the issue with port connection.TCP port 443 used but getting error. Please suggest good idea.
When I try to run server(rc) in command prompt it is saying it is already used. So, I run the server in 5555 and changed the same in script. However, it still shows
WARN - Failed to start: SocketListener0#0.0.0.0:4444
Have you tried to stop the server using the below link?
http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer
Just open the above link in the browser you are using to run the tests.
After the opening the above link, the selenium server stops.
Then you can proceed with starting the server from port 4444.
Close the browser that is running on port 4444 and then restart the selenium server
I had the same problem,
type this instead
webdriver-manager --seleniumPort 4455 start
it will start it on port 4455 (you can try different numbers as well)
I am using selenium grid for automated testing. I have followed the official documents to install the grid. But after running the run-demo-in-parallel, the test casses fail with the following error in the target folder.
Parameter #1 Parameter #2 Parameter #3 Parameter #4
localhost 4444 *firefox http://images.google.com
**Could not contact Selenium Server; have you started it on 'localhost:4444'** ?
Read more at http://seleniumhq.org/projects/remote-control/not-started.html Connection refused: connect
com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:86)
at com.thoughtworks.selenium.grid.tools.ThreadSafeSeleniumSessionStorage.startSeleniumSession(ThreadSafeSeleniumSessionStorage.java:26)at com.thoughtworks.selenium.grid.demo.WebTestForASingleBrowser.domme(WebTestForASingleBrowser.java:51)
Can you please tell me what the issue can be ?
I am using a windows7 machine.
With java jdk and jre 1.6. Selenium version 1.0.8 . Selenium stand alone server -2.5.0.
Is there any more information i can give ?
open up taskmanager and see if there is a process with the name java.exe or javaw.exe running if that is not the case then your Sel Grid has not yet been started. Please open (double click) the selenium-server-standalone-2.5.0.jar file then again statup taskmanager and make sure your grid is up and running and then try.
if the process is nt started It might be the case that your grid is not able to start to some reason I would suggest opening up a command prompt window and run the following command:
java -jar selenium-server-standalone-2.5.0.jar -role hub
Note: You need to be in the directory where the jar file is for the above command to work else cmd will throw an error saying file not found
Please let me know if you need more help.