Ghost start fail on Ubuntu 22.04

Hello !

I tried to install Ghost on an Ubuntu 22.04.
A strange error occurs when I run a “ghost start”.
The site is accessible but after about 5 minutes, ghost is shutting down and an error appears:

✖ Starting Ghost: blog-XXX-fr
A GhostError occurred.

Message: Could not communicate with Ghost
Suggestion: journalctl -u ghost_blog-XXX-fr -n 50

Debug Information:
    OS: Ubuntu, v22.04.4 LTS
    Node Version: v18.20.1
    Ghost Version: 5.81.1
    Ghost-CLI Version: 1.26.0
    Environment: production
    Command: 'ghost start'

In the log file :


Message: Could not communicate with Ghost
Suggestion: journalctl -u ghost_blog-XXX-fr -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)

Resultats of journalctl -u ghost_blog-XXX-fr -n 100 :

Apr 04 16:46:29 blog node[1188]: [2024-04-04 16:46:29] INFO Ghost is running in production...
Apr 04 16:46:29 blog node[1188]: [2024-04-04 16:46:29] INFO Your site is now available on https://blog.XXX.fr/
Apr 04 16:46:29 blog node[1188]: [2024-04-04 16:46:29] INFO Ctrl+C to shut down
Apr 04 16:46:34 blog node[1188]: [2024-04-04 16:46:34] INFO Bootstrap socket timed out.
Apr 04 16:46:34 blog node[1188]: [2024-04-04 16:46:34] INFO Ghost server started in 6.15s
Apr 04 16:46:35 blog node[1188]: [2024-04-04 16:46:35] INFO Bootstrap client was closed.
Apr 04 16:46:35 blog node[1188]: [2024-04-04 16:46:35] INFO Database is in a ready state.
Apr 04 16:46:35 blog node[1188]: [2024-04-04 16:46:35] INFO Ghost database ready in 6.539s
Apr 04 16:46:35 blog node[1188]: [2024-04-04 16:46:35] WARN Missing mail.from config, falling back to a generated email address. Please update your config file and set a valid >
Apr 04 16:46:38 blog node[1188]: [2024-04-04 16:46:38] INFO Ghost URL Service Ready in 10.133s
Apr 04 16:46:39 blog node[1188]: [2024-04-04 16:46:39] INFO Adding offloaded job to the queue
Apr 04 16:46:39 blog node[1188]: [2024-04-04 16:46:39] INFO Scheduling job mentions-email-report at 9 48 * * * *. Next run on: Thu Apr 04 2024 16:48:09 GMT+0000 (Coordinated Un>
Apr 04 16:46:39 blog node[1188]: [2024-04-04 16:46:39] INFO Adding offloaded job to the queue
Apr 04 16:46:39 blog node[1188]: [2024-04-04 16:46:39] INFO Scheduling job clean-expired-comped at 51 43 2 * * *. Next run on: Fri Apr 05 2024 02:43:51 GMT+0000 (Coordinated Un>
Apr 04 16:46:39 blog node[1188]: [2024-04-04 16:46:39] INFO Adding offloaded job to the queue
Apr 04 16:46:39 blog node[1188]: [2024-04-04 16:46:39] INFO Scheduling job clean-tokens at 54 45 18 * * *. Next run on: Thu Apr 04 2024 18:45:54 GMT+0000 (Coordinated Universal>
Apr 04 16:46:40 blog node[1188]: [2024-04-04 16:46:40] INFO Ghost booted in 11.449s
Apr 04 16:46:40 blog node[1188]: [2024-04-04 16:46:40] INFO Adding offloaded job to the queue
Apr 04 16:46:40 blog node[1188]: [2024-04-04 16:46:40] INFO Scheduling job update-check at 25 19 15 * * *. Next run on: Fri Apr 05 2024 15:19:25 GMT+0000 (Coordinated Universal>
Apr 04 16:46:40 blog node[1188]: [2024-04-04 16:46:40] INFO Running milestone emails job on Thu Apr 04 2024 16:46:40 GMT+0000 (Coordinated Universal Time)
Apr 04 16:46:45 blog node[1188]: [2024-04-04 16:46:45] INFO Bootstrap socket timed out.
Apr 04 16:46:45 blog node[1188]: [2024-04-04 16:46:45] INFO Bootstrap client was closed.
Apr 04 16:46:55 blog node[1188]: [2024-04-04 16:46:55] INFO "GET /favicon.ico" 200 6ms
Apr 04 16:46:55 blog node[1188]: [2024-04-04 16:46:55] INFO "GET /about/" 200 521ms
Apr 04 16:46:55 blog node[1188]: [2024-04-04 16:46:55] INFO "GET /assets/built/screen.css?v=c40c223f7c" 200 16ms
Apr 04 16:46:55 blog node[1188]: [2024-04-04 16:46:55] INFO "GET /assets/built/source.js?v=c40c223f7c" 200 18ms
Apr 04 16:46:55 blog node[1188]: [2024-04-04 16:46:55] INFO "GET /public/cards.min.css?v=c40c223f7c" 200 10ms
Apr 04 16:46:55 blog node[1188]: [2024-04-04 16:46:55] INFO "GET /public/cards.min.js?v=c40c223f7c" 200 8ms
Apr 04 16:46:55 blog node[1188]: [2024-04-04 16:46:55] INFO "GET /public/member-attribution.min.js?v=c40c223f7c" 200 10ms
Apr 04 16:46:55 blog node[1188]: [2024-04-04 16:46:55] INFO "GET /members/api/member/" 204 19ms
Apr 04 16:46:55 blog node[1188]: [2024-04-04 16:46:55] INFO "GET /ghost/api/content/settings/?key=c95d3136cb8141be6f0e8a6fd5&limit=all" 304 166ms
Apr 04 16:46:55 blog node[1188]: [2024-04-04 16:46:55] INFO "GET /ghost/api/content/tiers/?key=c95d3136cb8141be6f0e8a6fd5&limit=all&include=monthly_price,yearly_price,benefits">
Apr 04 16:46:55 blog node[1188]: [2024-04-04 16:46:55] INFO "GET /ghost/api/content/newsletters/?key=c95d3136cb8141be6f0e8a6fd5&limit=all" 304 54ms
Apr 04 16:47:37 blog node[1188]: [2024-04-04 16:47:37] INFO Updating incoming recommendations on boot
Apr 04 16:48:09 blog node[1188]: [2024-04-04 16:48:09] INFO Worker for job "mentions-email-report" online
Apr 04 16:48:09 blog node[1188]: [2024-04-04 16:48:09] INFO Worker for job mentions-email-report sent a message: done
Apr 04 16:51:27 blog systemd[1]: Stopping Ghost systemd service for blog: blog-XXX-fr...
Apr 04 16:51:27 blog node[1188]: [2024-04-04 16:51:27] WARN Ghost is shutting down
Apr 04 16:51:27 blog node[1188]: [2024-04-04 16:51:27] WARN Ghost has shut down
Apr 04 16:51:27 blog node[1188]: [2024-04-04 16:51:27] WARN Your site is now offline
Apr 04 16:51:27 blog node[1188]: [2024-04-04 16:51:27] WARN Ghost was running for 5 minutes

Could you help me understand the problem?

Thank you very much!

The logs show that your blog was stopped, but it’s not clear that it crashed.

Please check the status output:

systemctl status “ghost*”

I’ve just managed to install it without any errors.
I don’t know what the problem was.
Thanks a lot!

1 Like