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.
cd /var/lib/jenkins
sudo nano jenkins.model.JenkinsLocationConfiguration.xml
# <?xml version='1.1' encoding='UTF-8'?>
# <jenkins.model.JenkinsLocationConfiguration>
# <jenkinsUrl>http://your-new-ip:8080/</jenkinsUrl>
# </jenkins.model.JenkinsLocationConfiguration>
sudo systemctl restart jenkins
Or
Jenkins UI
Dashboard > Manage Jenkins > System > "Jenkins URL"
http://your-new-ip:8080/
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With