Executing the archive artifacts step you can find in the slave log following messages:
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)
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:
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)
But in general it seems to work. There is only an information in the log:
log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter).
log4j:WARN Please initialize the log4j system properly.
If there is a possibility to get more details from the slave client, please tell me. I couldn't find anything in the wiki.
- is related to
-
JENKINS-22425 safeRestart (and restart) via url causes exception (missing libjnidispatch.so) on RaspberryPi (ARM)
- Resolved
-
JENKINS-24521 Update jna from 3.3.0-jenkins to 4.1.0 (or newer)
- Resolved