[JIRA] [copyartifact-plugin] (JENKINS-34017) copyartifact dies with hudson.util.IOException2

2 views
Skip to first unread message

josh@hoblitt.com (JIRA)

unread,
Apr 4, 2016, 11:39:02 PM4/4/16
to jenkinsc...@googlegroups.com
Joshua Hoblitt created an issue
 
Jenkins / Bug JENKINS-34017
copyartifact dies with hudson.util.IOException2
Issue Type: Bug Bug
Assignee: Unassigned
Components: copyartifact-plugin
Created: 2016/Apr/05 3:38 AM
Environment: jenkins 1.651
copyartifact 1.37
Priority: Major Major
Reporter: Joshua Hoblitt

Configurinig any job with the copyartifact-plugin causes a fatal exception when running a build.

Started by user Joshua Hoblitt
[EnvInject] - Loading node environment variables.
Building remotely on jenkins-el6-1-febf2de4 (jenkins-el6-1 centos-6 swarm) in workspace /home/jenkins-slave/workspace/copy-test
FATAL: Failed to copy /var/lib/jenkins/jobs/run-rebuild/builds/5/archive/results/manifest.txt to /home/jenkins-slave/workspace/copy-test/results/manifest.txt
hudson.util.IOException2: Failed to copy /var/lib/jenkins/jobs/run-rebuild/builds/5/archive/results/manifest.txt to /home/jenkins-slave/workspace/copy-test/results/manifest.txt
	at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:117)
	at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:67)
	at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:526)
	at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:460)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
	at hudson.model.Build$BuildExecution.build(Build.java:205)
	at hudson.model.Build$BuildExecution.doRun(Build.java:162)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
	at hudson.model.Run.execute(Run.java:1738)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:410)
Caused by: java.io.IOException: remote file operation failed: /home/jenkins-slave/workspace/copy-test/results/manifest.txt at hudson.remoting.Channel@226e623c:jenkins-el6-1-febf2de4: java.io.IOException: Remote call on jenkins-el6-1-febf2de4 failed
	at hudson.FilePath.act(FilePath.java:986)
	at hudson.FilePath.act(FilePath.java:968)
	at hudson.FilePath.chmod(FilePath.java:1582)
	at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:88)
	... 13 more
Caused by: java.io.IOException: Remote call on jenkins-el6-1-febf2de4 failed
	at hudson.remoting.Channel.call(Channel.java:789)
	at hudson.FilePath.act(FilePath.java:979)
	... 16 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class jnr.posix.JavaLibCHelper
	at jnr.posix.JavaPOSIX.<init>(JavaPOSIX.java:31)
	at jnr.posix.POSIXFactory.getJavaPOSIX(POSIXFactory.java:91)
	at jnr.posix.POSIXFactory.loadPOSIX(POSIXFactory.java:57)
	at jnr.posix.LazyPOSIX.loadPOSIX(LazyPOSIX.java:33)
	at jnr.posix.LazyPOSIX.posix(LazyPOSIX.java:29)
	at jnr.posix.LazyPOSIX.chmod(LazyPOSIX.java:55)
	at hudson.FilePath._chmod(FilePath.java:1601)
	at hudson.FilePath.access$1500(FilePath.java:190)
	at hudson.FilePath$29.invoke(FilePath.java:1586)
	at hudson.FilePath$29.invoke(FilePath.java:1582)
	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2719)
	at hudson.remoting.UserRequest.perform(UserRequest.java:121)
	at hudson.remoting.UserRequest.perform(UserRequest.java:49)
	at hudson.remoting.Request$2.run(Request.java:324)
	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at hudson.remoting.Engine$1$1.run(Engine.java:63)
	at java.lang.Thread.run(Thread.java:745)
	at ......remote call to jenkins-el6-1-febf2de4(Native Method)
	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
	at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
	at hudson.remoting.Channel.call(Channel.java:781)
	... 17 more
Finished: FAILURE

The file `/var/lib/jenkins/jobs/run-rebuild/builds/5/archive/results/manifest.txt` is in place on the master as-is `/home/jenkins-slave/workspace/copy-test/results/manifest.txt` on the slave, with the correct content. I have tried a few different plugin configuration combinations without success. The job itself is a trivial test:

<project><actions/><description/><keepDependencies>false</keepDependencies><properties><com.sonyericsson.rebuild.RebuildSettings plugin="reb...@1.25"><autoRebuild>false</autoRebuild><rebuildDisabled>false</rebuildDisabled></com.sonyericsson.rebuild.RebuildSettings></properties><scm class="hudson.scm.NullSCM"/><canRoam>true</canRoam><disabled>false</disabled><blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding><blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding><triggers/><concurrentBuild>false</concurrentBuild><builders><hudson.plugins.copyartifact.CopyArtifact plugin="copyar...@1.37"><project>run-rebuild</project><filter>results/manifest.txt</filter><target>.</target><excludes/><selector class="hudson.plugins.copyartifact.StatusBuildSelector"/><doNotFingerprintArtifacts>true</doNotFingerprintArtifacts></hudson.plugins.copyartifact.CopyArtifact><hudson.tasks.Shell><command>cat target/manifest.txt</command></hudson.tasks.Shell></builders><publishers/><buildWrappers/></project>
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

josh@hoblitt.com (JIRA)

unread,
Apr 5, 2016, 12:09:01 AM4/5/16
to jenkinsc...@googlegroups.com
Joshua Hoblitt commented on Bug JENKINS-34017
 
Re: copyartifact dies with hudson.util.IOException2

The same exception occurs under jenkins 1.656.

devld@ikedam.jp (JIRA)

unread,
Apr 16, 2016, 8:56:02 PM4/16/16
to jenkinsc...@googlegroups.com
ikedam resolved as Duplicate
 

Looks an issue of core, and same to JENKINS-25120 which is the problem when archiving artifacts, but the root cause seems same.

Please go to JENKINS-25120.

It looks caused for a problem with an environment of a slave node, and it might fix the problem to disconnect the slave, cleanup JENKINS_HOME in the slave, and reconnect it. Please try that.

More details about environments would be helpful.
Please report OS versions, Java versions.
And please report if the issue occurs after you upgrade something (e.g. Jenkins core, OS libraries and so on.).

Change By: ikedam
Status: Open Resolved
Resolution: Duplicate
Reply all
Reply to author
Forward
0 new messages