Fresh Droplet loads a lot and browser returns "server not responding"

Posted July 12, 2021 115 views
Getting StartedAPIDigitalOcean Droplets

I have just created a droplet, installed jre, jkd and maven. I uploaded a SPRING project that was running perfectly on my machine in Idea editor, but when I access <ip>:8080, it loads some long time and then browser returns “server not responding”. Why is that?

All that I did was just fetch from GitHub.
Also, this is how I am starting the app:

mvn clean install
java -Xverify:none -jar target/app-0.0.1-SNAPSHOT.jar

Also, to permanently deploy the app, all that I do is add an & at the end of the second command. Is it fine? Do you recommend that?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi there @TheJavaDevv2,

If you have a firewall like ufw make sure to open port 8080:

ufw allow 8080

Also I could suggest using netstat to check if the application is actually listening on rather than as if you want it to be accessible from the outside world, it has to be

netstat -plant | grep 8080