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

FATAL: Failed to link the library: interface hudson.util.jna.Kernel32

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • disk-usage-plugin

      I am facing an issue since 1.490 which may be related to https://issues.jenkins-ci.org/browse/JENKINS-15466.
      These error occurs occassionally - 1-3 time in the night when the nightly builds stress the system for 6 hours.
      I have this issue seen by now only when a job is triggered by cron.
      I tried upgrading the plugins and Jenkins to various versions from 1.490 to current with no luck. Restarting Jenkins solves the issue on short term.

      00:54:28 originally caused by:
      00:54:28 Started by timer
      00:54:28 [EnvInject] - Loading node environment variables.
      00:54:28 Building remotely on B00013_2 in workspace y:\Jenkins_slave\workspace\NB_Uppsala
      00:54:28 Cleaning local Directory .
      00:54:28 FATAL: Failed to link the library: interface hudson.util.jna.Kernel32
      00:54:28 java.lang.UnsupportedOperationException: Failed to link the library: interface hudson.util.jna.Kernel32
      00:54:28 at hudson.util.jna.InitializationErrorInvocationHandler.invoke(InitializationErrorInvocationHandler.java:28)
      00:54:28 at $Proxy7.GetFileAttributesW(Unknown Source)
      00:54:28 at hudson.util.jna.Kernel32Utils.getWin32FileAttributes(Kernel32Utils.java:76)
      00:54:28 at hudson.util.jna.Kernel32Utils.isJunctionOrSymlink(Kernel32Utils.java:80)
      00:54:28 at hudson.Util.isSymlink(Util.java:322)
      00:54:28 at hudson.Util.deleteRecursive(Util.java:283)
      00:54:28 at hudson.Util.deleteContentsRecursive(Util.java:204)
      00:54:28 at hudson.scm.subversion.CheckoutUpdater$1.perform(CheckoutUpdater.java:75)
      00:54:28 at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:144)
      00:54:28 at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:799)
      00:54:28 at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:780)
      00:54:28 at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:763)
      00:54:28 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2309)
      00:54:28 at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      00:54:28 at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      00:54:28 at hudson.remoting.Request$2.run(Request.java:326)
      00:54:28 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      00:54:28 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      00:54:28 at java.util.concurrent.FutureTask.run(Unknown Source)
      00:54:28 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      00:54:28 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      00:54:28 at java.lang.Thread.run(Unknown Source)
      00:54:28 Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
      00:54:28 at hudson.util.jna.Kernel32Utils.load(Kernel32Utils.java:85)
      00:54:28 at hudson.util.jna.Kernel32.<clinit>(Kernel32.java:37)
      00:54:28 at hudson.util.jna.Kernel32Utils.getWin32FileAttributes(Kernel32Utils.java:76)
      00:54:28 at hudson.util.jna.Kernel32Utils.isJunctionOrSymlink(Kernel32Utils.java:80)
      00:54:28 at hudson.Util.isSymlink(Util.java:322)
      00:54:28 at hudson.plugins.disk_usage.DiskUsageThread$DiskUsageCallable.getFileSize(DiskUsageThread.java:168)
      00:54:28 at hudson.plugins.disk_usage.DiskUsageThread$DiskUsageCallable.call(DiskUsageThread.java:162)
      00:54:28 at hudson.plugins.disk_usage.DiskUsageThread$DiskUsageCallable.call(DiskUsageThread.java:149)
      00:54:28 ... 9 more

      It seems mainly to affect one machine with several slaves on it but that is no unique setup in our cluster.
      The system logs tell something about issue with determining the disk space. I have been checking the machine. Itself is in a healthy state with loads of available disk space.

          [JENKINS-15974] FATAL: Failed to link the library: interface hudson.util.jna.Kernel32

          Jan Seidel created issue -
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-15466 [ JENKINS-15466 ]
          Oleg Nenashev made changes -
          Link New: This issue is related to JENKINS-13247 [ JENKINS-13247 ]
          Lucie Votypkova made changes -
          Assignee Original: vjuranek [ vjuranek ] New: Lucie Votypkova [ lvotypkova ]
          Craig Rodrigues made changes -
          Link New: This issue is related to JENKINS-24521 [ JENKINS-24521 ]
          Craig Rodrigues made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 146776 ] New: JNJira + In-Review [ 192080 ]

            lvotypkova Lucie Votypkova
            kopfwunde Jan Seidel
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: