[JIRA] (JENKINS-55689) Not able to connect to jenkins master from windows slave

Visto 4 veces
Saltar al primer mensaje no leído

mohit.saraf@ampf.com (JIRA)

no leída,
18 ene 2019, 16:51:0218/1/19
a jenkinsc...@googlegroups.com
Mohit Saraf created an issue
 
Jenkins / Bug JENKINS-55689
Not able to connect to jenkins master from windows slave
Issue Type: Bug Bug
Assignee: Emilio Escobar
Components: windows-slaves-plugin
Created: 2019-01-18 21:50
Environment: Jenkins Version: 2.150.1
Master is running in Docker Container in DC/OS (Mesos) environment.
web browser: chrome
Priority: Critical Critical
Reporter: Mohit Saraf

Hi Team,

we are running jenkins master as docker container in DC/OS environment.  we have two ports available for setting up the configuration. 

container port 8080 is mapped to service port 29XXXfor jenkins.

container port 50000 is mapped to service port  29XXX for jenkins-agent.

I have configured the jenkins-agent port in manage Jenkins->Global Security->TCP port for JNLP agents. and also tried to give the default port and multiple random ports but while running the agent i get the error as port is not reachable.

SEVERE: https://develop.qa.ampf.com/jenkins/ provided port:41172 is not reachable
java.io.IOException: https://develop.qa.ampf.com/jenkins/ provided port:41172 is not reachable
at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:286)
at hudson.remoting.Engine.innerRun(Engine.java:523)
at hudson.remoting.Engine.run(Engine.java:474)
Suppressed: java.io.IOException: http://develop.qa.ampf.com/jenkins/tcpSlaveAgentListener/ is invalid: 302 Found
at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:201)
... 2 more

 

Any suggestions would be really helpful

 

 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

mohit.saraf@ampf.com (JIRA)

no leída,
18 ene 2019, 16:54:0218/1/19
a jenkinsc...@googlegroups.com
Mohit Saraf updated an issue
Change By: Mohit Saraf
Attachment: jenkins-error.PNG

mohit.saraf@ampf.com (JIRA)

no leída,
19 ene 2019, 2:14:0219/1/19
a jenkinsc...@googlegroups.com

mohit.saraf@ampf.com (JIRA)

no leída,
19 ene 2019, 9:06:0219/1/19
a jenkinsc...@googlegroups.com

mohit.saraf@ampf.com (JIRA)

no leída,
19 ene 2019, 9:07:0219/1/19
a jenkinsc...@googlegroups.com
Mohit Saraf updated an issue
Hi Team,

we are running jenkins master as docker container in DC/OS
(mesos) environment.  we have two ports available for setting up the configuration. 


container port 8080 is mapped to service port 29XXXfor jenkins.

container port 50000 is mapped to service port  29XXX for jenkins-agent.

I have configured the jenkins-agent port in manage _Jenkins->Global Security->TCP port for JNLP agents_. and also tried to give the default port and multiple random ports but while running the agent i get the error as port is not reachable.

SEVERE:
[ https://develop.qa.ampf.com/jenkins/ ] provided port:41172 is not reachable
java.io.IOException:
[ https://develop.qa.ampf.com/jenkins/ ] provided port:41172 is not reachable

at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:286)
at hudson.remoting.Engine.innerRun(Engine.java:523)
at hudson.remoting.Engine.run(Engine.java:474)
Suppressed: java.io.IOException:

at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:201)
... 2 more

 

Any suggestions would be really helpful Do i need to mention anything in the tunnel part?

 

Thanks,

Mohit Saraf

 

 


 

mohit.saraf@ampf.com (JIRA)

no leída,
20 ene 2019, 1:31:0120/1/19
a jenkinsc...@googlegroups.com
 
Re: Not able to connect to jenkins master from windows slave

Can anyone suggest some solution. it is little urgent and need to be implemented asap.

mohit.saraf@ampf.com (JIRA)

no leída,
20 ene 2019, 1:39:0220/1/19
a jenkinsc...@googlegroups.com
Mohit Saraf updated an issue
Change By: Mohit Saraf
Comment:
Can anyone suggest some solution. it is little urgent and need to be implemented asap.

mohit.saraf@ampf.com (JIRA)

no leída,
20 ene 2019, 1:40:0120/1/19
a jenkinsc...@googlegroups.com
 
Re: Not able to connect to jenkins master from windows slave

