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 systemd[1]: Starting Extendable continuous integration server... systemd[1]: Started Extendable continuous integration server. jenkins[4324]: /bin/sh: line 1: /usr/lib/jvm/java-11-openjdk/jre/bin/java: File or directory doesn't exist systemd[1]: jenkins.service: Main process exited, code=exited, status=127/n/a 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                          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)


That mistake comes from /etc/conf.d/jenkins first line
it should be set to

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

So… where do I report it?

change the file from e.g.

my /etc/conf.d/jenkins

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

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