Odoo 502 Bad Gateway after Restoring Droplet

Just restored a droplet with Odoo utlizing Postgresql. I’m also using Nginx to redirect my URL to the server. Unfortunately, now I am getting the message "502 Bad Gateway nginx/1.18.0 (Ubuntu) " I have spent all day trying to find resources online testing a host of solutions. Nothing has worked as of yet.

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.

Hi @Euler314,

Most often than not when you see a “502 Bad Gateway nginx” error it’s related to your Application rather than Nginx. Having said that, you can always check your error logs and see the exact error so you know what to search and how to troubleshoot.

First, I’ll suggest checking the error log of your Nginx service. Usually it can be found in /var/log/nginx/error.log or /var/log/nginx/error_log. In can tail the log and see what’s going on. It should suggest where in your application to look.

If this doesn’t work, check the error log of your application. It should also provide you with a more precise error that just searching for a 502 Bad Gateway.