Jenkins service not starting

I’m trying to start jenkins (I want to learn the tool), installed it with yay -S jenkins and enabled it with sudo systemctl enable jenkins. When I look at it with status, everything is alright, but when I start the service, this is what is whows me:

× jenkins.service - Extendable continuous integration server
     Loaded: loaded (/usr/lib/systemd/system/jenkins.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Sun 2023-04-30 13:08:18 CEST; 1s ago
   Duration: 13ms
    Process: 4321 ExecStart=/bin/sh -c eval $JENKINS_COMMAND_LINE (code=exited, status=127)
   Main PID: 4321 (code=exited, status=127)
        CPU: 7ms

...data... systemd[1]: Starting Extendable continuous integration server...
...data... systemd[1]: Started Extendable continuous integration server.
...data... jenkins[4324]: /bin/sh: line 1: /usr/lib/jvm/java-11-openjdk/jre/bin/java: File or directory doesn't exist
...data... systemd[1]: jenkins.service: Main process exited, code=exited, status=127/n/a
...data... systemd[1]: jenkins.service: Failed with result 'exit-code'.

I removed some personal data from that snippet. I’ll show you that java-11 is installed:

with pamac list -i | grep java

haskell-language-javascript               0.7.1.0-136                     community  7,8 MB
java-environment-common                   3-5                             extra      
java-runtime-common                       3-5                             extra      5,4 kB

with pamac list -i | grep jr

jre-openjdk                               19.0.2.u7-2                     extra      505,7 kB
jre-openjdk-headless                      19.0.2.u7-2                     extra      190,4 MB
jre11-openjdk                             11.0.18.u10-2                   extra      546,9 kB
jre11-openjdk-headless                    11.0.18.u10-2                   extra      167,5 MB
jre17-openjdk                             17.0.6.u10-2                    extra      505,7 kB
jre17-openjdk-headless                    17.0.6.u10-2                    extra      179,5 MB
jre8-openjdk                              8.362.u09-1                     extra      417,2 kB
jre8-openjdk-headless                     8.362.u09-1                     extra      104,1 MB

so… what’s failing? thanks for the help!

I also have a running docker container with jenkins in it, would love to understand how it interacts with my system, I believe having jenkins first in my system and then using it as a container will help me (I’m using the oficial jenkins docs)

This:

That mistake comes from /etc/conf.d/jenkins first line
it should be set to
/usr/lib/jvm/java-11-openjdk/bin/java

… but since we are not packaging jenkins probably that issue should be reported to Arch packager.

So… where do I report it?

https://archlinux.org/packages/?sort=&q=jenkins&maintainer=&flagged=

https://archlinux.org/packages/community/any/jenkins/

https://issues.jenkins.io/secure/Dashboard.jspa

change the file from e.g.

my /etc/conf.d/jenkins
JAVA=/usr/lib/jvm/java-17-openjdk/bin/java
JAVA_ARGS=-Xmx512m
JAVA_OPTS=
JENKINS_USER=jenkins
JENKINS_HOME=/var/lib/jenkins
JENKINS_WAR=/usr/share/java/jenkins/jenkins.war
JENKINS_WEBROOT=--webroot=/var/cache/jenkins
JENKINS_PORT=--httpPort=8090
#JENKINS_AJPPORT=--ajp13Port=-1
JENKINS_OPTS=
JENKINS_COMMAND_LINE="$JAVA $JAVA_ARGS $JAVA_OPTS -jar $JENKINS_WAR $JENKINS_WEBROOT $JENKINS_PORT $JENKINS_AJPPORT $JENKINS_OPTS"

# vim:set ts=2 sw=2 et:

until recently jenkins ran fine for me with manjaro. I switched to WoodpeckerCI a few months ago