Doing upgrades from 3.22.2 to 3.23.0 on a ghost site at some point the server crashed due to cpu spike. After restarting the server (from AWS as the terminal was frozen) the failed site is not starting anymore (ghost restart or ghost start… hangs at starting…).
Tried ghost doctor, but it didn’t give any error:
Checking system Node.js version
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 operating system compatibility
- sudo systemctl is-active ghost_secareanu-com
Checking folder permissions
Checking file permissions
Checking content folder ownership
Checking memory availability
Checking binary dependencies
Tried to do a rollback (as suggested) but got the error below:
Downloading and updating Ghost [skipped]
- sudo /var/www/secareanu.com/current/node_modules/.bin/knex-migrator-rollback --force --v 3.22.2 --mgpath /var/www/secareanu.com/current
Rolling back database migrations
A ProcessError occurred.
Message: The database migration in Ghost encountered an error.
Suggestion: ghost update --rollback
OS: Ubuntu, v18.04.4 LTS
Node Version: v10.21.0
Ghost Version: 3.23.0
Ghost-CLI Version: 1.14.1
Command: ‘ghost update --rollback’
Tried to update ghost-cli just in case, but still didn’t manage to fix anything.
Anyone has any ideas what could have happened and how I can exist this deadlock (maybe reinstall ghost)?
LE: It seems that my current/node_modules/ folder is incomplete (probably didn’t finish update when the server crashed). I’ve copied over from another site and now I’ve managed to restart the site.