Installing jenkins, lab: install jenkins on a vm

What does journalctl show?

Maybe edit the service to give more time for Jenkins to startup:

[Service]
TimeoutStartSec=600

The team are working on labs so it might be a bit slower today.

Receiving above error while trying to start jenkins service. Any tips on troubleshooting. Thanks

Like I said to the last guy what does journalctl say - it tells you what to do next in the error message.

I have configured jenkins as per the instructions. When I submitted, the validation is failing with error “jenkins user full name is not Anita”. But I have named it correctly.

Do you have a link to the lab please? Also should Jenkins User ID be: theadmin? Is that not the description?

I have resubmitted solution. This time the question asked me create a user having fullname Kirsty and did accordingly but it still failing with the same error.

Lab link: https://engineer.kodekloud.com/task?id=6468912dc1ff5e7e05478f5d

In KKE posting the error itself is not useful. We need to see the task description, the input and the results. You are probably better off raising your attempt for review on the KKE platform.

Also the link you posted is your session URL, no use to anyone else.

I noticed the same issue. On debugging through the journalctl logs, I found that port 8080 was already being used. So I manually changed the port to 8090 in the /usr/lib/systemd/system/jenkins.service:
Environment=“JENKINS_PORT=8090”

Hi, jumping in on this one as I ran into this issue as well but that part is resolved. As mentioned above, there’s a conflict with ttyd running on port 8080 (sudo lsof -i :8080)

Changing JENKINS_PORT to 8090 works and now am able to start the Jenkins service.

The issue now is that I’m running into 502 Bad Gateway. The top-right Jenkins UI button by default points to port 8080, but even after changing that URL to point to port 8090 (3-dots then “View Port”) will still end with a 502.

I checked and there’s no ufw or firewalld running so I’m perplexed as to why this is happening. Any insights?