My website not launch

I’m experiencing a 502 Bad Gateway error when trying to access my website, which is running Ghost CMS. Here’s an overview of my setup and the steps I’ve taken so far:

System Details:

  • Operating System: Debian GNU/Linux, version 12
  • Node Version: v20.11.1
  • Ghost-CLI Version: 1.26.1
  • Environment: Production
  • Website URL: http://mediuminside.com (replace with your actual URL)

What I’ve Tried:

  1. Verified the status of Ghost using ghost status and attempted to restart it using ghost start.
  2. Checked the Nginx configuration to ensure it’s pointing to the correct port (2368).
  3. Restarted both the Ghost service and Nginx.
  4. Checked the Nginx and Ghost logs for errors:
  • Nginx Error Log: (Provide any relevant log excerpts)
  • Ghost Log: (Provide any relevant log excerpts)

Issue Description: Despite these troubleshooting steps, the website still shows a 502 error. Nginx seems to be working fine, but it cannot connect to the Ghost backend. I’m not sure if it’s a permissions issue, a port conflict, or something else entirely.

Has anyone else encountered this problem or have any suggestions on how to resolve it?

Thanks in advance for your help!

What version of ghost? And what do your logs show?

1 Like

Latest One 5.100…? How to show logs ?

Your ghost logs might be in (ghostfolder)/content/logs

Nginx logs maybe in /var/log/nginx/

It looks like ghost is running, so you may want to share your nginx setup. Did you change anything recently?

I think you’re going to want to look in sites-active


2024/11/10 18:32:51 [error] 345#345: *184 connect() failed (111: Connection refused) while connecting to upstream, client: 108.90.230.5, server:

Use the following command to call the Ghost service directly on the server, check if Ghost is accessible:

curl -I http://localhost:2368