java.io.IOException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When testing the Go Plugin, which is a ToolInstaller and so makes use of this FilePath API, I've seen that it consistently fails to download certain files — regardless of which OS Jenkins is running on, and from which web server the files are being downloaded from (and whether HTTP or HTTPS). An typical stacktrace: {code} java.io.IOException: Failed to install https://storage.googleapis.com/golang/go1.6.2.darwin-amd64.tar.gz to /tmp/jenkins/tools/Go_1.6.2 at hudson.FilePath.installIfNecessaryFrom(FilePath.java:832) at Repro.main(Repro.java:31) Caused by: java.io.IOException: Failed to unpack https://storage.googleapis.com/golang/go1.6.2.darwin-amd64.tar.gz (158817 bytes read of total 84750242) at hudson.FilePath.installIfNecessaryFrom(FilePath.java:826) ... 1 more Caused by: java.io.IOException: Failed to extract input stream at hudson.FilePath.readFromTar(FilePath.java:2300) at hudson.FilePath.access$400(FilePath.java:190) at hudson.FilePath$10.invoke(FilePath.java:720) at hudson.FilePath$10.invoke(FilePath.java:718) at hudson.FilePath.act(FilePath.java:990) at hudson.FilePath.act(FilePath.java:968) at hudson.FilePath.untarFrom(FilePath.java:718) at hudson.FilePath.installIfNecessaryFrom(FilePath.java:824) ... 1 more Caused by: java.io.IOException: Truncated TAR archive at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:618) 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:2290) ... 8 more {code} The issue can be reproduced like this: {code} FilePath filePath = new FilePath(new File("...")); filePath.installIfNecessaryFrom(new URL(url), null, null); {code} This Git repository contains this in a ready-to-run form: https://github.com/orrc/jenkins-filepath-untar
    via by Christopher Orr,
  • When testing the Go Plugin, which is a ToolInstaller and so makes use of this FilePath API, I've seen that it consistently fails to download certain files — regardless of which OS Jenkins is running on, and from which web server the files are being downloaded from (and whether HTTP or HTTPS). An typical stacktrace: {code} java.io.IOException: Failed to install https://storage.googleapis.com/golang/go1.6.2.darwin-amd64.tar.gz to /tmp/jenkins/tools/Go_1.6.2 at hudson.FilePath.installIfNecessaryFrom(FilePath.java:832) at Repro.main(Repro.java:31) Caused by: java.io.IOException: Failed to unpack https://storage.googleapis.com/golang/go1.6.2.darwin-amd64.tar.gz (158817 bytes read of total 84750242) at hudson.FilePath.installIfNecessaryFrom(FilePath.java:826) ... 1 more Caused by: java.io.IOException: Failed to extract input stream at hudson.FilePath.readFromTar(FilePath.java:2300) at hudson.FilePath.access$400(FilePath.java:190) at hudson.FilePath$10.invoke(FilePath.java:720) at hudson.FilePath$10.invoke(FilePath.java:718) at hudson.FilePath.act(FilePath.java:990) at hudson.FilePath.act(FilePath.java:968) at hudson.FilePath.untarFrom(FilePath.java:718) at hudson.FilePath.installIfNecessaryFrom(FilePath.java:824) ... 1 more Caused by: java.io.IOException: Truncated TAR archive at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:618) 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:2290) ... 8 more {code} The issue can be reproduced like this: {code} FilePath filePath = new FilePath(new File("...")); filePath.installIfNecessaryFrom(new URL(url), null, null); {code} This Git repository contains this in a ready-to-run form: https://github.com/orrc/jenkins-filepath-untar
    via by Christopher Orr,
  • [JIRA] (JENKINS-39515) Failed to install Go 1.7.3
    via by coh...@yahoo.com (JIRA),
  • 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}
    via by Daniel Hiller,
  • Build fails trying to parse NCover information for the plugin: onsuccess: [echo] Build end time (Success) is 04/24/2015 16:08:17. BUILD SUCCEEDED - 3 non-fatal error(s), 0 warning(s) Total time: 107 seconds. [locks-and-latches] Releasing all the locks [locks-and-latches] All the locks released [WARNINGS] Parsing warnings in console log with parser MSBuild [WARNINGS] Computing warning deltas based on reference build #26 Recording NUnit tests results Publishing NCover HTML report... Report: 'fullcoveragereport.html' Report: 'methods_full.html' Report: 'modules_full.html' Report: 'namespaces_full.html' Report: 'sources_full.html' Report: 'uncoveredreport.html' Report: 'Trends.html' FATAL: NCover failure java.io.IOException: Failed to extract C:\XXXXXX\Results\NCover\html/**/* 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 ncover.NCoverArchiver.perform(NCoverArchiver.java:229) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) 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(Unknown Source) 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) ... 13 more Build step 'Publisher NCover HTML report' changed build result to FAILURE This failure occurs because the system now targets the C:\ drive instead of the D:\ drive with the relative path entry and can't find the necessary output.
    via by Alex Lombardi,
  • The 'archive artifacts' step of some build jobs have recently started failing with the following trace: {code} Archiving artifacts ERROR: Failed to archive artifacts: **/*.deb, **/*.changes, **/*.rpm, **/*.egg java.io.IOException: Failed to extract /srv/user_name/.jenkins/workspace/SomeProject/distro/sles11_64/servertype/build/transfer of 4 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.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:219) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74) 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.matrix.MatrixRun.run(MatrixRun.java:146) 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) ... 13 more Build step 'Archive the artifacts' changed build result to FAILURE {code} It seems that the jobs on the slaves succeeded, but the master fails: {code} Apr 20, 2015 11:15:14 AM hudson.model.Run execute INFO: SomeProject/distro=sles11_64,servertype=build #12159 main build action completed: SUCCESS [... more slave SUCCESS reports ...] Apr 20, 2015 11:16:16 AM hudson.model.Run execute INFO: SomeProject #12159 main build action completed: FAILURE {code} The master and slave logs do not show me any other errors. This failure occurs just for some of the slave jobs in this matrix build job. Within a specific job, this fails consistently for the same slaves, but across jobs the slaves that fail vary. There are no obvious resource issues; both disk space and memory usage seem to be fine.
    via by Steffan Karger,
  • 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
    via by Joachim Sturm,
  • Updating from Jenkins 1.609 to 1.610 causes artifacts that are actually present to become invisible to Jenkins, causing incorrect product build failures. I have multiple builds showing the same problem using several different build mechanisms. All show a bogus failure to see the artifact. All components and plugins are up-to-date. Reverting back to Jenkins 1.609 corrects the problem. Example build log excerpt showing impossible operation follows. The artifact is successfully moved to a subdir, followed by several empty build steps (commented out to isolate the bug), followed by artifact archiving in the post-build actions. The missing artifact is actually present in the expected place, as verified manually. However, Jenkins cannot see it. Possible fatal error in the artifact archiving code in 1.610? . . . 00:05:26.255 + mkdir -p build/trusty 00:05:26.257 + mv build/cape_1.6.0-1~develop~e239_amd64.deb build/trusty/ 00:05:26.275 + exit 0 00:05:26.295 [cape_develop] $ /bin/bash -xe /tmp/hudson3392614376804147389.sh 00:05:26.339 [cape_develop] $ /bin/bash -xe /tmp/hudson150957069606062707.sh 00:05:26.376 [cape_develop] $ /bin/bash -xe /tmp/hudson2456916382110583231.sh 00:05:26.417 [cape_develop] $ /bin/bash -xe /tmp/hudson782672795510148539.sh 00:05:26.454 [cape_develop] $ /bin/bash -xe /tmp/hudson3270660334305912197.sh 00:05:27.502 Archiving artifacts 00:05:32.094 ERROR: Failed to archive artifacts: build/trusty/*.deb 00:05:32.094 java.io.IOException: Failed to extract /var/lib/jenkins/workspace/cape_develop/transfer of 1 files 00:05:32.094 at hudson.FilePath.readFromTar(FilePath.java:2299) 00:05:32.094 at hudson.FilePath.copyRecursiveTo(FilePath.java:2208) 00:05:32.094 at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) 00:05:32.094 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:219) 00:05:32.094 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74) 00:05:32.094 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 00:05:32.094 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) 00:05:32.094 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721) 00:05:32.094 at hudson.model.Build$BuildExecution.post2(Build.java:183) 00:05:32.094 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670) 00:05:32.094 at hudson.model.Run.execute(Run.java:1766) 00:05:32.094 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 00:05:32.094 at hudson.model.ResourceController.execute(ResourceController.java:98) 00:05:32.094 at hudson.model.Executor.run(Executor.java:374) 00:05:32.094 Caused by: java.io.IOException: Truncated TAR archive 00:05:32.094 at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:614) 00:05:32.094 at java.io.InputStream.read(InputStream.java:101) 00:05:32.094 at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792) 00:05:32.094 at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769) 00:05:32.094 at org.apache.commons.io.IOUtils.copy(IOUtils.java:1744) 00:05:32.094 at hudson.util.IOUtils.copy(IOUtils.java:40) 00:05:32.094 at hudson.FilePath.readFromTar(FilePath.java:2289) 00:05:32.094 ... 13 more 00:05:32.094 Build step 'Archive the artifacts' changed build result to FAILURE
    via by John Mellor,
    • java.io.IOException: Failed to install https://storage.googleapis.com/golang/go1.6.2.darwin-amd64.tar.gz to /tmp/jenkins/tools/Go_1.6.2 at hudson.FilePath.installIfNecessaryFrom(FilePath.java:832) at Repro.main(Repro.java:31) Caused by: java.io.IOException: Failed to unpack https://storage.googleapis.com/golang/go1.6.2.darwin-amd64.tar.gz (158817 bytes read of total 84750242) at hudson.FilePath.installIfNecessaryFrom(FilePath.java:826) ... 1 more Caused by: java.io.IOException: Failed to extract input stream at hudson.FilePath.readFromTar(FilePath.java:2300) at hudson.FilePath.access$400(FilePath.java:190) at hudson.FilePath$10.invoke(FilePath.java:720) at hudson.FilePath$10.invoke(FilePath.java:718) at hudson.FilePath.act(FilePath.java:990) at hudson.FilePath.act(FilePath.java:968) at hudson.FilePath.untarFrom(FilePath.java:718) at hudson.FilePath.installIfNecessaryFrom(FilePath.java:824) ... 1 more Caused by: java.io.IOException: Truncated TAR archive at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:618) 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:2290) ... 8 more
    No Bugmate found.