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

Slaves hang when archiving artifacts

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Component/s: ssh-slaves-plugin
    • Labels:
      None
    • Environment:
      Ubuntu Server 10.04 64-bit
    • Similar Issues:

      Description

      I don't know why this happens, but my slaves have begun to hang when they get to the Archiving Artifacts portion of my job:

      Archiving artifacts
      ERROR: Failed to archive artifacts: dist/**
      hudson.util.IOException2: Failed to extract /mnt/hudsonslave/workspace/simplegeo-puppet-manifests/dist/**
      	at hudson.FilePath.readFromTar(FilePath.java:1577)
      	at hudson.FilePath.copyRecursiveTo(FilePath.java:1491)
      	at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:117)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
      	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
      	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558)
      	at hudson.model.Build$RunnerImpl.post2(Build.java:157)
      	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
      	at hudson.model.Run.run(Run.java:1303)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:137)
      Caused by: java.io.IOException
      	at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:173)
      	at hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:61)
      	at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:221)
      	at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141)
      	at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:92)
      	at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257)
      	at org.apache.tools.tar.TarBuffer.readRecord(TarBuffer.java:223)
      	at hudson.org.apache.tools.tar.TarInputStream.read(TarInputStream.java:345)
      	at java.io.FilterInputStream.read(FilterInputStream.java:90)
      	at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1025)
      	at org.apache.commons.io.IOUtils.copy(IOUtils.java:999)
      	at hudson.util.IOUtils.copy(IOUtils.java:33)
      	at hudson.FilePath.readFromTar(FilePath.java:1565)
      	... 12 more
      

      I aborted this job, so I don't know if the error is related or not. The job runs fine, but it hangs during archiving. If I restart the connection to the node (in /computer/; not restarting Hudson or the node itself), jobs will build successfully again for a while.

        Attachments

          Issue Links

            Activity

            Hide
            kavehv Kaveh Vaghefi added a comment -

            This still happens for us in jenkins 2.21 with a number of Ubuntu 14.04 slaves.

            Show
            kavehv Kaveh Vaghefi added a comment - This still happens for us in jenkins 2.21 with a number of Ubuntu 14.04 slaves.
            Hide
            wgracelee wgracelee added a comment -

            It's true for us for jenkins 2.63 on CentOS 5 64b.

            Show
            wgracelee wgracelee added a comment - It's true for us for jenkins 2.63 on CentOS 5 64b.
            Hide
            denniswjackson Dennis Jackson added a comment -

            I'm seeing this on Jenkins ver. 2.46.2 on Windows 10.

             

             

            Show
            denniswjackson Dennis Jackson added a comment - I'm seeing this on Jenkins ver. 2.46.2 on Windows 10.    
            Hide
            denniswjackson Dennis Jackson added a comment -

            Another interesting data point: when the archive step hangs, jenkins does not honor the build timeout parameter:  Abort the build if it's stuck was set to 25 minutes and the build sat there for an hour and 20 minutes.

            Show
            denniswjackson Dennis Jackson added a comment - Another interesting data point: when the archive step hangs, jenkins does not honor the build timeout parameter:  Abort the build if it's stuck  was set to 25 minutes and the build sat there for an hour and 20 minutes.
            Hide
            ifernandezcalvo Ivan Fernandez Calvo added a comment -

            Could someone try to use the new option to disable the TCP_NODELAY (1.28)? it will use a buffered connection that will improve the data transfer on large files transfer.

            see https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/doc/CONFIGURE.md#advanced-settings

            Show
            ifernandezcalvo Ivan Fernandez Calvo added a comment - Could someone try to use the new option to disable the TCP_NODELAY (1.28)? it will use a buffered connection that will improve the data transfer on large files transfer. see https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/doc/CONFIGURE.md#advanced-settings

              People

              • Assignee:
                ifernandezcalvo Ivan Fernandez Calvo
                Reporter:
                ieure ieure
              • Votes:
                49 Vote for this issue
                Watchers:
                57 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: