502 Bad Gateway After Changing Folder Ownership

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?

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.

Regards, KFSys