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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