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

Swarm Client: failed: Connection refused (Connection refused)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • swarm-plugin
    • None
    • Jenkins ver. 2.255
      Self-Organizing Swarm Plug-in Modules 3.23
      swarm-client-3.23.jar

      swarm-client-3.21.jar had no problem, but after upgrading to 3.22 or 3.23, a connection error occurred.

      I think it's strange that the Swarm Client is trying to access port 443 when the master url is http instead of https

       

      Sep 08, 2020 11:52:11 AM hudson.plugins.swarm.Client logArguments
      INFO: Client invoked with: -deleteExistingClients true -description jenkins-slave-9.XXXXX.internal -disableClientsUniqueId true -executors 1 -fsroot /var/lib/jenkins -labels [CentOS7] -master http://jenkins-master.XXXXX.internal/jenkins-dev/ -name slave-9 -password ***** -username *****
      Sep 08, 2020 11:52:11 AM hudson.plugins.swarm.Client run
      INFO: Connecting to Jenkins master
      Sep 08, 2020 11:52:11 AM hudson.plugins.swarm.Client run
      INFO: Attempting to connect to http://jenkins-master.XXXXX.internal/jenkins-dev/
      Sep 08, 2020 11:52:12 AM hudson.plugins.swarm.Client run
      SEVERE: An error occurred
      shaded.org.apache.http.conn.HttpHostConnectException: Connect to jenkins-master.XXXXX.internal:443 [jenkins-master.XXXXX.internal/10.1.192.25] failed: Connection refused (Connection refused)
              at shaded.org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:156)
              at shaded.org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)
              at shaded.org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
              at shaded.org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
              at shaded.org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
              at shaded.org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
              at shaded.org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
              at shaded.org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
              at shaded.org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
              at hudson.plugins.swarm.SwarmClient.getJenkinsVersion(SwarmClient.java:552)
              at hudson.plugins.swarm.SwarmClient.createSwarmAgent(SwarmClient.java:341)
              at hudson.plugins.swarm.Client.run(Client.java:169)
              at hudson.plugins.swarm.Client.main(Client.java:52)
      Caused by: java.net.ConnectException: Connection refused (Connection refused)
              at java.net.PlainSocketImpl.socketConnect(Native Method)
              at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
              at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
              at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
              at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
              at java.net.Socket.connect(Socket.java:589)
              at shaded.org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:368)
              at shaded.org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
              ... 12 more
      

       

       

            Unassigned Unassigned
            ohzaki Hiroki OHZAKI
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: