• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • remoting
    • Jenkins Master : Win 2008 R2 x 64
      Jenkins Slave : Win 2003 x86
      Tomcat web container , connecting to slave using JNLP

      Builds running on the slave hang at the initial pre checkout step
      10:42:10 Started by upstream project "Trunk_Master" build number 135
      10:42:10 originally caused by:
      10:42:10 Started by user Build Team
      10:42:10 Starting limited count build: 1
      10:42:10 [EnvInject] - Loading node environment variables.
      10:42:10 Building remotely on SlaveX in workspace C:\Hudson\workspace\Trunk_TS

      Jenkins logs show this error on the slave at the time it is hung.

      WARNING hudson.node_monitors.AbstractAsyncNodeMonitorDescriptor monitor

      Failed to monitor SlaveX for Free Swap Space
      java.util.concurrent.TimeoutException
      at hudson.remoting.Request$1.get(Request.java:275)
      at hudson.remoting.Request$1.get(Request.java:210)
      at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
      at hudson.node_monitors.AbstractAsyncNodeMonitorDescriptor.monitor(AbstractAsyncNodeMonitorDescriptor.java:97)
      at hudson.node_monitors.AbstractNodeMonitorDescriptor$Record.run(AbstractNodeMonitorDescriptor.java:282)

      Let me know if you need more details

      Thanks
      Shobha

          [JENKINS-20947] Failed to monitor for Free Swap Space

          Shobha Dashottar created issue -

          After aborting the build. The build fails with this error. So, it basically stuck at a post build step of copy artifacts

          Archiving artifacts
          11:29:55 ERROR: Failed to archive artifacts: Outputs**.
          11:29:55 hudson.util.IOException2: Failed to extract C:\Hudson\workspace\Trunk_TS/Outputs**.
          11:29:55 at hudson.FilePath.readFromTar(FilePath.java:2044)
          11:29:55 at hudson.FilePath.copyRecursiveTo(FilePath.java:1956)
          11:29:55 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:137)
          11:29:55 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          11:29:55 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
          11:29:55 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:754)
          11:29:55 at hudson.model.Build$BuildExecution.post2(Build.java:183)
          11:29:55 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:707)
          11:29:55 at hudson.model.Run.execute(Run.java:1628)
          11:29:55 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          11:29:55 at hudson.model.ResourceController.execute(ResourceController.java:88)
          11:29:55 at hudson.model.Executor.run(Executor.java:246)
          11:29:55 Caused by: java.io.IOException
          11:29:55 at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:175)
          11:29:55 at hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:61)
          11:29:55 at com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:175)
          11:29:55 at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106)
          11:29:55 at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257)
          11:29:55 at org.apache.tools.tar.TarBuffer.readRecord(TarBuffer.java:223)
          11:29:55 at hudson.org.apache.tools.tar.TarInputStream.getNextEntry(TarInputStream.java:228)
          11:29:55 at hudson.FilePath.readFromTar(FilePath.java:2022)

          Shobha Dashottar added a comment - After aborting the build. The build fails with this error. So, it basically stuck at a post build step of copy artifacts Archiving artifacts 11:29:55 ERROR: Failed to archive artifacts: Outputs* *. 11:29:55 hudson.util.IOException2: Failed to extract C:\Hudson\workspace\Trunk_TS/Outputs* *. 11:29:55 at hudson.FilePath.readFromTar(FilePath.java:2044) 11:29:55 at hudson.FilePath.copyRecursiveTo(FilePath.java:1956) 11:29:55 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:137) 11:29:55 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 11:29:55 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) 11:29:55 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:754) 11:29:55 at hudson.model.Build$BuildExecution.post2(Build.java:183) 11:29:55 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:707) 11:29:55 at hudson.model.Run.execute(Run.java:1628) 11:29:55 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 11:29:55 at hudson.model.ResourceController.execute(ResourceController.java:88) 11:29:55 at hudson.model.Executor.run(Executor.java:246) 11:29:55 Caused by: java.io.IOException 11:29:55 at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:175) 11:29:55 at hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:61) 11:29:55 at com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:175) 11:29:55 at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106) 11:29:55 at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257) 11:29:55 at org.apache.tools.tar.TarBuffer.readRecord(TarBuffer.java:223) 11:29:55 at hudson.org.apache.tools.tar.TarInputStream.getNextEntry(TarInputStream.java:228) 11:29:55 at hudson.FilePath.readFromTar(FilePath.java:2022)

          oblongzebra added a comment -

          I had the same problem after a server restart. I don't exactly know the cause, but I managed to solve it by stopping the service (on win) and removing the workspace and tools folder from the jenkins slave. After a restart of the slave everything seems to work again.

          oblongzebra added a comment - I had the same problem after a server restart. I don't exactly know the cause, but I managed to solve it by stopping the service (on win) and removing the workspace and tools folder from the jenkins slave. After a restart of the slave everything seems to work again.

          Mac Cer added a comment -

          I am experiencing something similar which I posted here:
          https://issues.jenkins-ci.org/browse/JENKINS-20986

          I also saw these "Failed to monitor <CHANNEL_NAME> for Free Swap Space" but since this was just category "Warning" I dismissed this.
          But in my case, the job also appears to hang at the "Archiving artifacts" stage and when I check the logs it says:

          "SEVERE: I/O error in channel <CHANNEL_NAME>
          java.io.IOException: Unexpected termination of the channel"

          It appears to terminate the channel when it should collect the artifacts. Via ssh my channel automatically reconnects but after that the job will still hang at the "Archiving artifacts" stage until I manually abort it.

          My older Jenkins install version 1.431 does not have this problem. There, the jobs can archive their artifact when using this exact slave. So I figure it must be a Jenkins problem itself rather than a slave problem. The slave works fine for an older jenkins install but a newer Jenkins install (version 1.509.4 LTS) has this problem.

          Mac Cer added a comment - I am experiencing something similar which I posted here: https://issues.jenkins-ci.org/browse/JENKINS-20986 I also saw these "Failed to monitor <CHANNEL_NAME> for Free Swap Space" but since this was just category "Warning" I dismissed this. But in my case, the job also appears to hang at the "Archiving artifacts" stage and when I check the logs it says: "SEVERE: I/O error in channel <CHANNEL_NAME> java.io.IOException: Unexpected termination of the channel" It appears to terminate the channel when it should collect the artifacts. Via ssh my channel automatically reconnects but after that the job will still hang at the "Archiving artifacts" stage until I manually abort it. My older Jenkins install version 1.431 does not have this problem. There, the jobs can archive their artifact when using this exact slave. So I figure it must be a Jenkins problem itself rather than a slave problem. The slave works fine for an older jenkins install but a newer Jenkins install (version 1.509.4 LTS) has this problem.

          I am running also massively into this issue rearding running VM's on demand which run slaves. More Information see attached PDF file 'MonitorFreeSwapSpace.pdf'

          Andreas Kuttruff added a comment - I am running also massively into this issue rearding running VM's on demand which run slaves. More Information see attached PDF file 'MonitorFreeSwapSpace.pdf'
          Andreas Kuttruff made changes -
          Attachment New: MonitorFreeSwapSpace.pdf [ 26042 ]
          Andreas Kuttruff made changes -
          Component/s New: master-slave [ 15489 ]

          For me this behaviour is critical because, the slave doesn't work anymore.

          Andreas Kuttruff added a comment - For me this behaviour is critical because, the slave doesn't work anymore.
          Andreas Kuttruff made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]

          Daniel Beck added a comment -

          Andreas: The warnings have almost surely nothing to do with your slave connection problems. Looks more like JENKINS-22932.

          Daniel Beck added a comment - Andreas: The warnings have almost surely nothing to do with your slave connection problems. Looks more like JENKINS-22932 .

            Unassigned Unassigned
            shobhad Shobha Dashottar
            Votes:
            12 Vote for this issue
            Watchers:
            23 Start watching this issue

              Created:
              Updated: