sudo systemctl status jenkins
× jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/lib/systemd/system/jenkins.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2025-09-08 10:06:37 UTC; 2min 20s ago
Process: 46840 ExecStart=/usr/bin/jenkins (code=exited, status=1/FAILURE)
Main PID: 46840 (code=exited, status=1/FAILURE)
Sep 08 10:06:37 ubuntu-host systemd[1]: Failed to start Jenkins Continuous Integration Server.
even tried killing the pid of 8080 process but not happening.
Hi @hihitachi
Can you please share the lab on which you are facing this issue?
The process that enables the lab terminal to run in a browser runs on port 8080
Jenkins by default tries to bind to port 8080, but that port is in use by the above.
To make jenkins start on lab terminals, you need to change the port jenkins listens on in its config file to e.g. 8081
I tried updating a new port number other than default still same error so i tried on my windows laptop it works i even installed Java and it worked
Where are you updating the port number?
The binding exception is caused by the program ttyd
which makes the lab terminal available in the browser, so it cannot be stopped.
You need to edit the jenkins unit file /usr/lib/systemd/system/jenkins.service
, find the line
Environment="JENKINS_PORT=8080"
and change it there.
Then reload systemd and restart the service
systemctl daemon-reload
systemctl restart jenkins
Et voila!
root@ubuntu-host ~ ➜ systemctl status jenkins
● jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/usr/lib/systemd/system/jenkins.service; e
nabled; preset: enabled)
Active: active (running) since Sun 2025-09-14 16:00:25 EDT; 9min ago
Main PID: 13172 (java)
Tasks: 73 (limit: 77143)
Memory: 898.0M ()
CGroup: /system.slice/jenkins.service
└─13172 /usr/bin/java -Djava.awt.headless=true -jar /usr/share/java/jenkins.war --webroot=/var/cache/jenkins/wa
r --httpPort=8081
Sep 14 16:00:07 ubuntu-host jenkins[13172]: Please use the following password to proceed to installation: