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

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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 @rikeshk012330,
It looks like that your Gunicorn service has crashed and Nginx is unable to connect to it.
To fix the error you have to start the Gunicorn service.
For more information on how to troubleshoot 502 Nginx errors, I could suggest following the steps from this answer here:
https://www.digitalocean.com/community/questions/502-bad-gateway-nginx-2
Regards, Bobby
Gunicorn is working. My memory logs are:
root@develop-110:~# free -m
total used free shared buff/cache available
Mem: 3936 354 2308 12 1272 3283
Swap: 0 0 0
Only with large file uploads, I have 502 gateway errors