Question

Odoo DigitalOcean 502 Bad Gateway

After a moment of inactivity, I have just reactivated one of my digitalocean droplets on which I have deployed an odoo 14, but it returns a 502 Bad Gateway nginx/1.18.0 (Ubuntu) error. Can you help me identify the source of the problem and solve it at the same time please?


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.

Hello @schalcke

You can verify that Nginx is running fine. 502 Bad Gateway nginx is a generic Nginx error.

To check the status:

  1. sudo systemctl status nginx

If there is an error message you can also check the journal logs to extract additional information:

  1. journalctl -xe

To restart the service:

  1. sudo systemctl restart nginx

Also, I’ll include this question from our community, make sure to check Bobby’s reply as it includes really useful information (video of troubleshooting as well)

https://www.digitalocean.com/community/questions/502-bad-gateway-nginx-2

Regards