Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-58474

Port not reachable while creating a slave agent in windows for a linux master

    Details

    • Similar Issues:

      Description

      I have configured a master jenkins in Linux environment(centos 7 server) and I am trying to create a Windows 10 slave agent. When I try using "Launch agent by connecting it to the master" option and running the command javaws in windows command prompt, I get the following error.

      java.io.IOException:http://localhost:8080/ provided port:37583 is not reachable

      at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:287)

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

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

       

       

        Attachments

          Activity

          Hide
          gmalmeida gabriel almeida added a comment -

          I am facing exactly the same issue!

           

          Show
          gmalmeida gabriel almeida added a comment - I am facing exactly the same issue!  
          Hide
          alpanshin Alexandr Panshin added a comment -

          Have the same problem.
          If I try connect the same agent to another Jenkins server on Windows 10, everything works.
          Both servers have same version of Jenkins (2.190.1), approximately same set of plugins.
          Even tried to use static port and explicitly whitelist it on CentOS, did not help.

          Show
          alpanshin Alexandr Panshin added a comment - Have the same problem. If I try connect the same agent to another Jenkins server on Windows 10, everything works. Both servers have same version of Jenkins (2.190.1), approximately same set of plugins. Even tried to use static port and explicitly whitelist it on CentOS, did not help.
          Hide
          reuk Reuben Thomas added a comment -

          I'm seeing this too. The Windows 10 1903 agent is able to connect to a macOS server without problems, but fails to connect to a Fedora server.

           

          Show
          reuk Reuben Thomas added a comment - I'm seeing this too. The Windows 10 1903 agent is able to connect to a macOS server without problems, but fails to connect to a Fedora server.  
          Hide
          blueberry_wurst Cristian M added a comment - - edited

          Managed to dodge this one. You just need to login to the centos server and add a firewall rule for that port:

          firewall-cmd --permanent --add-port=37583/tcp

          firewall-cmd --reload

           

          Show
          blueberry_wurst Cristian M added a comment - - edited Managed to dodge this one. You just need to login to the centos server and add a firewall rule for that port: firewall-cmd --permanent --add-port=37583/tcp firewall-cmd --reload  
          Hide
          sweavo Steve Carter added a comment -

          I have a similar message. My issue was that the host of the jenkins URL on master did not resolve.  

          Show
          sweavo Steve Carter added a comment - I have a similar message. My issue was that the host of the jenkins URL on master did not resolve.  

            People

            • Assignee:
              khmarbaise Karl-Heinz Marbaise
              Reporter:
              nvenkat Niranjani Venkatesan
            • Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: