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

Slaves hang when archiving artifacts

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Cannot Reproduce
    • ssh-slaves-plugin
    • None
    • Ubuntu Server 10.04 64-bit

    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

            kavehv Kaveh Vaghefi added a comment -

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

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

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

            wgracelee wgracelee added a comment - It's true for us for jenkins 2.63 on CentOS 5 64b.

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

             

             

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

            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.

            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.

            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

            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

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

              Dates

                Created:
                Updated:
                Resolved: