Report this

What is the reason for this report?

Error 502 after creating a new droplet

Posted on February 21, 2019

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



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!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.