java.lang.UnsatisfiedLinkError: Unable to load library 'libc.so.6': com.sun.jna.Native.open(Ljava/lang/String;)J

Jenkins JIRA | C. S. | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Executing the archive artifacts step you can find in the slave log following messages: {quote} Failed to load native POSIX impl; falling back on Java impl. Stacktrace follows. java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native at org.jruby.ext.posix.POSIXFactory.loadLibC(POSIXFactory.java:96) at org.jruby.ext.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:65) at org.jruby.ext.posix.POSIXFactory.getPOSIX(POSIXFactory.java:24) at hudson.os.PosixAPI.<clinit>(PosixAPI.java:41) at hudson.util.IOUtils.mode(IOUtils.java:125) at hudson.util.io.TarArchiver.visit(TarArchiver.java:102) at hudson.util.DirScanner$Glob.scan(DirScanner.java:133) at hudson.FilePath.writeToTar(FilePath.java:1939) at hudson.FilePath.access$1000(FilePath.java:168) at hudson.FilePath$36.invoke(FilePath.java:1880) at hudson.FilePath$36.invoke(FilePath.java:1876) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) {quote} This error only occurs when trying to archive the artifcats. I have a full build process which works without any errors. Installing the package *libjna-posix-java* fix the above shown exception and result into another exception: {quote} Failed to load native POSIX impl; falling back on Java impl. Stacktrace follows. java.lang.UnsatisfiedLinkError: Unable to load library 'libc.so.6': com.sun.jna.Native.open(Ljava/lang/String;)J at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:166) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:239) at com.sun.jna.Library$Handler.<init>(Library.java:140) at com.sun.jna.Native.loadLibrary(Native.java:366) at org.jruby.ext.posix.POSIXFactory.loadLibC(POSIXFactory.java:96) at org.jruby.ext.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:65) at org.jruby.ext.posix.POSIXFactory.getPOSIX(POSIXFactory.java:24) at hudson.os.PosixAPI.<clinit>(PosixAPI.java:41) at hudson.util.IOUtils.mode(IOUtils.java:125) at hudson.util.io.TarArchiver.visit(TarArchiver.java:102) at hudson.util.DirScanner$Glob.scan(DirScanner.java:133) at hudson.FilePath.writeToTar(FilePath.java:1939) at hudson.FilePath.access$1000(FilePath.java:168) at hudson.FilePath$36.invoke(FilePath.java:1880) at hudson.FilePath$36.invoke(FilePath.java:1876) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) {quote} But in general it seems to work. There is only an information in the log: {quote} log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter). log4j:WARN Please initialize the log4j system properly. {quote} If there is a possibility to get more details from the slave client, please tell me. I couldn't find anything in the wiki.

    Jenkins JIRA | 4 years ago | C. S.
    java.lang.UnsatisfiedLinkError: Unable to load library 'libc.so.6': com.sun.jna.Native.open(Ljava/lang/String;)J
  2. 0

    Executing the archive artifacts step you can find in the slave log following messages: {quote} Failed to load native POSIX impl; falling back on Java impl. Stacktrace follows. java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native at org.jruby.ext.posix.POSIXFactory.loadLibC(POSIXFactory.java:96) at org.jruby.ext.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:65) at org.jruby.ext.posix.POSIXFactory.getPOSIX(POSIXFactory.java:24) at hudson.os.PosixAPI.<clinit>(PosixAPI.java:41) at hudson.util.IOUtils.mode(IOUtils.java:125) at hudson.util.io.TarArchiver.visit(TarArchiver.java:102) at hudson.util.DirScanner$Glob.scan(DirScanner.java:133) at hudson.FilePath.writeToTar(FilePath.java:1939) at hudson.FilePath.access$1000(FilePath.java:168) at hudson.FilePath$36.invoke(FilePath.java:1880) at hudson.FilePath$36.invoke(FilePath.java:1876) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) {quote} This error only occurs when trying to archive the artifcats. I have a full build process which works without any errors. Installing the package *libjna-posix-java* fix the above shown exception and result into another exception: {quote} Failed to load native POSIX impl; falling back on Java impl. Stacktrace follows. java.lang.UnsatisfiedLinkError: Unable to load library 'libc.so.6': com.sun.jna.Native.open(Ljava/lang/String;)J at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:166) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:239) at com.sun.jna.Library$Handler.<init>(Library.java:140) at com.sun.jna.Native.loadLibrary(Native.java:366) at org.jruby.ext.posix.POSIXFactory.loadLibC(POSIXFactory.java:96) at org.jruby.ext.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:65) at org.jruby.ext.posix.POSIXFactory.getPOSIX(POSIXFactory.java:24) at hudson.os.PosixAPI.<clinit>(PosixAPI.java:41) at hudson.util.IOUtils.mode(IOUtils.java:125) at hudson.util.io.TarArchiver.visit(TarArchiver.java:102) at hudson.util.DirScanner$Glob.scan(DirScanner.java:133) at hudson.FilePath.writeToTar(FilePath.java:1939) at hudson.FilePath.access$1000(FilePath.java:168) at hudson.FilePath$36.invoke(FilePath.java:1880) at hudson.FilePath$36.invoke(FilePath.java:1876) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) {quote} But in general it seems to work. There is only an information in the log: {quote} log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter). log4j:WARN Please initialize the log4j system properly. {quote} If there is a possibility to get more details from the slave client, please tell me. I couldn't find anything in the wiki.

    Jenkins JIRA | 4 years ago | C. S.
    java.lang.UnsatisfiedLinkError: Unable to load library 'libc.so.6': com.sun.jna.Native.open(Ljava/lang/String;)J
  3. 0

    Doxygen publish fails because of java exception

    Google Groups | 5 years ago | Lars Nordin
    java.lang.UnsatisfiedLinkError: Unable to load library 'libc.so.6': com.sun.jna. Native.open(Ljava/lang/String;)J
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 3#71007778

    GitHub | 2 years ago | jvgelder
    java.lang.UnsatisfiedLinkError: Unable to load library 'libc.so.6': com.sun.jna.Native.open(Ljava/lang/String;)J
  6. 0

    After upgrading Ubuntu packaged Jenkins to 1.458 (using OpenJDK as installed by apt-get) I receive the following failures: .... Failed to load native POSIX impl; falling back on Java impl. Stacktrace follows. 13:19:30 java.lang.UnsatisfiedLinkError: Unable to load library 'libc.so.6': com.sun.jna.Native.open(Ljava/lang/String;)J 13:19:30 at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:166) 13:19:30 at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:239) 13:19:30 at com.sun.jna.Library$Handler.<init>(Library.java:140) 13:19:30 at com.sun.jna.Native.loadLibrary(Native.java:366) 13:19:30 at org.jruby.ext.posix.POSIXFactory.loadLibC(POSIXFactory.java:96) 13:19:30 at org.jruby.ext.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:65) 13:19:30 at org.jruby.ext.posix.POSIXFactory.getPOSIX(POSIXFactory.java:24) 13:19:30 at hudson.os.PosixAPI.<clinit>(PosixAPI.java:40) 13:19:30 at hudson.Util.resolveSymlink(Util.java:1067) 13:19:30 at hudson.Util.resolveSymlink(Util.java:1030) 13:19:30 at hudson.util.DirScanner$Glob.scan(DirScanner.java:107) 13:19:30 at hudson.FilePath.writeToTar(FilePath.java:1781) 13:19:30 at hudson.FilePath.copyRecursiveTo(FilePath.java:1708) 13:19:30 at hudson.FilePath.copyRecursiveTo(FilePath.java:1637) 13:19:30 at hudson.maven.reporters.AbstractMavenJavadocArchiver.postExecute(AbstractMavenJavadocArchiver.java:98) 13:19:30 at hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoSucceeded(Maven3Builder.java:478) 13:19:30 at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:459) 13:19:30 at org.jfrog.build.extractor.maven.BuildInfoRecorder.mojoSucceeded(BuildInfoRecorder.java:241) 13:19:30 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87) 13:19:30 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) 13:19:30 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228) 13:19:30 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 13:19:30 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 13:19:30 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) 13:19:30 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) 13:19:30 at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) 13:19:30 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) 13:19:30 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) 13:19:30 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) 13:19:30 at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) 13:19:30 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 13:19:30 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 13:19:30 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 13:19:30 at java.lang.reflect.Method.invoke(Method.java:616) 13:19:30 at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) 13:19:30 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) 13:19:30 at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) 13:19:30 at hudson.maven.Maven3Builder.call(Maven3Builder.java:104) 13:19:30 at hudson.maven.Maven3Builder.call(Maven3Builder.java:70) 13:19:30 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 13:19:30 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 13:19:30 at hudson.remoting.Request$2.run(Request.java:287) 13:19:30 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 13:19:30 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 13:19:30 at java.util.concurrent.FutureTask.run(FutureTask.java:166) 13:19:30 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) 13:19:30 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) 13:19:30 at java.lang.Thread.run(Thread.java:636) ..... mavenExecutionResult exceptions not empty 13:19:31 message : Internal error: java.lang.UnsupportedOperationException 13:19:31 cause : null 13:19:31 Stack trace : 13:19:31 org.apache.maven.InternalErrorException: Internal error: java.lang.UnsupportedOperationException 13:19:31 at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128) 13:19:31 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) 13:19:31 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) 13:19:31 at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) 13:19:31 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) 13:19:31 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) 13:19:31 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) 13:19:31 at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) 13:19:31 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 13:19:31 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 13:19:31 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 13:19:31 at java.lang.reflect.Method.invoke(Method.java:616) 13:19:31 at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) 13:19:31 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) 13:19:31 at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) 13:19:31 at hudson.maven.Maven3Builder.call(Maven3Builder.java:104) 13:19:31 at hudson.maven.Maven3Builder.call(Maven3Builder.java:70) 13:19:31 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 13:19:31 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 13:19:31 at hudson.remoting.Request$2.run(Request.java:287) 13:19:31 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 13:19:31 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 13:19:31 at java.util.concurrent.FutureTask.run(FutureTask.java:166) 13:19:31 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) 13:19:31 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) 13:19:31 at java.lang.Thread.run(Thread.java:636) 13:19:31 Caused by: java.lang.UnsupportedOperationException 13:19:31 at hudson.os.PosixAPI$1.getCurrentWorkingDirectory(PosixAPI.java:59) 13:19:31 at org.jruby.ext.posix.util.ExecIt.run(ExecIt.java:59) 13:19:31 at org.jruby.ext.posix.util.ExecIt.runAndWait(ExecIt.java:51) 13:19:31 at org.jruby.ext.posix.JavaLibCHelper.readlink(JavaLibCHelper.java:196) 13:19:31 at org.jruby.ext.posix.JavaPOSIX.readlink(JavaPOSIX.java:160) 13:19:31 at hudson.Util.resolveSymlink(Util.java:1067) 13:19:31 at hudson.Util.resolveSymlink(Util.java:1030) 13:19:31 at hudson.util.DirScanner$Glob.scan(DirScanner.java:107) 13:19:31 at hudson.FilePath.writeToTar(FilePath.java:1781) 13:19:31 at hudson.FilePath.copyRecursiveTo(FilePath.java:1708) 13:19:31 at hudson.FilePath.copyRecursiveTo(FilePath.java:1637) 13:19:31 at hudson.maven.reporters.AbstractMavenJavadocArchiver.postExecute(AbstractMavenJavadocArchiver.java:98) 13:19:31 at hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoSucceeded(Maven3Builder.java:478) 13:19:31 at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:459) 13:19:31 at org.jfrog.build.extractor.maven.BuildInfoRecorder.mojoSucceeded(BuildInfoRecorder.java:241) 13:19:31 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87) 13:19:31 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) 13:19:31 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228) 13:19:31 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 13:19:31 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 13:19:31 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) 13:19:31 ... 24 more causing build to fail.

    Jenkins JIRA | 5 years ago | ravn
    java.lang.UnsatisfiedLinkError: Unable to load library 'libc.so.6': com.sun.jna.Native.open(Ljava/lang/String;)J

  1. rohan 3 times, last 9 months ago
24 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsatisfiedLinkError

    Unable to load library 'libc.so.6': com.sun.jna.Native.open(Ljava/lang/String;)J

    at com.sun.jna.NativeLibrary.loadLibrary()
  2. Java Native Access
    Native.loadLibrary
    1. com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:166)
    2. com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:239)
    3. com.sun.jna.Library$Handler.<init>(Library.java:140)
    4. com.sun.jna.Native.loadLibrary(Native.java:366)
    4 frames
  3. JNA-POSIX
    POSIXFactory.getPOSIX
    1. org.jruby.ext.posix.POSIXFactory.loadLibC(POSIXFactory.java:96)
    2. org.jruby.ext.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:65)
    3. org.jruby.ext.posix.POSIXFactory.getPOSIX(POSIXFactory.java:24)
    3 frames
  4. Hudson
    FilePath$FileCallableWrapper.call
    1. hudson.os.PosixAPI.<clinit>(PosixAPI.java:41)
    2. hudson.util.IOUtils.mode(IOUtils.java:125)
    3. hudson.util.io.TarArchiver.visit(TarArchiver.java:102)
    4. hudson.util.DirScanner$Glob.scan(DirScanner.java:133)
    5. hudson.FilePath.writeToTar(FilePath.java:1939)
    6. hudson.FilePath.access$1000(FilePath.java:168)
    7. hudson.FilePath$36.invoke(FilePath.java:1880)
    8. hudson.FilePath$36.invoke(FilePath.java:1876)
    9. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348)
    9 frames
  5. Hudson :: Remoting Layer
    InterceptingExecutorService$1.call
    1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
    2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
    3. hudson.remoting.Request$2.run(Request.java:326)
    4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    4 frames
  6. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    5. java.lang.Thread.run(Thread.java:722)
    5 frames