Getting error while doing Jenkins Level 1 task 1

I am doing the Jenkins Level 1 task in which the Jenkins installation is needed. So, I have installed the Jenkins but I am unable to start the Jenkins. I have gave

sudo systemctl start jenkins

command but getting following error

thor@jumphost ~$ sudo systemctl start jenkins
Job for jenkins.service failed because the control process exited with error code.
See "systemctl status jenkins.service" and "journalctl -xeu jenkins.service" for details.
thor@jumphost ~$

So, I have checked that port 8080 is occupied by another process. So, I tried to change the port numbrer of that process which is running on port 8080. But nothing has happened please help me.

Hi @yash1307,

This means the Jenkins service couldn’t start. Have you installed Java? It’s required for Jenkins to run.

Yes, I installed Java also but later I realised I was doing wrong. Actually in that task it is mentioned that first we need to login as root user and I am installing the jenkins via user named thor. So, later zi switched to root user installed the jenkins and now working fine.

1 Like

Yes, just make sure we’re able to start the service. Treat the task as a real one that needs to work. If anything is unclear or has special requirements, feel free to do whatever is needed to get the service running properly.

1 Like