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.

已提問 2 年前檢視次數 1192 次
1 個回答
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
支援工程師
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南