Report this

What is the reason for this report?

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

Posted on July 12, 2021

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 -Djava.security.egd=file:/dev/./urandom -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?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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 0.0.0.0:8080 rather than 127.0.0.1:8080 as if you want it to be accessible from the outside world, it has to be 0.0.0.0:8080:

netstat -plant | grep 8080

Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.