Ghost won't start

I followed the installation steps in the guide. But when I ghost start I get an error.

Log ;


yilmaz@xi5z6cpl2s:/var/www/sitename$ cat /home/yilmaz/.ghost/logs/ghost-cli-debug-2024-07-11T05_39_10_877Z.log
Debug Information:
    OS: Ubuntu, v22.04.4 LTS
    Node Version: v18.20.4
    Ghost Version: 5.87.1
    Ghost-CLI Version: 1.26.0
    Environment: production
    Command: 'ghost start'
Message: Could not communicate with Ghost
Suggestion: journalctl -u ghost_yildology-com -n 50
Stack: Error: Could not communicate with Ghost
    at Server.<anonymous> (/usr/lib/node_modules/ghost-cli/lib/utils/port-polling.js:91:20)
    at Object.onceWrapper (node:events:631:28)
    at Server.emit (node:events:517:28)
    at emitCloseNT (node:net:2221:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:81:21)

yilmaz@xi5z6cpl2s:/var/www/sitename$

Ghost Doctor

image

edit :
I want to install from scratch. What should I do to avoid these problems? I think there are port problems. It creates problems when it is 8000.

Edit 2 : I bought a VPS from a different company and the problem was solved. I guess it was a problem with the company.

I’m not sure what directions you’re following, but nothing officially supported has Apache. So, some possibilities:

  1. You’re following some guide other than the official directions for Ubuntu. If you post your Apache config and your ghost config, it’s possible someone will be able to help you, but the standard config uses NGINX, so you may be better off switching.

  2. You followed the directions, but Apache was already installed and is listening on port 80, which is messing things up.

(This error might also be caused by problems communicating with the database, so it’s possible there are two problems here - Apache is interfering and MySQL has a problem.)

How to start from scratch? If this is a brand new VPS with nothing else in it, consider reverting it to default Ubuntu 22 (if your host offers this) and then carefully following the official install directions linked above. If there’s other stuff on the server, run ghost uninstall, and try again, after making sure Apache is stopped and MySQL is running.

Do you recommend pikapods? It works flawlessly too. Do you think it is reliable? Thanks

I think Pikapods are great if you need a basic Ghost install online fast and cheap. (I host a couple hobby and demo things there, myself.) I’m not convinced that you should run a production site there.

1 Like