Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13614

archiving artefacts from remote MacOS X, IBM AIX slave fails

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • core
    • Jenkins 1.461 + 1.472 +1.466.2
      Master node: Debian Linux, Tomcat 7
      Slave node: MacOS X 10.6
      Slave node: IBM AIX 5.3, AIX 6.1

      Archiving the artefacts from a slave fails with the following exception. It looks like it didn't find a suitable POSIX implementation.

      Oddly enough this just started happening seemingly without provocation. I'm pretty sure this installation worked correctly earlier today.

      ERROR: Failed to archive artifacts: build/*.zip, build/*.ipa, build/*.plist
      hudson.util.IOException2: java.lang.UnsupportedOperationException
      	at hudson.FilePath.copyRecursiveTo(FilePath.java:1745)
      	at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:116)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705)
      	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:680)
      	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:658)
      	at hudson.model.Build$RunnerImpl.post2(Build.java:162)
      	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:627)
      	at hudson.model.Run.run(Run.java:1459)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:239)
      Caused by: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException
      	at hudson.remoting.Channel$3.adapt(Channel.java:679)
      	at hudson.remoting.Channel$3.adapt(Channel.java:674)
      	at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
      	at hudson.FilePath.copyRecursiveTo(FilePath.java:1743)
      	... 11 more
      Caused by: java.lang.UnsupportedOperationException
      	at hudson.os.PosixAPI$1.getCurrentWorkingDirectory(PosixAPI.java:59)
      	at org.jruby.ext.posix.util.ExecIt.run(ExecIt.java:59)
      	at org.jruby.ext.posix.util.ExecIt.runAndWait(ExecIt.java:51)
      	at org.jruby.ext.posix.JavaLibCHelper.readlink(JavaLibCHelper.java:196)
      	at org.jruby.ext.posix.JavaPOSIX.readlink(JavaPOSIX.java:160)
      	at hudson.Util.resolveSymlink(Util.java:1067)
      	at hudson.Util.resolveSymlink(Util.java:1030)
      	at hudson.util.DirScanner$Glob.scan(DirScanner.java:107)
      	at hudson.FilePath.writeToTar(FilePath.java:1781)
      	at hudson.FilePath.access$1000(FilePath.java:166)
      	at hudson.FilePath$36.invoke(FilePath.java:1722)
      	at hudson.FilePath$36.invoke(FilePath.java:1719)
      	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2154)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      	at hudson.remoting.Request$2.run(Request.java:287)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at hudson.remoting.Engine$1$1.run(Engine.java:60)
      	at java.lang.Thread.run(Thread.java:680)
      

          [JENKINS-13614] archiving artefacts from remote MacOS X, IBM AIX slave fails

          Marcus Better created issue -

          This happens for us too.
          bash-4.0# uname -a
          HP-UX xxxx B.11.31 U ia64 4068214626 unlimited-user license

          Master in on HP-UX host. There is bunch of ssh slaves. One of these slaves is on same host as the master. Build failed when job (free style) was building on that slave.

          There are no "special" files in workspace:
          bash-4.0# find . -type l -o -type c -o -type b -o -type M -o -type n -o -type s
          bash-4.0#

          Since there are no symlinks it looks strange that it tries to resolve some symlinks. Also strange why it cant obtain current working directory.

          This issue is absolutely blocking for us as it does not allow to collect build artifacts.

          Nikolay Martynov added a comment - This happens for us too. bash-4.0# uname -a HP-UX xxxx B.11.31 U ia64 4068214626 unlimited-user license Master in on HP-UX host. There is bunch of ssh slaves. One of these slaves is on same host as the master. Build failed when job (free style) was building on that slave. There are no "special" files in workspace: bash-4.0# find . -type l -o -type c -o -type b -o -type M -o -type n -o -type s bash-4.0# Since there are no symlinks it looks strange that it tries to resolve some symlinks. Also strange why it cant obtain current working directory. This issue is absolutely blocking for us as it does not allow to collect build artifacts.

          Looks like this regressions is caused by https://issues.jenkins-ci.org/browse/JENKINS-9118

          Nikolay Martynov added a comment - Looks like this regressions is caused by https://issues.jenkins-ci.org/browse/JENKINS-9118

          Implementing methods in PosixAPI is useless since JavaLibCHelper will try to run "readlink" and that is not something standard or POSIX. So artifacts archiving will fail anyway.

          Nikolay Martynov added a comment - Implementing methods in PosixAPI is useless since JavaLibCHelper will try to run "readlink" and that is not something standard or POSIX. So artifacts archiving will fail anyway.

          Nikolay Martynov added a comment - - edited

          I have added patch that first checks if file we found is indeed a symlink before trying to resolve it. This will not fix the original problem if there are actually symlinks in workspace. But this helps if there are no symlinks.

          Nikolay Martynov added a comment - - edited I have added patch that first checks if file we found is indeed a symlink before trying to resolve it. This will not fix the original problem if there are actually symlinks in workspace. But this helps if there are no symlinks.
          Nikolay Martynov made changes -
          Attachment New: JENKINS-13614.patch [ 21806 ]
          Nikolay Martynov made changes -
          Labels New: patch regression showstopper

          I had the same problem on Debian Testing slave node, Jenkins versions 1.458-1.465.

          In my case changing system Java version from openjdk-7 (1.7.0_03-icedtea) to sun-java-6 (1.6.0_26) fixed the problem.

          Mikhail Kvyatkovskiy added a comment - I had the same problem on Debian Testing slave node, Jenkins versions 1.458-1.465. In my case changing system Java version from openjdk-7 (1.7.0_03-icedtea) to sun-java-6 (1.6.0_26) fixed the problem.

          Xavier Nodet added a comment - - edited

          I experience this exact same issue on two (slightly) different slaves, with Jenkins 1.456:

          Linux ??? 2.6.16.60-0.42.10-ppc64 #1 SMP Tue Apr 27 05:11:27 UTC 2010 ppc64 ppc64 ppc64 GNU/Linux with
          J2RE 1.5.0 IBM J9 2.3 Linux ppc64-64 j9vmxp6423ifx-20100125 (JIT enabled) J9VM - 20100122_52103_BHdSMr JIT - 20091016_1845ifx1_r8 GC - 20091026_AA

          Linux ??? 2.6.16.60-0.83.2-default #1 SMP Fri Sep 2 13:49:16 UTC 2011 s390x s390x s390x GNU/Linux with
          J2RE 1.5.0 IBM J9 2.3 Linux s390x-64 j9vmxz6423ifx-20100125 (JIT enabled) J9VM - 20100122_52103_BHdSMr JIT - 20091016_1845ifx1_r8 GC - 20091026_AA

          Xavier Nodet added a comment - - edited I experience this exact same issue on two (slightly) different slaves, with Jenkins 1.456: Linux ??? 2.6.16.60-0.42.10-ppc64 #1 SMP Tue Apr 27 05:11:27 UTC 2010 ppc64 ppc64 ppc64 GNU/Linux with J2RE 1.5.0 IBM J9 2.3 Linux ppc64-64 j9vmxp6423ifx-20100125 (JIT enabled) J9VM - 20100122_52103_BHdSMr JIT - 20091016_1845ifx1_r8 GC - 20091026_AA Linux ??? 2.6.16.60-0.83.2-default #1 SMP Fri Sep 2 13:49:16 UTC 2011 s390x s390x s390x GNU/Linux with J2RE 1.5.0 IBM J9 2.3 Linux s390x-64 j9vmxz6423ifx-20100125 (JIT enabled) J9VM - 20100122_52103_BHdSMr JIT - 20091016_1845ifx1_r8 GC - 20091026_AA
          erwan_q made changes -
          Summary Original: archiving artefacts from remote MacOS X slave fails New: archiving artefacts from remote MacOS X, IBM AIX slave fails

            Unassigned Unassigned
            mbetter Marcus Better
            Votes:
            15 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved: