Discussion:
[selenium-users] Node is disconnected with Hub
anemuday
2018-11-13 09:59:24 UTC
Permalink
Meta -

OS:
Windows 7
Selenium Version:
Selenium 3.12
Browser:
Chrome 3.12


Steps to reproduce -

All my project source code is in BitBucket and project is setup in Jenkins.
Goal is to run entire suite on a schedule time daily from Jenkins.


Hub(Linux) is running on the same Jenkins Server and Node(Windows) is
getting connected to the Hub.


But the problem is, Node is disconnected with the Hub after 1-2 days,
because of this, my scheduled jobs in Jenkins are failing most of the time.


How can i make sure the Hub and Node stay connected for longer days(say 30
/ 50 days)?


Following is the command i am using to connect Node with Hub:
java -jar -Dwebdriver.chrome.driver=chromedriver.exe
-Dwebdriver.gecko.driver=geckodriver.exe
selenium-server-standalone-3.12.0.jar -role node -nodeConfig node1.json

and following is nod1.json file content:

{
"capabilities":
[
{
"browserName": "firefox",
"maxInstances": 5,
"seleniumProtocol": "WebDriver"
},
{
"browserName": "chrome",
"maxInstances": 5,
"seleniumProtocol": "WebDriver"
},
{
"browserName": "internet explorer",
"maxInstances": 1,
"seleniumProtocol": "WebDriver"
}
],
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"port": 17946,
"register": true,
"registerCycle": 5000,
"timeout":432000,
"hub": "http://jenkins.abc.com:4444",
"nodePolling": 5000,
"role": "node"
}

Can someone help me what i am missing? How can i make the Node and Hub
connected?
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e2ffd4ce-b100-4347-99f3-9863570d8c39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
⇜Krishnan Mahadevan⇝
2018-11-14 03:09:22 UTC
Permalink
Have you ruled out network flakiness between the Hub and the node machines ?
If there's a network glitch then the connection could be severed.
Post by anemuday
How can i make the Node and Hub connected?
The easiest way of doing this would be to build a self healing mechanism
within the Grid.

Sometime back I created a blog post that shows how to go about doing this:
https://rationaleemotions.wordpress.com/2013/01/28/building-a-self-maintaining-grid-environment/


Please see if that helps.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening
or in love with someone else!"
Post by anemuday
Meta -
Windows 7
Selenium 3.12
Chrome 3.12
Steps to reproduce -
All my project source code is in BitBucket and project is setup in Jenkins.
Goal is to run entire suite on a schedule time daily from Jenkins.
Hub(Linux) is running on the same Jenkins Server and Node(Windows) is
getting connected to the Hub.
But the problem is, Node is disconnected with the Hub after 1-2 days,
because of this, my scheduled jobs in Jenkins are failing most of the time.
How can i make sure the Hub and Node stay connected for longer days(say 30
/ 50 days)?
java -jar -Dwebdriver.chrome.driver=chromedriver.exe
-Dwebdriver.gecko.driver=geckodriver.exe
selenium-server-standalone-3.12.0.jar -role node -nodeConfig node1.json
{
[
{
"browserName": "firefox",
"maxInstances": 5,
"seleniumProtocol": "WebDriver"
},
{
"browserName": "chrome",
"maxInstances": 5,
"seleniumProtocol": "WebDriver"
},
{
"browserName": "internet explorer",
"maxInstances": 1,
"seleniumProtocol": "WebDriver"
}
],
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"port": 17946,
"register": true,
"registerCycle": 5000,
"timeout":432000,
"hub": "http://jenkins.abc.com:4444",
"nodePolling": 5000,
"role": "node"
}
Can someone help me what i am missing? How can i make the Node and Hub
connected?
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/e2ffd4ce-b100-4347-99f3-9863570d8c39%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/e2ffd4ce-b100-4347-99f3-9863570d8c39%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLkTX0or5J3rA_HdUj85Uqrjxpur6HC0Wse-8CO%2BLfVkTQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
anemuday
2018-11-16 05:26:35 UTC
Permalink
Thanks Krishnan for your reply.

I am hoping there is no network glitch in this. Is there a way we can
monitor this network flakiness between hub and node?

Is there any other ways or configurations i am missing in my case? I yet to
understand the info you shared in the thread.

Thanks & Regards,
Uday
Post by ⇜Krishnan Mahadevan⇝
Have you ruled out network flakiness between the Hub and the node machines ?
If there's a network glitch then the connection could be severed.
Post by anemuday
How can i make the Node and Hub connected?
The easiest way of doing this would be to build a self healing mechanism
within the Grid.
https://rationaleemotions.wordpress.com/2013/01/28/building-a-self-maintaining-grid-environment/
Please see if that helps.
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening
or in love with someone else!"
Post by anemuday
Meta -
Windows 7
Selenium 3.12
Chrome 3.12
Steps to reproduce -
All my project source code is in BitBucket and project is setup in Jenkins.
Goal is to run entire suite on a schedule time daily from Jenkins.
Hub(Linux) is running on the same Jenkins Server and Node(Windows) is
getting connected to the Hub.
But the problem is, Node is disconnected with the Hub after 1-2 days,
because of this, my scheduled jobs in Jenkins are failing most of the time.
How can i make sure the Hub and Node stay connected for longer days(say
30 / 50 days)?
java -jar -Dwebdriver.chrome.driver=chromedriver.exe
-Dwebdriver.gecko.driver=geckodriver.exe
selenium-server-standalone-3.12.0.jar -role node -nodeConfig node1.json
{
[
{
"browserName": "firefox",
"maxInstances": 5,
"seleniumProtocol": "WebDriver"
},
{
"browserName": "chrome",
"maxInstances": 5,
"seleniumProtocol": "WebDriver"
},
{
"browserName": "internet explorer",
"maxInstances": 1,
"seleniumProtocol": "WebDriver"
}
],
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"port": 17946,
"register": true,
"registerCycle": 5000,
"timeout":432000,
"hub": "http://jenkins.abc.com:4444",
"nodePolling": 5000,
"role": "node"
}
Can someone help me what i am missing? How can i make the Node and Hub
connected?
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/e2ffd4ce-b100-4347-99f3-9863570d8c39%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/e2ffd4ce-b100-4347-99f3-9863570d8c39%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d789c6e2-5f1d-428d-9fc3-86dfa3774c42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
⇜Krishnan Mahadevan⇝
2018-11-16 05:28:56 UTC
Permalink
Not sure what additional information you are looking for. I have shared
what I have as info, in terms of how to ensure that the Hub and the node
stay always connected by building a self healing mechanism. There are no
out of the box configurations etc., AFAIK, that can do this.


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening
or in love with someone else!"
Post by anemuday
Thanks Krishnan for your reply.
I am hoping there is no network glitch in this. Is there a way we can
monitor this network flakiness between hub and node?
Is there any other ways or configurations i am missing in my case? I yet
to understand the info you shared in the thread.
Thanks & Regards,
Uday
Post by ⇜Krishnan Mahadevan⇝
Have you ruled out network flakiness between the Hub and the node machines ?
If there's a network glitch then the connection could be severed.
Post by anemuday
How can i make the Node and Hub connected?
The easiest way of doing this would be to build a self healing mechanism
within the Grid.
https://rationaleemotions.wordpress.com/2013/01/28/building-a-self-maintaining-grid-environment/
Please see if that helps.
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive,
fattening or in love with someone else!"
Post by anemuday
Meta -
Windows 7
Selenium 3.12
Chrome 3.12
Steps to reproduce -
All my project source code is in BitBucket and project is setup in Jenkins.
Goal is to run entire suite on a schedule time daily from Jenkins.
Hub(Linux) is running on the same Jenkins Server and Node(Windows) is
getting connected to the Hub.
But the problem is, Node is disconnected with the Hub after 1-2 days,
because of this, my scheduled jobs in Jenkins are failing most of the time.
How can i make sure the Hub and Node stay connected for longer days(say
30 / 50 days)?
java -jar -Dwebdriver.chrome.driver=chromedriver.exe
-Dwebdriver.gecko.driver=geckodriver.exe
selenium-server-standalone-3.12.0.jar -role node -nodeConfig node1.json
{
[
{
"browserName": "firefox",
"maxInstances": 5,
"seleniumProtocol": "WebDriver"
},
{
"browserName": "chrome",
"maxInstances": 5,
"seleniumProtocol": "WebDriver"
},
{
"browserName": "internet explorer",
"maxInstances": 1,
"seleniumProtocol": "WebDriver"
}
],
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"port": 17946,
"register": true,
"registerCycle": 5000,
"timeout":432000,
"hub": "http://jenkins.abc.com:4444",
"nodePolling": 5000,
"role": "node"
}
Can someone help me what i am missing? How can i make the Node and Hub
connected?
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/e2ffd4ce-b100-4347-99f3-9863570d8c39%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/e2ffd4ce-b100-4347-99f3-9863570d8c39%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/d789c6e2-5f1d-428d-9fc3-86dfa3774c42%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/d789c6e2-5f1d-428d-9fc3-86dfa3774c42%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZL%3DD5LQ2K63yvBWvF33ZL8qVEQ7OP8kLu2ypmPT3BsOOcw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...