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

CopyArtifact plugin triggers intermittent remoting failures

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • copyartifact-plugin, core
    • None
    • Linux (RHEL 5.5), Hudson 1.380, Copy Artifact 1.10

      We are using the CopyArtifact plugin to distribute a ~7MB tar.gz file from a single polling job to several downstream build/test jobs. Since Hudson 1.377, copying the artifact to the build/test job randomly throws one of two exceptions (the first is reported in JENKINS-7581):

      ERROR: Failed to copy artifacts from job-poll with filter: workspace.tar.gz
      hudson.util.IOException2: hudson.util.IOException2: Not in GZIP format
      stream=7c9e6f6bf0e618[...snip...]
      	at hudson.FilePath.copyRecursiveTo(FilePath.java:1474)
      	at hudson.FilePath.copyRecursiveTo(FilePath.java:1399)
      	[...snip...]
      

      and the following (new in 1.380):

      Deleting old artifacts from #21
      FATAL: null
      java.lang.AssertionError
      	at hudson.remoting.PipeWindow$Real.decrease(PipeWindow.java:160)
      	at hudson.remoting.ProxyOutputStream._write(ProxyOutputStream.java:124)
      	at hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:103)
      	at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
      	at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109)
      	at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:161)
      	at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:118)
      	at java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:72)
      	at java.io.BufferedOutputStream.write(BufferedOutputStream.java:105)
      	at org.apache.tools.tar.TarBuffer.writeBlock(TarBuffer.java:410)
      	at org.apache.tools.tar.TarBuffer.writeRecord(TarBuffer.java:388)
      	at hudson.org.apache.tools.tar.TarOutputStream.write(TarOutputStream.java:337)
      	at hudson.util.io.TarArchiver.visit(TarArchiver.java:103)
      	at hudson.util.DirScanner$Glob.scan(DirScanner.java:104)
      	at hudson.FilePath.writeToTar(FilePath.java:1543)
      	at hudson.FilePath.copyRecursiveTo(FilePath.java:1470)
      	at hudson.FilePath.copyRecursiveTo(FilePath.java:1399)
      	at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:172)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
      	at hudson.model.Build$RunnerImpl.build(Build.java:174)
      	at hudson.model.Build$RunnerImpl.doRun(Build.java:138)
      	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
      	at hudson.model.Run.run(Run.java:1280)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:140)
      

      These exceptions appear to occur randomly, and happen approximately 50% of the time.

            kohsuke Kohsuke Kawaguchi
            jsiirola jsiirola
            Votes:
            53 Vote for this issue
            Watchers:
            47 Start watching this issue

              Created:
              Updated:
              Resolved: