Report this

What is the reason for this report?

I have a droplet with nginx/node, some requests don't get to the server? Any ideas how to debug?

Posted on December 6, 2016

I have a nodejs server behind nginx. Sometimes, http requests get “timeout”. Checking both the access and error logs for both the nginx and node does’t even show the requests coming to either of them, let alone fail. Some of these requests are from the server itself (using curl via crontab).

I’m lost on how to even begin to start the problem. Any ideas?



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.

Can you post your /etc/nginx/site-enabled/ files ?

I would make sure that your connection from which you test is stable enough. Unstable connection can cause that request you sent doesn’t even get send. You can create script that will curl server and run it from multiple workstations/connections. Ping could also be good to test server responsiveness but curl would be better if available.

From server side you can verify that Droplet isn’t under heavy load. Check CPU and RAM. Test above and this in same time, you can get some pattern that’ll help debug issue. You can also see current I/O Bandwidth from DO Control Panel.

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.