Jenkins installed on EC2 instance, but, it doesn't seem to work. Jenkins status says active but nothing runs on port 8080

0

I have installed jenkins on AWS EC2 instance, followed this article. https://www.jenkins.io/doc/tutorials/tutorial-for-installing-jenkins-on-AWS/

When I check jenkins status, using "sudo service jenkins status"

● jenkins.service - LSB: Jenkins Automation Server

Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled)

Active: active (exited) since Fri 2022-02-25 12:04:09 UTC; 57min ago Docs: man:systemd-sysv-generator(8)

Feb 25 12:04:09 ip-172-31-33-61.ap-south-1.compute.internal systemd[1]: Starting LSB: Jenkins Automation Server... Feb 25 12:04:09 ip-172-31-33-61.ap-south-1.compute.internal jenkins[22299]: Starting Jenkins [ OK ] Feb 25 12:04:09 ip-172-31-33-61.ap-south-1.compute.internal systemd[1]: Started LSB: Jenkins Automation Server.

But when I use "telnet localhost 8080", it says

Trying 127.0.0.1...

telnet: connect to address 127.0.0.1: Connection refused

and "sudo netstat -anlp | grep 8080" gives no output.

Can someone please help me with this? Thank you.

demandé il y a 2 ans1192 vues
1 réponse
1

Hello Rakshith,

According to the sudo service jenkins status output that you've posted, it looks like your Jenkins process has exited due to a possible error.

Active: active (exited) since Fri 2022-02-25 12:04:09 UTC; 57min ago

As the process exited, you are not able to connect to the port 8080.

To find out more about the issue, you can run the below command and check for any errors that could have contributed to the issue.

sudo journalctl -u jenkins

I hope this is helpful!

profile pictureAWS
INGÉNIEUR EN ASSISTANCE TECHNIQUE
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions