Report this

What is the reason for this report?

Ghost Image Problems - Bad Gateway

Posted on April 8, 2022

I just finished attempting to do a Ghost 1-click install on a droplet. I’ve done nothing out of the ordinary. I pointed the domain to the droplet, completed the setup of the droplet by logging into the terminal and following the steps. Yet, when I try to attempt getting to the actual website I’m hit with a bad gateway error. Why is this happening? How do I fix it?



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.

Hello,

I could suggest the following:

  • First SSH into your Droplet
  • Then run sudo -i -u ghost-mgr to switch to the Ghost user
  • After that access the Ghost directory with: cd /var/www/ghost
  • Then run the ghost doctor command

Feel free to share the output of the command here.

Also make sure to check your Nginx error log to see the actual error rather than the generic 502 error:

tail -100 /var/log/nginx/error.log

Let me know how it goes.

Best,

Bobby

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.