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

Getting IOException when Jenkins is trying to connect to Slaves in Azure Cloud

    Details

    • Similar Issues:

      Description

      While provisioning from jenkins master we are getting exception: AzureCloudException java.io.IOException: Agent failed to connect

      And below is the exception that we are getting :

      AzureCloudException

      java.io.IOException: Agent failed to connect, even though the launcher didn't report it. See the log output for details.
      at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:321)
      Caused: java.util.concurrent.ExecutionException
      at java.util.concurrent.FutureTask.report(FutureTask.java:122)
      at java.util.concurrent.FutureTask.get(FutureTask.java:192)
      at com.microsoft.azure.vmagent.AzureVMCloud$2.call(AzureVMCloud.java:856)
      Caused: com.microsoft.azure.vmagent.exceptions.AzureCloudException
      at com.microsoft.azure.vmagent.exceptions.AzureCloudException.create(AzureCloudException.java:54)
      at com.microsoft.azure.vmagent.exceptions.AzureCloudException.create(AzureCloudException.java:33)
      at com.microsoft.azure.vmagent.AzureVMCloud$2.call(AzureVMCloud.java:885)
      at com.microsoft.azure.vmagent.AzureVMCloud$2.call(AzureVMCloud.java:808)
      at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)

        Attachments

          Activity

          Hide
          jieshe Jie Shen added a comment -

          It seems to be a common remoting issue in Jenkins. Refer to https://wiki.jenkins.io/display/JENKINS/Remoting+issue .

          Show
          jieshe Jie Shen added a comment - It seems to be a common remoting issue in Jenkins. Refer to  https://wiki.jenkins.io/display/JENKINS/Remoting+issue  .
          Hide
          adugar anil dugar added a comment -

          Attaching jenkins system logs for your reference

          Show
          adugar anil dugar added a comment - Attaching jenkins system logs for your reference
          Hide
          jieshe Jie Shen added a comment -

          According to the log, it seems to be caused by firewall or something like that. Do you have ever tried other windows images, such as the default one?

          Show
          jieshe Jie Shen added a comment - According to the log, it seems to be caused by firewall or something like that. Do you have ever tried other windows images, such as the default one?
          Hide
          adugar anil dugar added a comment -

          Sometimes the jobs fail and sometimes they succeed, which means the issue is reported intermittently, so i dont think firewall would be an issue. and if at firewall would be causing the problem, the jobs should fail everytime which is not the case.

          Show
          adugar anil dugar added a comment - Sometimes the jobs fail and sometimes they succeed, which means the issue is reported intermittently, so i dont think firewall would be an issue. and if at firewall would be causing the problem, the jobs should fail everytime which is not the case.
          Hide
          jieshe Jie Shen added a comment -

          anil dugar Temporarily the logic for SSH launch will only try once. If it fails to connect, it will directly throw exceptions like what you get. So have you tried the JNLP launch method? And I will check whether retry logic will make things better for SSH.

          Show
          jieshe Jie Shen added a comment - anil dugar  Temporarily the logic for SSH launch will only try once. If it fails to connect, it will directly throw exceptions like what you get. So have you tried the JNLP launch method? And I will check whether retry logic will make things better for SSH.
          Hide
          jieshe Jie Shen added a comment -

          Version 1.4.0 has been released with the SSH connect retry feature.

          Show
          jieshe Jie Shen added a comment - Version 1.4.0 has been released with the SSH connect retry feature.
          Hide
          adugar anil dugar added a comment -

          Thanks Jie, we are also working on an optimistic solution of having a retry logic, hopefully that will work and also we will have a loot at the above mentioned feature.

          Show
          adugar anil dugar added a comment - Thanks Jie, we are also working on an optimistic solution of having a retry logic, hopefully that will work and also we will have a loot at the above mentioned feature.

            People

            • Assignee:
              jieshe Jie Shen
              Reporter:
              adugar anil dugar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: