java.io.IOException: Failed to extract D:\dev\Jenkins\workspace\jst-tst/report*.html,log*.html,log*.js

Jenkins JIRA | Joachim Sturm | 2 years ago
  1. 0

    Hello, I currently encounter the following error when using the robot framework plugin to publish our test results on jenkins. This error does not always appear, but in about 7 times out of 10. In the other 3 cases, the result is published correctly. I see this exact behavior on three different Windows 7 test machines. The generated .xml and .html files appear to be ok. Is there any possibility getting around that problem? Output: D:\dev\Jenkins\workspace\jst-tst\output.xml Log: D:\dev\Jenkins\workspace\jst-tst\log.html Report: D:\dev\Jenkins\workspace\jst-tst\report.html Robot results publisher started... -Parsing output xml: Done! -Copying log files to build dir: Failed! java.io.IOException: Failed to extract D:\dev\Jenkins\workspace\jst-tst/report*.html,log*.html,log*.js at hudson.FilePath.readFromTar(FilePath.java:2299) at hudson.FilePath.copyRecursiveTo(FilePath.java:2208) at hudson.FilePath.copyRecursiveTo(FilePath.java:2112) at hudson.FilePath.copyRecursiveTo(FilePath.java:2095) at hudson.plugins.robot.RobotPublisher.copyFilesToBuildDir(RobotPublisher.java:297) at hudson.plugins.robot.RobotPublisher.perform(RobotPublisher.java:247) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Caused by: java.io.IOException: Truncated TAR archive at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:614) at java.io.InputStream.read(InputStream.java:101) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769) at org.apache.commons.io.IOUtils.copy(IOUtils.java:1744) at hudson.util.IOUtils.copy(IOUtils.java:40) at hudson.FilePath.readFromTar(FilePath.java:2289) ... 14 more Build step 'Publish Robot Framework test results' changed build result to FAILURE Finished: FAILURE

    Jenkins JIRA | 2 years ago | Joachim Sturm
    java.io.IOException: Failed to extract D:\dev\Jenkins\workspace\jst-tst/report*.html,log*.html,log*.js
  2. 0

    Hello, I currently encounter the following error when using the robot framework plugin to publish our test results on jenkins. This error does not always appear, but in about 7 times out of 10. In the other 3 cases, the result is published correctly. I see this exact behavior on three different Windows 7 test machines. The generated .xml and .html files appear to be ok. Is there any possibility getting around that problem? Output: D:\dev\Jenkins\workspace\jst-tst\output.xml Log: D:\dev\Jenkins\workspace\jst-tst\log.html Report: D:\dev\Jenkins\workspace\jst-tst\report.html Robot results publisher started... -Parsing output xml: Done! -Copying log files to build dir: Failed! java.io.IOException: Failed to extract D:\dev\Jenkins\workspace\jst-tst/report*.html,log*.html,log*.js at hudson.FilePath.readFromTar(FilePath.java:2299) at hudson.FilePath.copyRecursiveTo(FilePath.java:2208) at hudson.FilePath.copyRecursiveTo(FilePath.java:2112) at hudson.FilePath.copyRecursiveTo(FilePath.java:2095) at hudson.plugins.robot.RobotPublisher.copyFilesToBuildDir(RobotPublisher.java:297) at hudson.plugins.robot.RobotPublisher.perform(RobotPublisher.java:247) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Caused by: java.io.IOException: Truncated TAR archive at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:614) at java.io.InputStream.read(InputStream.java:101) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769) at org.apache.commons.io.IOUtils.copy(IOUtils.java:1744) at hudson.util.IOUtils.copy(IOUtils.java:40) at hudson.FilePath.readFromTar(FilePath.java:2289) ... 14 more Build step 'Publish Robot Framework test results' changed build result to FAILURE Finished: FAILURE

    Jenkins JIRA | 2 years ago | Joachim Sturm
    java.io.IOException: Failed to extract D:\dev\Jenkins\workspace\jst-tst/report*.html,log*.html,log*.js
  3. 0

    HTML Publisher Plugin - Jenkins - Jenkins Wiki

    jenkins-ci.org | 5 days ago
    java.io.IOException: Failed to extract /var/lib/jenkins-remote-root/workspace/dashboard-gerrit/platoReport/**/*
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JENKINS-28013] Archiving artifiacts fails with java.io.IOException: Truncated TAR archive - Jenkins JIRA

    jenkins-ci.org | 4 months ago
    java.io.IOException: Failed to extract /srv/user_name/.jenkins/workspace/SomeProject/distro/sles11_64/servertype/build/transfer of 4 files
  6. 0

    When running a jenkins maven job with Jenkins 1610 it suddenly fails with {{ERROR: Failed to parse POMs}} This has occurred to us three different jobs. Stack traces are as follows: {code} [JENKINS] Archiving /home/jenkins/workspace/wimbledon-branches/wimbledon-persistence/target/wimbledon-persistence-3.0-SNAPSHOT.jar to de.wolterskluwer.cms.wimbledon/wimbledon-persistence/3.0-SNAPSHOT/wimbledon-persistence-3.0-SNAPSHOT.jar ERROR: Failed to parse POMs java.io.IOException: Failed to extract /home/jenkins/workspace/wimbledon-branches/wimbledon-persistence/transfer of 2 files at hudson.FilePath.readFromTar(FilePath.java:2299) at hudson.FilePath.copyRecursiveTo(FilePath.java:2208) at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) at hudson.maven.MavenBuild$ProxyImpl.performArchiving(MavenBuild.java:483) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:851) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1741) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Caused by: java.io.IOException: Truncated TAR archive at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:614) at java.io.InputStream.read(InputStream.java:82) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769) at org.apache.commons.io.IOUtils.copy(IOUtils.java:1744) at hudson.util.IOUtils.copy(IOUtils.java:40) at hudson.FilePath.readFromTar(FilePath.java:2289) ... 9 more channel stopped [JENKINS] Archiving /home/jenkins/workspace/metade-wkde2pci/target/wkde2pci.zip to com.wolterskluwer.services.configurations.conversion/wkde2pci/2.0-20150420.064736-13/wkde2pci-2.0-20150420.064736-13.zip ERROR: Failed to parse POMs java.io.IOException: Failed to extract /home/jenkins/workspace/metade-wkde2pci/transfer of 3 files at hudson.FilePath.readFromTar(FilePath.java:2299) at hudson.FilePath.copyRecursiveTo(FilePath.java:2208) at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) at hudson.maven.MavenBuild$ProxyImpl.performArchiving(MavenBuild.java:483) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:851) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1741) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Caused by: java.io.IOException: Truncated TAR archive at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:614) at java.io.InputStream.read(InputStream.java:82) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769) at org.apache.commons.io.IOUtils.copy(IOUtils.java:1744) at hudson.util.IOUtils.copy(IOUtils.java:40) at hudson.FilePath.readFromTar(FilePath.java:2289) ... 9 more [JENKINS] Archiving /home/jenkins/workspace/lexdb-legacy/lexdb-oracle-urteilid/target/lexdb-oracle-urteilid-3.8.33-SNAPSHOT.jar to de.lexisnexis.lexdb/lexdb-oracle-urteilid/3.8.33-SNAPSHOT/lexdb-oracle-urteilid-3.8.33-SNAPSHOT.jar ERROR: Failed to parse POMs java.io.IOException: Failed to extract /home/jenkins/workspace/lexdb-legacy/lexdb-oracle-urteilid/transfer of 2 files at hudson.FilePath.readFromTar(FilePath.java:2299) at hudson.FilePath.copyRecursiveTo(FilePath.java:2208) at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) at hudson.maven.MavenBuild$ProxyImpl.performArchiving(MavenBuild.java:483) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:851) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1741) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Caused by: java.io.IOException: Truncated TAR archive at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:614) at java.io.InputStream.read(InputStream.java:82) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769) at org.apache.commons.io.IOUtils.copy(IOUtils.java:1744) at hudson.util.IOUtils.copy(IOUtils.java:40) at hudson.FilePath.readFromTar(FilePath.java:2289) ... 9 more {code}

    Jenkins JIRA | 2 years ago | Daniel Hiller
    java.io.IOException: Failed to extract /home/jenkins/workspace/lexdb-legacy/lexdb-oracle-urteilid/transfer of 2 files

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Truncated TAR archive

      at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read()
    2. Apache Commons Compress
      TarArchiveInputStream.read
      1. org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:614)
      1 frame
    3. Java RT
      InputStream.read
      1. java.io.InputStream.read(InputStream.java:101)
      1 frame
    4. Commons IO
      IOUtils.copy
      1. org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792)
      2. org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769)
      3. org.apache.commons.io.IOUtils.copy(IOUtils.java:1744)
      3 frames
    5. Hudson
      FilePath.copyRecursiveTo
      1. hudson.util.IOUtils.copy(IOUtils.java:40)
      2. hudson.FilePath.readFromTar(FilePath.java:2289)
      3. hudson.FilePath.copyRecursiveTo(FilePath.java:2208)
      4. hudson.FilePath.copyRecursiveTo(FilePath.java:2112)
      5. hudson.FilePath.copyRecursiveTo(FilePath.java:2095)
      5 frames
    6. hudson.plugins.robot
      RobotPublisher.perform
      1. hudson.plugins.robot.RobotPublisher.copyFilesToBuildDir(RobotPublisher.java:297)
      2. hudson.plugins.robot.RobotPublisher.perform(RobotPublisher.java:247)
      2 frames
    7. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
      4. hudson.model.Build$BuildExecution.post2(Build.java:183)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
      6. hudson.model.Run.execute(Run.java:1766)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:98)
      9. hudson.model.Executor.run(Executor.java:374)
      9 frames