Ghost is not running after update

I have a ghost instance running on a Digital Ocean droplet. Today, I tried to update my Ghost instance to the recent 5.40.1 version. However, due to some issue, the update got stuck, and when I restarted the shell running ghost update, I was running the latest version.

However since I tried to update, my ghost website is not working, I am getting the 502 nginx error screen. Running ghost doctor shows no error.

I have tried to reboot the instance and ghost start. But this is also not working. Sometimes ghost start gets stuck show no progress and shows Starting Ghost: blog forever.

And after ghost start I get this error:

A GhostError occurred.

Message: Could not communicate with Ghost
Suggestion: journalctl -u ghost_blog-indexdaily-in -n 50

Debug Information:
    OS: Ubuntu, v22.04.1 LTS
    Node Version: v16.17.0
    Ghost Version: 5.40.1
    Ghost-CLI Version: 1.24.0
    Environment: production
    Command: 'ghost start'

Additional log info available in: /home/ghost-mgr/.ghost/logs/ghost-cli-debug-2023-03-26T14_57_53_345Z.log

This is what I have found in the log file:

Debug Information:
    OS: Ubuntu, v22.04.1 LTS
    Node Version: v16.17.0
    Ghost Version: 5.40.1
    Ghost-CLI Version: 1.24.0
    Environment: production
    Command: 'ghost start'
Message: Could not communicate with Ghost
Suggestion: journalctl -u ghost_blog-indexdaily-in -n 50
Stack: Error: Could not communicate with Ghost
    at Server.<anonymous> (/usr/lib/node_modules/ghost-cli/lib/utils/port-polli>    at Object.onceWrapper (node:events:627:28)
    at Server.emit (node:events:513:28)
    at emitCloseNT (node:net:1820:8)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)

As asked, I tried journalctl -u ghost_blog-indexdaily-in -n 5

But this command gives me this

Mar 27 10:31:04 blog-ghost systemd[1]: Stopped Ghost systemd service for blog: blog-indexdaily-in.
Mar 27 10:31:04 blog-ghost systemd[1]: ghost_blog-indexdaily-in.service: Consumed 1.052s CPU time.
Mar 27 10:31:04 blog-ghost systemd[1]: ghost_blog-indexdaily-in.service: Start request repeated too quickly.
Mar 27 10:31:04 blog-ghost systemd[1]: ghost_blog-indexdaily-in.service: Failed with result 'start-limit-hit'.
Mar 27 10:31:04 blog-ghost systemd[1]: Failed to start Ghost systemd service for blog: blog-indexdaily-in.

How can I get this issue resolved without losing my website and its data?

What issue? Maybe, restore a snapshot, and try again?

ghost update --force solved the problem for me.

1 Like