502 Error and Missing Module for Update?

Hey there, I was trying to upgrade to 4.x (my blog: https://slack.show) but I seem to have caught myself in a bit of limbo. When I try to upgrade, it gives me this error:

:heavy_check_mark: Fetched release notes
Version already installed.
:information_source: Downloading and updating Ghost [skipped]
:heavy_multiplication_x: Updating to a major version
An error occurred.
Message: ‘Cannot find module ‘/var/www/ghost/versions/4.1.2/node_modules/bluebird/js/release/bluebird.js’. Please verify that the package.json has a valid “main” entry’

I’ve tried to google what I can but I cant seem to find anything specific to this error type. Now as a result, even when I try to revert / force install the current version I was previously on (3.42.4), the instance takes forever to do anything and eventually fails, providing this error:

A GhostError occurred.
Message: Could not communicate with Ghost
Suggestion: journalctl -u my-ghost-blog -n 50

Here is my current system information, im running my own instance via a droplet through DigitalOcean:

Debug Information:
OS: Ubuntu, v18.04.4 LTS
Node Version: v14.16.0
Ghost Version: 3.42.4
Ghost-CLI Version: 1.16.3
Environment: production

While I was doing this, I upgraded to Node version 14 from 12 because I read that might help but no luck. I also confirmed that I have only one node installed, since having one in /usr/bin and /usr/local/bin is another possible issue.

ghost-mgr@ghost-ubuntu-s-1vcpu-1gb-tor1-01:/var/www/ghost$ whereis node
node: /usr/bin/node /usr/include/node /usr/share/man/man1/node.1.gz
ghost-mgr@ghost-ubuntu-s-1vcpu-1gb-tor1-01:/var/www/ghost$ which node
/usr/bin/node
ghost-mgr@ghost-ubuntu-s-1vcpu-1gb-tor1-01:/var/www/ghost$ node --version
v14.16.0
ghost-mgr@ghost-ubuntu-s-1vcpu-1gb-tor1-01:/var/www/ghost$ /usr/bin/node --version
v14.16.0

I know this is a somewhat similar issue to other’s I’ve been reading through like:

But the update error is so specific that I figured it warranted a new thread.

This is the log provided when it fails to start the instance:

.ghost/logs/ghost-cli-debug-2021-04-01T04_58_17_192Z.log
Debug Information:
OS: Ubuntu, v18.04.4 LTS
Node Version: v14.16.0
Ghost Version: 3.42.4
Ghost-CLI Version: 1.16.3
Environment: production
Command: ‘ghost start’
Message: Could not communicate with Ghost
Suggestion: journalctl -u ghost_138-197-145-200 -n 50
Stack: Error: Could not communicate with Ghost
at Server. (/usr/lib/node_modules/ghost-cli/lib/utils/port-polling.js:71:20)
at Object.onceWrapper (events.js:421:28)
at Server.emit (events.js:315:20)
at emitCloseNT (net.js:1659:8)
at processTicksAndRejections (internal/process/task_queues.js:79:21)

This is the log for the update error:

.ghost/logs/ghost-cli-debug-2021-04-01T05_25_35_794Z.log
Debug Information:
OS: Ubuntu, v18.04.4 LTS
Node Version: v14.16.0
Ghost Version: 3.42.4
Ghost-CLI Version: 1.16.3
Environment: production
Command: ‘ghost update 4.1.2 --force’
An error occurred.
Message: ‘Cannot find module ‘/var/www/ghost/versions/4.1.2/node_modules/bluebird/js/release/bluebird.js’. Please verify that the package.json has a valid “main” entry’
Stack: Error: Cannot find module ‘/var/www/ghost/versions/4.1.2/node_modules/bluebird/js/release/bluebird.js’. Please verify that the package.json has a valid “main” entry
at tryPackage (internal/modules/cjs/loader.js:303:19)
at Function.Module._findPath (internal/modules/cjs/loader.js:516:18)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:867:27)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/var/www/ghost/versions/4.1.2/node_modules/gscan/lib/checker.js:1:17)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/var/www/ghost/versions/4.1.2/node_modules/gscan/lib/index.js:3:13)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)
Code: MODULE_NOT_FOUND
Path: /var/www/ghost/versions/4.1.2/node_modules/bluebird/package.json

Oh yes, I guess it’s worth mentioning that ghost doctor doesn’t throw any errors / passes all it’s checks.

I hope this is enough information to provide a starting point! If I can provide anything else, please let me know. Any insight would be great!!