I’ve tried to update Ghost from 3.29.1 to 3.30 and above in the past days and I ran into an issue with the server running out of space and the Ghost updates failing to restart the instance.
I’ve tried to rollback to previous versions and the process failed. Tried to force updates and the process succeeds, but the instance is still not starting. If I restart the server, the instance shows as running, but trying to reach the site in the browser gives 502 gateway error.
In the logs:
Debug Information: OS: Ubuntu, v18.04.5 LTS Node Version: v10.22.0 Ghost Version: 3.30.1 Ghost-CLI Version: 1.14.1 Environment: production Command: 'ghost update' Message: Could not communicate with Ghost Suggestion: journalctl -u ghost_learn-t4ngo-io -n 50 Stack: Error: Could not communicate with Ghost at Server.server.close (/usr/lib/node_modules/ghost-cli/lib/utils/port-polling.js:56:20) at Object.onceWrapper (events.js:286:20) at Server.emit (events.js:198:13) at emitCloseNT (net.js:1619:8) at process._tickCallback (internal/process/next_tick.js:63:19)
Is there a way to rollback to 2-3 previous versions to get back to the 3.29.1 version which was working? I’m worried that there are either file or database corruptions that happened because of the insufficient disk space.
Sample rollback error:
Debug Information: OS: Ubuntu, v18.04.5 LTS Node Version: v10.22.0 Ghost Version: 3.30.0 Ghost-CLI Version: 1.14.1 Environment: production Command: 'ghost update --rollback' Message: The database migration in Ghost encountered an error. Help: https://ghost.org/faq/upgrade-to-ghost-2-0/#what-to-do-when-an-upgrade-fails Suggestion: ghost update --rollback --------------- stderr --------------- [2020-08-19 15:15:06] ERROR Cannot find module './_baseGetTag'
Note: maybe ghost update should also check for available space (as it checks for available memory) as an empty Ghost site (i.e. a standard installation with only the demo content) can occupy 2GB of disk space with 5 of its rollback versions…