By using AWS re:Post, you agree to the Terms of Use

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.

asked 7 months ago113 views
1 Answer
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 picture
SUPPORT ENGINEER
answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions