Open timja opened 10 years ago
I encouter the same issue on Ubuntu 14.04.1 LTS. Ant 1.9.3, Oracle Java 1.8.0_20. When I look into the source code of Ant, this problem seems to be related to Ant. Some of the static initializers of org.apache.tools.ant.Location fail.
Either this one:
private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();
or some import fails:
import org.apache.tools.ant.util.FileUtils;
import org.xml.sax.Locator;
Encounter the issue again (Jenkins ver. 1.571) :
2014-08-29 00:19:47 ERROR: Failed to archive artifacts: *.tar.gz 2014-08-29 00:19:47 java.io.IOException: remote file operation failed: /var/jenkins/workspace/GGGGGGGGGGG at hudson.remoting.Channel@6119f0bd:ZZZZZZZZZZZ 2014-08-29 00:19:47 at hudson.FilePath.act(FilePath.java:918) 2014-08-29 00:19:47 at hudson.FilePath.act(FilePath.java:895) 2014-08-29 00:19:47 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:181) 2014-08-29 00:19:47 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 2014-08-29 00:19:47 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) 2014-08-29 00:19:47 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736) 2014-08-29 00:19:47 at hudson.model.Build$BuildExecution.post2(Build.java:183) 2014-08-29 00:19:47 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685) 2014-08-29 00:19:47 at hudson.model.Run.execute(Run.java:1757) 2014-08-29 00:19:47 at hudson.matrix.MatrixRun.run(MatrixRun.java:146) 2014-08-29 00:19:47 at hudson.model.ResourceController.execute(ResourceController.java:88) 2014-08-29 00:19:47 at hudson.model.Executor.run(Executor.java:234) 2014-08-29 00:19:47 Caused by: java.io.IOException: Remote call on xbrickdrm49 failed 2014-08-29 00:19:47 at hudson.remoting.Channel.call(Channel.java:748) 2014-08-29 00:19:47 at hudson.FilePath.act(FilePath.java:911) 2014-08-29 00:19:47 ... 11 more 2014-08-29 00:19:47 Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.tools.ant.Location 2014-08-29 00:19:47 at org.apache.tools.ant.ProjectComponent.(ProjectComponent.java:43) 2014-08-29 00:19:47 at org.apache.tools.ant.types.DataType. (DataType.java:40) 2014-08-29 00:19:47 at org.apache.tools.ant.types.AbstractFileSet. (AbstractFileSet.java:82) 2014-08-29 00:19:47 at org.apache.tools.ant.types.FileSet. (FileSet.java:36) 2014-08-29 00:19:47 at hudson.Util.createFileSet(Util.java:1071) 2014-08-29 00:19:47 at hudson.tasks.ArtifactArchiver$ListFiles.invoke(ArtifactArchiver.java:228) 2014-08-29 00:19:47 at hudson.tasks.ArtifactArchiver$ListFiles.invoke(ArtifactArchiver.java:215) 2014-08-29 00:19:47 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2492) 2014-08-29 00:19:47 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 2014-08-29 00:19:47 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 2014-08-29 00:19:47 at hudson.remoting.Request$2.run(Request.java:328) 2014-08-29 00:19:47 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 2014-08-29 00:19:47 at java.util.concurrent.FutureTask.run(FutureTask.java:262) 2014-08-29 00:19:47 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 2014-08-29 00:19:47 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 2014-08-29 00:19:47 at java.lang.Thread.run(Thread.java:744) 2014-08-29 00:19:47 Build step 'Archive the artifacts' changed build result to FAILURE 2014-08-29 00:19:49 Sending e-mails to: 2014-08-29 00:19:52 Finished: FAILURE
How did you install Jenkins?
If you have the chance, try running Jenkins on an Oracle JDK.
Had the same issue (Jenkins ver. 1.651.3). For me also reconnecting the node fixed the issue. In my case the node had recently been restarted, so could be the file system with class files wasn't fully available yet.
The question of course is if the root cause can be fixed to prevent this from happening at all.
After upgrading to Jenkins 1.550 this morning, projects are failing when archiving artifacts.
Archiving artifacts(ProjectComponent.java:43)(DataType.java:40)(AbstractFileSet.java:82)(FileSet.java:36)
ERROR: Failed to archive artifacts: package/*.tar.gz
java.io.IOException: remote file operation failed: /home/jenkins-builds/workspace/Build-RocketX-Driver-Linux at hudson.remoting.Channel@496d864e:Elysium
at hudson.FilePath.act(FilePath.java:910)
at hudson.FilePath.act(FilePath.java:887)
at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:138)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:784)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:756)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:705)
at hudson.model.Run.execute(Run.java:1695)
at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:231)
Caused by: java.io.IOException: Remote call on Elysium failed
at hudson.remoting.Channel.call(Channel.java:731)
at hudson.FilePath.act(FilePath.java:903)
... 11 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.tools.ant.Location
at org.apache.tools.ant.ProjectComponent.
at org.apache.tools.ant.types.DataType.
at org.apache.tools.ant.types.AbstractFileSet.
at org.apache.tools.ant.types.FileSet.
at hudson.Util.createFileSet(Util.java:1025)
at hudson.tasks.ArtifactArchiver$ListFiles.invoke(ArtifactArchiver.java:181)
at hudson.tasks.ArtifactArchiver$ListFiles.invoke(ArtifactArchiver.java:172)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2461)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:328)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)
Originally reported by glimberg, imported from: Artifact archiving fails with java.lang.NoClassDefFoundError