Hi,

Please advise if i need to change anything in the configuration

escoem@gmail.com (JIRA)

no leída,
21 ene 2019, 3:46:0321/1/19
a jenkinsc...@googlegroups.com

hello Mohit, probably adding the tunnel with ":41172" might be enough. Anyway, this is not a windows-slaves-plugin issue but a question to ask at Jenkins users mailing list.

escoem@gmail.com (JIRA)

no leída,
21 ene 2019, 3:47:0221/1/19
a jenkinsc...@googlegroups.com
Emilio Escobar closed an issue as Not A Defect
 
Change By: Emilio Escobar
Status: Open Closed
Resolution: Not A Defect

punith.shetty88@gmail.com (JIRA)

no leída,
26 ago 2019, 13:43:0326/8/19
a jenkinsc...@googlegroups.com
Punith Shetty reopened an issue
Change By: Punith Shetty
Resolution: Not A Defect
Status: Closed Reopened

punith.shetty88@gmail.com (JIRA)

no leída,
26 ago 2019, 13:43:0326/8/19
a jenkinsc...@googlegroups.com
Punith Shetty commented on Bug JENKINS-55689
 
Re: Not able to connect to jenkins master from windows slave

Hi, Is there a resolution for this issue ?

I am seeing the same error for my servers

 

INFO: Setting up agent: windows_agent
Aug 26, 2019 1:10:22 PM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Jenkins agent is running in headless mode.
Aug 26, 2019 1:10:22 PM hudson.remoting.Engine startEngine
INFO: Using Remoting version: 3.25
Aug 26, 2019 1:10:22 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
INFO: Using F:\win_jenkins\remoting as a remoting work directory
Aug 26, 2019 1:10:22 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among https://myserver/
Aug 26, 2019 1:10:22 PM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping, Diagnostic-Ping, OperationsCenter2]
Aug 26, 2019 1:10:23 PM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver isPortVisible
WARNING: Connection refused: connect
Aug 26, 2019 1:10:23 PM hudson.remoting.jnlp.Main$CuiListener error
SEVERE: https://myserver/ provided port:46080 is not reachable
java.io.IOException: https://myserver/ provided port:46080 is not reachable


at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:286)
at hudson.remoting.Engine.innerRun(Engine.java:523)
at hudson.remoting.Engine.run(Engine.java:474)

punith.shetty88@gmail.com (JIRA)

no leída,
27 ago 2019, 16:59:0227/8/19
a jenkinsc...@googlegroups.com
Punith Shetty assigned an issue to Jeff Thompson
 
Change By: Punith Shetty
Assignee: Emilio  Escobar Jeff Thompson

jthompson@cloudbees.com (JIRA)

no leída,
28 ago 2019, 10:53:0228/8/19
a jenkinsc...@googlegroups.com
Jeff Thompson closed an issue as Incomplete
Change By: Jeff Thompson
Status: Reopened Closed
Resolution: Incomplete

jthompson@cloudbees.com (JIRA)

no leída,
28 ago 2019, 10:53:0228/8/19
a jenkinsc...@googlegroups.com
Jeff Thompson commented on Bug JENKINS-55689
 
Re: Not able to connect to jenkins master from windows slave

Have you asked on the Jenkins users email list as suggested? Or the gitter channel? This looks like a usage or configuration question and not a specific defect.

punith.shetty88@gmail.com (JIRA)

no leída,
29 ago 2019, 11:12:0329/8/19
a jenkinsc...@googlegroups.com

Thanks i was able to get this working, the issue was the nodeport. TCP traffic is only served on nodeport on openshift/kubernetes platform.

punith.shetty88@gmail.com (JIRA)

no leída,
29 ago 2019, 11:13:0229/8/19
a jenkinsc...@googlegroups.com
Punith Shetty edited a comment on Bug JENKINS-55689
Thanks i was able to get this working, the issue was the nodeport. TCP traffic is only served on nodeport on openshift/kubernetes platform. Once i got the nodeport opened on the platform and created a tunnel for it to route traffic to the slave agent port on jenkins, i was able to make the connection.

jthompson@cloudbees.com (JIRA)

no leída,
29 ago 2019, 12:14:0229/8/19
a jenkinsc...@googlegroups.com

Punith Shetty, thanks for responding with your success and describing the solution that worked for you. That helps others who might encounter a similar problem.

Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos