Comment 12 for bug 1662813

Revision history for this message
Frederik Hartmann (hartmafk) wrote :

I'm trying to run Jenkins installed from the official Jenkins repository.

SO far no Jenkins installation has worked out of the box and my mention that I can install a fresh system was an offering to you to replay the installation and make sure that no changes remain and I have the full installation trace.

Here is what I did on a fresh 18.04 system(copy from https://jenkins.io/doc/book/installing/#debian-ubuntu):

apt install openjdk-8-jre-headless
apt install libjna-java

wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins

After installation and initial configuration the url

http://xxx:8080/restart

will give the following message:
Jenkins cannot restart itself as currently configured.

If the following link is added, everything works:

/usr/lib/s390x-linux-gnu/libjnidispatch.so -> /usr/lib/s390x-linux-gnu/jni/libjnidispatch.system.so

It is important to note that some/most parts of jna can still work with jni being unavailable, it is only required for some of the functionality.

Similar issues (with a different program) have been discussed here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858876