Unable to start Jenkins after installation

I just installed jenkins following instructions at

  • changed default port to 7070 (HTTP_PORT=7070 in /etc/default/jenkns)
  • giddeon@tekserver:~$ java -version
    openjdk version “11.0.13” 2021-10-19
    OpenJDK Runtime Environment (build 11.0.13+8-Ubuntu-0ubuntu1.21.10)
    OpenJDK 64-Bit Server VM (build 11.0.13+8-Ubuntu-0ubuntu1.21.10, mixed mode, sharing)

But after installation, jenkins exits right away
giddeon@tekserver:~$ sudo systemctl status jenkins
● jenkins.service - LSB: Start Jenkins at boot time
Loaded: loaded (/etc/init.d/jenkins; generated)
Active: active (exited) since Mon 2022-02-14 22:06:18 EST; 27s ago
Docs: man:systemd-sysv-generator(8)
Process: 109453 ExecStart=/etc/init.d/jenkins start (code=exited, status=0/SUCCESS)
CPU: 175ms

Feb 14 22:06:16 tekserver systemd[1]: Starting LSB: Start Jenkins at boot time…
Feb 14 22:06:16 tekserver jenkins[109453]: Correct java version found
Feb 14 22:06:16 tekserver jenkins[109453]: * Starting Jenkins Automation Server jenkins
Feb 14 22:06:16 tekserver su[109493]: (to jenkins) root on none
Feb 14 22:06:16 tekserver su[109493]: pam_unix(su-l:session): session opened for user jenkins by (uid=0)
Feb 14 22:06:17 tekserver su[109493]: pam_unix(su-l:session): session closed for user jenkins
Feb 14 22:06:18 tekserver jenkins[109453]: …done.
Feb 14 22:06:18 tekserver systemd[1]: Started LSB: Start Jenkins at boot time.

Any help is appreciated

Based on that output, I’m making some guesses that you’ll need to confirm. My guesses are that you are running:

  • Ubuntu 21.10, since when I run on Ubuntu 21.04, it reports JDK build “build 11.0.13+8-Ubuntu-0ubuntu1.21.04”. Are you running Ubuntu 21.04?
  • Jenkins 2.334 since you didn’t say that you’re running the long term support release. Are you running Jenkins 2.334 or some other version?

Review the contents of /var/log/jenkins/jenkins.log and see if it provides more details about the failure. When I installed Jenkins 2.334 on Ubuntu 21.04, it reported the initial administrator password in the log file and was waiting for me to login.

It may report that port 7070 is already in use. If so, you’ll either need to stop the program that is using port 7070 or choose another port for Jenkins to use.

Thank you Mark

  • let me try the recommendations
    And to confirm
  • I am running Ubuntu 21.10 (GNU/Linux 5.13.0-28-generic x86_64)