502 Bad Gateway After Changing Folder Ownership

Posted November 8, 2020 341 views
DjangoUbuntu 20.04

I’m a bit of an amateur at websites so I used DigitalOcean’s One-Click App for Django. I got everything working and decided to create a new user and give them ownership (as per this tutorial: of the /home/ folder.

Since then I’m getting a 502 Bad Gateway when I try to connect to the website. From the reading I’ve done, I’m pretty sure that it’s something to do with gunicorn, but I seem to have messed it up badly.

How can I debug this problem and get my website back up and running?

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 @pr8448,

I’ll recommend you to check your error log. In the error log you’ll see the exact error and can further act upon it.

If you are uncertain what the error means, please post it here and we’ll try to pinpoint the exact issue.