Self hosted on a DigitalOcean droplet, been running fantastic for several years now.
Made a blog post on Monday of this week as a matter fact.
Went to the URL today: site is dead.
ghost doctor
✔ Checking system Node.js version - found v14.19.3
✔ 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_thefamouslastpull-com
+ sudo systemctl reset-failed ghost_thefamouslastpull-com
✔ 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 v14.19.3
ghost ls
- not running
ghost start
:
A GhostError occurred.
Message: Ghost was able to start, but errored during boot with: connect ECONNREFUSED 127.0.0.1:3306
Help: Unknown database error
Suggestion: journalctl -u ghost_thefamouslastpull-com -n 50
Debug Information:
OS: Ubuntu, v20.04.4 LTS
Node Version: v14.19.3
Ghost Version: 5.26.3
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-05-11T18_08_04_492Z.log
Tailing that log:
Debug Information:
OS: Ubuntu, v20.04.4 LTS
Node Version: v14.19.3
Ghost Version: 5.26.3
Ghost-CLI Version: 1.24.0
Environment: production
Command: 'ghost start'
Message: Ghost was able to start, but errored during boot with: connect ECONNREFUSED 127.0.0.1:3306
Help: Unknown database error
Suggestion: journalctl -u ghost_thefamouslastpull-com -n 50
Stack: Error: Ghost was able to start, but errored during boot with: connect ECONNREFUSED 127.0.0.1:3306
at Server.<anonymous> (/usr/local/lib/node_modules/ghost-cli/lib/utils/port-polling.js:73:28)
at Object.onceWrapper (events.js:519:28)
at Server.emit (events.js:400:28)
at emitCloseNT (net.js:1677:8)
at processTicksAndRejections (internal/process/task_queues.js:81:21)
Tailing the actual mysql log:
2023-05-11T18:11:00.200487Z 0 [ERROR] [MY-013380] [Server] Failed to upgrade server.
2023-05-11T18:11:00.201111Z 0 [ERROR] [MY-010119] [Server] Aborting
2023-05-11T18:11:00.882906Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.33-0ubuntu0.20.04.1) (Ubuntu).
2023-05-11T18:11:01.424729Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.33-0ubuntu0.20.04.1) starting as process 23491
2023-05-11T18:11:01.436497Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2023-05-11T18:11:01.848439Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2023-05-11T18:11:02.735054Z 4 [System] [MY-013381] [Server] Server upgrade from '80032' to '80033' started.
2023-05-11T18:11:53.374591Z 4 [ERROR] [MY-013178] [Server] Execution of server-side SQL statement 'EXECUTE stmt; ' failed with error code = 1205, error message = 'Lock wait timeout exceeded; try restarting transaction'.
2023-05-11T18:11:53.377440Z 0 [ERROR] [MY-013380] [Server] Failed to upgrade server.
2023-05-11T18:11:53.378241Z 0 [ERROR] [MY-010119] [Server] Aborting
2023-05-11T18:11:54.680326Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.33-0ubuntu0.20.04.1) (Ubuntu).
2023-05-11T18:11:55.516639Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.33-0ubuntu0.20.04.1) starting as process 23546
2023-05-11T18:11:55.530678Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2023-05-11T18:11:56.001288Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2023-05-11T18:11:56.793740Z 4 [System] [MY-013381] [Server] Server upgrade from '80032' to '80033' started.
I never requested an upgrade, and I never kicked one off manually. What’s going on?