Error 502 after creating a new droplet

February 21, 2019 326 views
Deployment Configuration Management Debian

Hi! I'm created new droplet via snapshot, but after binding the domain to the new IP, i see 502 error.

1 Answer

Hey friend,

I'm assuming you are referring to the 502 Bad Gateway error. This happens when a web server fails to connect to a back-end service that it is configured to pull data from when a page is requested. Most commonly this refers to reverse proxy setups or php-fpm, where either the service being proxied to or php-fpm is not running.

It may be that your web server calls a back-end app that was not configured to start at boot time, or that it has an error starting. Checking the web server logs may help you to identify what that app is, but from there it's hard to advise further as that app could be almost anything and I'm not sure what it is.

Jarland

  • Thank you for answer!
    I have Flask app on my original droplet.
    Can you tell me what settings (may be nginx) need to be changed on my new droplet created via snapshot?

Have another answer? Share your knowledge.