I am running into a 504 gateway timeout error with my express API. I have a droplet using docker-compose to spin up all the resources. When doing research into the issue people say usually you run out of ram but my memory is only at 60%. I think this is more of a load balancer issue but am unaware of the steps to proceed. I added the client_header_timeout config to nginx.config but that didn’t solve the issue. Any insights would be appreciated.
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!
Hello,
I could suggest checking your logs to see if there is some more information on why the connection could be timing out:
docker-compose logs
Feel free to share the logs here after removing any sensitive information.
Also, another thing, if you wish you could share your docker-compose.yaml file here along with your Nginx config and I could have a further look into this.
Regards,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.