All of a sudden I get a 502 Bad Gateway on my Ghost website. What's happening.

So I use Ghost with Digital ocean, and about a week ago I updated to the recent version of Ghost…my website ( was still working fine. All of sudden today I woke up to 502 error. What’s happening here? Also I use Cloudflare with my domain


I’m just facing with this issue, as well. I have updated my ghost to 3.40.4 and it suddenly crashed showing 502 bad gateway. I have done nothing else, just updated it and it was working just fine before teh update.

Any updates on this issue? Posted this issue on ghost’s forum as well but not answer unfortunately.

Submit an 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.

Hi there,

I can see that your website is already up and running again. Would you mind sharing here with the community how you fixed the error?

Usually, for 502 error, I would recommend following the steps from this answer here:

Regards, Bobby

All I had to do was restart Ghost. I believe there is a command on the CLI to restart Ghost and that resolved the issue