Permissions can only be changed by the owner of the file, so my guess would be that the agent isn’t running as root (which is good), but then it’s not clear to me why the file would be owned by root in the first place.
I guess to take a step back, did you see the error immediately after upgrading to 2.107.2, and had you seen the error on any previous versions? > On Apr 19, 2018, at 12:03, David Aldrich <david.aldr...@emea.nec.com> wrote: > > -rwxrwxrwx. 1 root 101 1077 Apr 19 16:12 > > From: jenkinsci-users@googlegroups.com > [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Devin Nusbaum > Sent: 19 April 2018 16:59 > To: jenkinsci-users@googlegroups.com > Subject: Re: Java exception when copying artifacts > > It looks like the failure comes when changing permissions to match the > original file after the file has been copied. What are the permissions on > /net/rsdprojects/SeraDL/Zodiac/Linux/HtmlDoc/Algorithms/html/Algorithms.html > currently? > > > On Apr 19, 2018, at 11:40, David Aldrich <david.aldr...@emea.nec.com > <mailto:david.aldr...@emea.nec.com>> wrote: > > > Does the user that Jenkins is running as on the agent have access to the > > destination directory? > > Yes, I have demonstrated that from the command line. > > From: jenkinsci-users@googlegroups.com > <mailto:jenkinsci-users@googlegroups.com> > [mailto:jenkinsci-users@googlegroups.com > <mailto:jenkinsci-users@googlegroups.com>] On Behalf Of Slide > Sent: 19 April 2018 16:29 > To: jenkinsci-users@googlegroups.com <mailto:jenkinsci-users@googlegroups.com> > Subject: Re: Java exception when copying artifacts > > Does the user that Jenkins is running as on the agent have access to the > destination directory? > > On Thu, Apr 19, 2018 at 8:22 AM David Aldrich <david.aldr...@emea.nec.com > <mailto:david.aldr...@emea.nec.com>> wrote: > With Jenkins 2.107.2 LTS I am getting a Java exception when executing a ‘Copy > artifacts from another project’ build step. I know that the destination > directory is mounted and that my Jenkins user account has permission to write > to the destination directory. Any suggestions what may cause this please? > > Best regards > > David > > FATAL: Failed to copy > /var/lib/jenkins/jobs/SeraDL_Compile_Zodiac_Linux/builds/79/archive/HtmlDoc/Algorithms/html/Algorithms.html > to > /net/rsdprojects/SeraDL/Zodiac/Linux/HtmlDoc/Algorithms/html/Algorithms.html > Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to hwsim10 > at > hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1737) > at > hudson.remoting.UserResponse.retrieve(UserRequest.java:313) > at hudson.remoting.Channel.call(Channel.java:952) > at hudson.FilePath.act(FilePath.java:998) > at hudson.FilePath.act(FilePath.java:987) > at hudson.FilePath.chmod(FilePath.java:1629) > at > hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:89) > at > hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:67) > at > hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:527) > at > hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:461) > at > hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81) > at > hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) > at > hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) > at hudson.model.Build$BuildExecution.build(Build.java:206) > at hudson.model.Build$BuildExecution.doRun(Build.java:163) > at > hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) > at hudson.model.Run.execute(Run.java:1727) > at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) > at > hudson.model.ResourceController.execute(ResourceController.java:97) > at hudson.model.Executor.run(Executor.java:429) > java.nio.file.FileSystemException: > /net/rsdprojects/SeraDL/Zodiac/Linux/HtmlDoc/Algorithms/html/Algorithms.html: > Operation not permitted > at sun.nio.fs.UnixException.translateToIOException(Unknown Source) > at sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source) > at sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source) > at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(Unknown Source) > at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(Unknown > Source) > at java.nio.file.Files.setPosixFilePermissions(Unknown Source) > at hudson.FilePath._chmod(FilePath.java:1650) > at hudson.FilePath.access$1700(FilePath.java:208) > at hudson.FilePath$28.invoke(FilePath.java:1632) > at hudson.FilePath$28.invoke(FilePath.java:1629) > at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2816) > at hudson.remoting.UserRequest.perform(UserRequest.java:210) > at hudson.remoting.UserRequest.perform(UserRequest.java:53) > at hudson.remoting.Request$2.run(Request.java:364) > at > hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) > at java.util.concurrent.FutureTask.run(Unknown Source) > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown > Source) > at java.lang.Thread.run(Unknown Source) > Caused: java.io.IOException: remote file operation failed: > /net/rsdprojects/SeraDL/Zodiac/Linux/HtmlDoc/Algorithms/html/Algorithms.html > at hudson.remoting.Channel@4b6e88b0:hwsim10 > <mailto:hudson.remoting.Channel@4b6e88b0:hwsim10> > at hudson.FilePath.act(FilePath.java:1005) > at hudson.FilePath.act(FilePath.java:987) > at hudson.FilePath.chmod(FilePath.java:1629) > at > hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:89) > Caused: hudson.util.IOException2: Failed to copy > /var/lib/jenkins/jobs/SeraDL_Compile_Zodiac_Linux/builds/79/archive/HtmlDoc/Algorithms/html/Algorithms.html > to > /net/rsdprojects/SeraDL/Zodiac/Linux/HtmlDoc/Algorithms/html/Algorithms.html > at > hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:118) > at > hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:67) > at > hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:527) > at > hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:461) > at > hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81) > at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) > at > hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) > at hudson.model.Build$BuildExecution.build(Build.java:206) > at hudson.model.Build$BuildExecution.doRun(Build.java:163) > at > hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) > at hudson.model.Run.execute(Run.java:1727) > at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) > at > hudson.model.ResourceController.execute(ResourceController.java:97) > at hudson.model.Executor.run(Executor.java:429) > Finished: FAILURE > > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com > <mailto:jenkinsci-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/a60750f84163448ebe554ce7ff913bad%40EUX13SRV1.EU.NEC.COM > > <https://groups.google.com/d/msgid/jenkinsci-users/a60750f84163448ebe554ce7ff913bad%40EUX13SRV1.EU.NEC.COM?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com > <mailto:jenkinsci-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcXkByQ2ChbvufxVV%3DZxho%3DU4qj5Ys4rCnwueL%3DES11ow%40mail.gmail.com > > <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcXkByQ2ChbvufxVV%3DZxho%3DU4qj5Ys4rCnwueL%3DES11ow%40mail.gmail.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > > > Click here > <https://www.mailcontrol.com/sr/40+l0BRGEnfGX2PQPOmvUmGqEHcKtgpyXDxSCUCyJvpDxnzm+jSXY114jt71+9izeRbsdAfKwuj1VsBVsOva5A==> > to report this email as spam. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com > <mailto:jenkinsci-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/a68cf59e9d9148dca888f951ca6eeb70%40EUX13SRV1.EU.NEC.COM > > <https://groups.google.com/d/msgid/jenkinsci-users/a68cf59e9d9148dca888f951ca6eeb70%40EUX13SRV1.EU.NEC.COM?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com > <mailto:jenkinsci-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/0B7ACC9D-347F-40B9-BFC9-36DA5E04E099%40cloudbees.com > > <https://groups.google.com/d/msgid/jenkinsci-users/0B7ACC9D-347F-40B9-BFC9-36DA5E04E099%40cloudbees.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com > <mailto:jenkinsci-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/f028d2db0a0c46d1b5f8765916a95a06%40EUX13SRV1.EU.NEC.COM > > <https://groups.google.com/d/msgid/jenkinsci-users/f028d2db0a0c46d1b5f8765916a95a06%40EUX13SRV1.EU.NEC.COM?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6C2E9A2C-F2C1-4E78-B814-0DA722E9C5B6%40cloudbees.com. For more options, visit https://groups.google.com/d/optout.