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

AIX slave start error due to can not found /com/sun/jna/aix-ppc64/libjnidispatch.so

    • Jenkins 2.181

      this issue happend only on starting AIX slave, which will try to find /com/sun/jna/aix-ppc64/libjnidispatch.so

      However, in jna jar file, i don't found such file actually. the correct file should be com/sun/jna/aix-ppc64/libjnidispatch.a instead of *.so(which are for other unix/linux)

      this issue will also cause the jobs always run fail on AIX slaves.

      node start log:

      Remoting version: 3.29
      This is a Unix agent
      May 16, 2019 11:00:14 PM hudson.remoting.UserRequest perform
      WARNING: LinkageError while performing UserRequest:jenkins.slaves.StandardOutputSwapper$ChannelSwapper@759450a7
      java.lang.UnsatisfiedLinkError: jnidispatch (/com/sun/jna/aix-ppc64/libjnidispatch.so) not found in resource path
      at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:723)
      at com.sun.jna.Native.loadNativeLibrary(Native.java:697)
      at com.sun.jna.Native.<clinit>(Native.java:127)
      at hudson.util.jna.GNUCLibrary.<clinit>(GNUCLibrary.java:115)
      at jenkins.slaves.StandardOutputSwapper$ChannelSwapper.swap(StandardOutputSwapper.java:60)
      at jenkins.slaves.StandardOutputSwapper$ChannelSwapper.call(StandardOutputSwapper.java:45)
      at jenkins.slaves.StandardOutputSwapper$ChannelSwapper.call(StandardOutputSwapper.java:39)
      at hudson.remoting.UserRequest.perform(UserRequest.java:212)
      at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      at hudson.remoting.Request$2.run(Request.java:369)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:808)

          [JENKINS-57515] AIX slave start error due to can not found /com/sun/jna/aix-ppc64/libjnidispatch.so

          Jeff Thompson added a comment -

          Similar to JENKINS-54196 and various others. May require an update to the JNA library to get the correct library to load on AIX.

          Jeff Thompson added a comment - Similar to JENKINS-54196  and various others. May require an update to the JNA library to get the correct library to load on AIX.

          Scott Centoni added a comment -

          Scott Centoni added a comment - This was fixed in jna 5.3.0 (see https://github.com/java-native-access/jna/blob/master/CHANGES.md ) but Jenkins is currently using jna 4.5.2: https://github.com/jenkinsci/jenkins/blob/82aca6421da3c4f889d79a34197157928d5c4436/core/pom.xml#L537

          li li added a comment -

          scentoni thanks for your demonstration . So is it able to manually replace jna 4.5.2 with 5.3.1 manually? Does it work?

          li li added a comment - scentoni thanks for your demonstration . So is it able to manually replace jna 4.5.2 with 5.3.1 manually? Does it work?

          Markus Winter added a comment -

          I have the same issue.

          So I opened a pull request https://github.com/jenkinsci/jenkins/pull/4060 that will update the JNA library to 5.3.1

          Markus Winter added a comment - I have the same issue. So I opened a pull request https://github.com/jenkinsci/jenkins/pull/4060 that will update the JNA library to 5.3.1

            Unassigned Unassigned
            doomofliving li li
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: