Question

1-Click Droplet for Ghost - working, but frequent 502 Bad Gateway errors

Hi,

I successfully set up the 1-Click droplet for Ghost. It runs fine, Ghost Doctor doesn’t show any errors. However, the site goes down every few days and shows a 502 Bad Gateway error. As soon as I restart Ghost in the console it starts working again. I doubt it has anything to do with memory as content and traffic is still low/limited. I use Cloudflare for DNS/CDN. Ghost log -f only shows a “cookie members ssr not found” warning, which doesn’t seem to be the issue. sudo nginx -t says “ok” and “successful”.

Can someone please help or point me in the correct direction? Thanks.


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there @apoeschl,

It looks like that your Ghost service might be crashing, how much RAM do you have on your Droplet?

I could suggest checking your system logs and possibly adding a little bit more RAM and a SWAP file:

https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04

Let me know how it goes. Regards, Bobby

Edit: Log shows the following errors (see picture, couldn’t copy any text from the console):

https://imgur.com/WKBXCL0