Question

Ghost Image Problems - Bad Gateway

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?


Submit an answer
Answer a question...

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.

Bobby Iliev
Site Moderator
Site Moderator badge
April 9, 2022

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