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

java.io.IOException: Exception archiving {...list of files...}

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: pipeline-maven-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.89.4
      pipeline-maven-plugin 3.5.9
    • Similar Issues:

      Description

      23:11:56 ERROR: [withMaven] WARNING Exception executing Maven reporter 'Generated Artifacts Publisher' / org.jenkinsci.plugins.pipeline.maven.publishers.GeneratedArtifactsPublisher. Please report a bug associated for the component 'pipeline-maven-plugin' at [https://issues.jenkins-ci.org|https://issues.jenkins-ci.org/]
      23:11:56 java.io.IOException: Exception archiving \{...removed list of files...}
      23:11:56    at org.jenkinsci.plugins.pipeline.maven.publishers.GeneratedArtifactsPublisher.process(GeneratedArtifactsPublisher.java:122)
      23:11:56    at org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.processMavenSpyLogs(MavenSpyLogProcessor.java:118)
      23:11:56    at org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution$WithMavenStepExecutionCallBack.finished(WithMavenStepExecution.java:1050)
      23:11:56    at org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onSuccess(BodyExecutionCallback.java:114)
      23:11:56    at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessAdapter.receive(CpsBodyExecution.java:366)
      23:11:56    at com.cloudbees.groovy.cps.Outcome.resumeFrom(Outcome.java:73)
      23:11:56    at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:166)
      23:11:56    at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
      23:11:56    at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:122)
      23:11:56    at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:261)
      23:11:56    at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
      23:11:56    at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$101(SandboxContinuable.java:34)
      23:11:56    at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.lambda$run0$0(SandboxContinuable.java:59)
      23:11:56    at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
      23:11:56    at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:58)
      23:11:56    at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:174)
      23:11:56    at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:332)
      23:11:56    at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$200(CpsThreadGroup.java:83)
      23:11:56    at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:244)
      23:11:56    at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:232)
      23:11:56    at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
      23:11:56    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      23:11:56    at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
      23:11:56    at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      23:11:56    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      23:11:56    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      23:11:56    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      23:11:56    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      23:11:56    at java.lang.Thread.run(Thread.java:748)
      23:11:56 Caused by: java.io.IOException: Failed to extract c:\jenkins\workspace\build-stealth40/transfer of 4 files
      23:11:56    at hudson.FilePath.readFromTar(FilePath.java:2317)
      23:11:56    at hudson.FilePath.copyRecursiveTo(FilePath.java:2221)
      23:11:56    at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
      23:11:56    at org.jenkinsci.plugins.pipeline.maven.publishers.GeneratedArtifactsPublisher.process(GeneratedArtifactsPublisher.java:120)
      23:11:56    ... 28 more
      23:11:56    Suppressed: java.util.concurrent.ExecutionException: java.io.IOException: This archives contains unclosed entries.
      23:11:56      at hudson.remoting.Channel$2.adapt(Channel.java:946)
      23:11:56      at hudson.remoting.Channel$2.adapt(Channel.java:941)
      23:11:56      at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
      23:11:56      at hudson.FilePath.copyRecursiveTo(FilePath.java:2224)
      23:11:56      ... 30 more
      23:11:56    Caused by: java.io.IOException: This archives contains unclosed entries.
      23:11:56      at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.finish(TarArchiveOutputStream.java:225)
      23:11:56      at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.close(TarArchiveOutputStream.java:241)
      23:11:56      at hudson.util.io.TarArchiver.close(TarArchiver.java:127)
      23:11:56      at hudson.FilePath.writeToTar(FilePath.java:2281)
      23:11:56      at hudson.FilePath.access$2100(FilePath.java:196)
      23:11:56      at hudson.FilePath$45.invoke(FilePath.java:2216)
      23:11:56      at hudson.FilePath$45.invoke(FilePath.java:2212)
      23:11:56      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2760)
      23:11:56      at hudson.remoting.UserRequest.perform(UserRequest.java:152)
      23:11:56      at hudson.remoting.UserRequest.perform(UserRequest.java:50)
      23:11:56      at hudson.remoting.Request$2.run(Request.java:332)
      23:11:56      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      23:11:56      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      23:11:56      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      23:11:56      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      23:11:56      at hudson.remoting.Engine$1$1.run(Engine.java:85)
      23:11:56      at java.lang.Thread.run(Thread.java:745)
      23:11:56      Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to Channel to /10.62.149.152
      23:11:56         at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1693)
      23:11:56         at hudson.remoting.UserResponse.retrieve(UserRequest.java:310)
      23:11:56         at hudson.remoting.Channel$2.adapt(Channel.java:944)
      23:11:56         at hudson.remoting.Channel$2.adapt(Channel.java:941)
      23:11:56         at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
      23:11:56         at hudson.FilePath.copyRecursiveTo(FilePath.java:2224)
      23:11:56         at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
      23:11:56         at org.jenkinsci.plugins.pipeline.maven.publishers.GeneratedArtifactsPublisher.process(GeneratedArtifactsPublisher.java:120)
      23:11:56         at org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.processMavenSpyLogs(MavenSpyLogProcessor.java:118)
      23:11:56         at org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution$WithMavenStepExecutionCallBack.finished(WithMavenStepExecution.java:1050)
      23:11:56         at org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onSuccess(BodyExecutionCallback.java:114)
      23:11:56         at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessAdapter.receive(CpsBodyExecution.java:366)
      23:11:56         at com.cloudbees.groovy.cps.Outcome.resumeFrom(Outcome.java:73)
      23:11:56       at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:166)
      23:11:56         at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
      23:11:56         at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:122)
      23:11:56         at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:261)
      23:11:56         at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
      23:11:56         at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$101(SandboxContinuable.java:34)
      23:11:56         at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.lambda$run0$0(SandboxContinuable.java:59)
      23:11:56         at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
      23:11:56         at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:58)
      23:11:56         at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:174)
      23:11:56         at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:332)
      23:11:56         at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$200(CpsThreadGroup.java:83)
      23:11:56         at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:244)
      23:11:56         at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:232)
      23:11:56         at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
      23:11:56         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      23:11:56         at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
      23:11:56         at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      23:11:56         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      23:11:56         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      23:11:56         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      23:11:56         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      23:11:56         at java.lang.Thread.run(Thread.java:748)
      23:11:56 Caused by: java.io.IOException: java.lang.InterruptedException
      23:11:56    at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:177)
      23:11:56    at hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:61)
      23:11:56    at com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:175)
      23:11:56    at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106)
      23:11:56    at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:614)
      23:11:56    at java.io.InputStream.read(InputStream.java:101)
      23:11:56    at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792)
      23:11:56    at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769)
      23:11:56    at org.apache.commons.io.IOUtils.copy(IOUtils.java:1744)
      23:11:56    at hudson.util.IOUtils.copy(IOUtils.java:40)
      23:11:56    at hudson.FilePath.readFromTar(FilePath.java:2307)
      23:11:56    ... 31 more
      23:11:56 Caused by: java.lang.InterruptedException
      23:11:56    at java.lang.Object.wait(Native Method)
      23:11:56    at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:175)
      23:11:56    ... 41 more
      

        Attachments

          Activity

          Hide
          cleclerc Cyrille Le Clerc added a comment -

          Hello Robert Baker

          You run on a quite old version of Jenkins, 2.89 - 2018-02-14, coudl you upgrade to a more recent version and see if the problem is still there?

          Moreover, can you please give us details on the build environment and on the pipeline that causes the error:

          • Flavour of the build agent: it's a Windows agent, do you have more details? Do you have an antivirus running that could cause problems while compressing the generated artifact?
          • Size and type of the generated Maven artifacts
          • Sample of the pipeline code / Jenkinsfile
          Show
          cleclerc Cyrille Le Clerc added a comment - Hello Robert Baker You run on a quite old version of Jenkins, 2.89 - 2018-02-14, coudl you upgrade to a more recent version and see if the problem is still there? Moreover, can you please give us details on the build environment and on the pipeline that causes the error: Flavour of the build agent: it's a Windows agent, do you have more details? Do you have an antivirus running that could cause problems while compressing the generated artifact? Size and type of the generated Maven artifacts Sample of the pipeline code / Jenkinsfile

            People

            • Assignee:
              cleclerc Cyrille Le Clerc
              Reporter:
              rsbaker56 Robert Baker
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: