Upgrade is failing because of node upgrade?

I’ve tried everything. I was running Node 16.x but the latest version of Ghost (5.71.0) now refuses to upgrade until I upgrade to Node 18.x so I did that, confirmed Node and NPM updated, ran “ghost update” and everything went fine, but at the very end it won’t start. I didn’t change anything with the db. Here is what I get:

Ghost instance is not running! Starting...
+ sudo systemctl start ghost_moebis-com
+ sudo systemctl stop ghost_moebis-com
✖ Starting Ghost
A GhostError occurred.

Message: Ghost was able to start, but errored during boot with: connect ECONNREFUSED ::1:3306
Help: Unknown database error
Suggestion: journalctl -u ghost_moebis-com -n 50

Debug Information:
    OS: Ubuntu, v22.04.3 LTS
    Node Version: v18.17.1
    Ghost Version: 5.71.0
    Ghost-CLI Version: 1.25.3
    Environment: production
    Command: 'ghost restart'

Additional log info available in: /home/ghostinstall/.ghost/logs/ghost-cli-debug-2023-10-28T07_18_54_902Z.log

So I looked at the log and nothing here is helping either:

$ tail /home/ghostinstall/.ghost/logs/ghost-cli-debug-2023-10-28T07_17_16_566Z.log 
Message: Ghost was able to start, but errored during boot with: connect ECONNREFUSED ::1:3306
Help: Unknown database error
Suggestion: journalctl -u ghost_moebis-com -n 50
Stack: Error: Ghost was able to start, but errored during boot with: connect ECONNREFUSED ::1:3306
    at Server.<anonymous> (/usr/lib/node_modules/ghost-cli/lib/utils/port-polling.js:73:28)
    at Object.onceWrapper (node:events:628:28)
    at Server.emit (node:events:514:28)
    at emitCloseNT (node:net:2148:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:81:21)

Have a look here – this sounds similar :slight_smile:

1 Like

Thank you! that fixed it! Geez, you think the upgrade script would have some logic in there to fix that if IPv6 breaks mysql.

2 Likes