Hi all,
Been a while since I’ve used Ghost, giving it a try again on a VPS with 30G of disk space and 2GB of RAM, it seems to install correctly however when I have ghost install try to start it it replies with:
One or more errors occurred.
- GhostError
Message: Ghost was able to start, but errored during boot with: connect ECONNREFUSED ::1:3306
Help: Unknown database error
Suggestion: journalctl -u ghost_enigmatic-zone -n 50Debug Information:
OS: Ubuntu, v22.04.2 LTS
Node Version: v18.16.1
Ghost Version: 5.54.2
Ghost-CLI Version: 1.24.2
Environment: production
Command: ‘ghost install’Additional log info available in: /home/strange/.ghost/logs/ghost-cli-debug-2023-07-17T02_00_31_213Z.log
Try running ghost doctor to check your system for known issues.
You can always refer to Ghost-CLI - A fully loaded tool for installation and configuration for troubleshooting.
strange@blog:/var/www/enigmatic.zone$ cat /home/strange/.ghost/logs/ghost-cli-debug-2023-07-17T02_00_31_213Z.log
Debug Information:
OS: Ubuntu, v22.04.2 LTS
Node Version: v18.16.1
Ghost Version: 5.54.2
Ghost-CLI Version: 1.24.2
Environment: production
Command: ‘ghost install’
Message: Ghost was able to start, but errored during boot with: connect ECONNREFUSED ::1:3306
Help: Unknown database error
Suggestion: journalctl -u ghost_enigmatic-zone -n 50
Stack: Error: Ghost was able to start, but errored during boot with: connect ECONNREFUSED ::1:3306
at Server. (/usr/lib/node_modules/ghost-cli/lib/utils/port-polling.js:73:28)
at Object.onceWrapper (node:events:627:28)
at Server.emit (node:events:513:28)
at emitCloseNT (node:net:2135:8)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
When I try to run ghost doctor I get:
strange@blog:/var/www/enigmatic.zone$ ghost doctor
Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.orgChecking system Node.js version - found v18.16.1
Checking logged in user
Ensuring user is not logged in as ghost user
Checking if logged in user is directory owner
Checking current folder permissions
Checking system compatibility
Checking for a MySQL installation
- sudo systemctl is-active ghost_enigmatic-zone
- sudo systemctl reset-failed ghost_enigmatic-zone
Validating config
Checking folder permissions
Checking file permissions
Checking content folder ownership
Checking memory availability
Checking binary dependencies
Checking free space
Checking systemd unit file
Checking systemd node version - found v18.16.1
Other information that may be helpful:
strange@blog:/var/www/enigmatic.zone$ journalctl -u ghost_enigmatic-zone -n 50
Hint: You are currently not seeing messages from other users and the system.
Users in groups ‘adm’, ‘systemd-journal’ can see all messages.
Pass -q to turn off this notice.
– No entries –
Any suggestions on how to fix it? I’m using Ubuntu 22.04, with Nodejs 18.04.