I am learning Jenkins right now. I installed Jenkins on a t2.small Ubuntu EC2 instance. Everything was working fine. I stopped the instance. The next day, I started the instance and it took a very long time for the sign-in page and dashboard to load, basically unusable. I cannot seem to find troubleshooting information, and I am also new to Linux, AWS, and Jenkins.
I made sure that I was connected to the correct public IP address (no time out). I also restarted the Jenkins service. I also tried accessing the public IP address on a different browser. I ended up just terminating the instance and creating a new one.
2
Answers
I think I figured out the problem, which seems dumb and obvious now. I was setting the Jenkins URL without considering that the public IP of the instance would change upon stopping and starting. I removed the configuration and it works fine now.
When you reboot(stop and start) the ec2 instance, it changes its public IP address, so we need to change jenkins URL.
goto http://<"new-IP">/manage/configure and change the jenkins url from you old IP to your current IP.
You may also face a Reverse Proxy error on your jenkins dashboard, hinting the same.