Jenkins Window slave connectivty issue

0 votes

When we are trying establish window rdp connectivity

Feb 18, 2020 12:12:06 PM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve

INFO: Remoting server accepts the following protocols: [JNLP4-connect, JNLP-connect, Ping, JNLP2-connect]

Feb 18, 2020 12:12:17 PM hudson.remoting.jnlp.GuiListener$1 run

INFO: Connecting to devops:50000 (retrying:2)

java.io.IOException: Failed to connect to devops:50000

                at org.jenkinsci.remoting.engine.JnlpAgentEndpoint.open(JnlpAgentEndpoint.java:242)

                at hudson.remoting.Engine.connect(Engine.java:686)

                at hudson.remoting.Engine.innerRun(Engine.java:547)

                at hudson.remoting.Engine.run(Engine.java:469)

Caused by: java.net.ConnectException: Connection refused: connect

                at sun.nio.ch.Net.connect0(Native Method)

                at sun.nio.ch.Net.connect(Unknown Source)

                at sun.nio.ch.Net.connect(Unknown Source)

                at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)

                at java.nio.channels.SocketChannel.open(Unknown Source)

                at org.jenkinsci.remoting.engine.JnlpAgentEndpoint.open(JnlpAgentEndpoint.java:203)

                ... 3 more
Feb 26 in Jenkins by Vinay
• 120 points

edited Feb 27 by MD 356 views

1 answer to this question.

0 votes

Hi@vinay,

Caused by: java.net.ConnectException: Connection refused: connect

To avoid this error you may try the below steps.

  • Please check the firewall connection and try to ping each other.
  • check the remote root directory. It should contain agent.jar file. This agent.jar file will appear at the time of launching.

  • check jenkins Web UI is accessible or not from windows.

Hope these steps will solve your error.

Thank You

answered Feb 27 by MD
• 41,020 points
Firewall connectivity is good

even agent.jar file is present in remote root directory

able to browse jenkins web UI

We suspect port is not exposed in compose file. Now we need to fix this issue without making jenkins down

Are you able to browse jenkins Web UI from remote browser? 

Related Questions In Jenkins

0 votes
2 answers

Is possible for Jenkins to auto start and stop slave nodes?

Try Jenkins Plugin called as Slave SetupPlugin. This ...READ MORE

answered Aug 6, 2018 in Jenkins by Nilesh
• 6,970 points
2,207 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Jenkins slave slower than jenkins master

There's many possible reasons for that: different workspace locations (local ...READ MORE

answered Jul 19, 2018 in Jenkins by Kalgi
• 2,620 points
476 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
596 views
0 votes
1 answer
0 votes
1 answer

is there a way how to finish in-progress slave builds if Jenkins master goes offline

Hi@, You can assign your Jenkins Job to ...READ MORE

answered Jun 30 in Jenkins by MD
• 41,020 points
55 views