Jenkins not working but the process is running
The service appears to be up but when you attempt to login you get
Check out the log files
/var/log/jenkins/jenkins.log
2021-03-24 16:18:04.617+0000 [id=1] SEVERE winstone.Logger#logInternal: Container startup failed
java.io.FileNotFoundException: /var/cache/jenkins/war/META-INF/MANIFEST.MF (No such file or directory)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
at winstone.HostConfiguration.getWebRoot(HostConfiguration.java:278)
at winstone.HostConfiguration.<init>(HostConfiguration.java:81)
at winstone.HostGroup.initHost(HostGroup.java:66)
at winstone.HostGroup.<init>(HostGroup.java:45)
at winstone.Launcher.<init>(Launcher.java:172)
at winstone.Launcher.main(Launcher.java:362)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at Main._main(Main.java:375)
at Main.main(Main.java:151)
Notice that the id of the user and the files do not correspond
[frealvar@den01uie jenkins]$ id jenkins
uid=696124(jenkins) gid=10(wheel) groups=10(wheel),59969(jenkins),52932(svn_virtualassistant)
Mar 24 09:18:03 den01uie systemd[1]: Starting LSB: Jenkins Automation Server...
Mar 24 09:18:03 den01uie runuser[116391]: pam_unix(runuser:session): session opened for user jenkins by (uid=0)
Fix
sudo mkdir -p /var/cache/jenkins
sudo chown -R jenkins:jenkins /var/cache/jenkins
Restart Jenkins
sudo systemctl restart jenkins
sudo systemctl status jenkins