This is a very old DigitalOcean box from about 3-4 years ago. I did not keep up on it, no one’s fault but my own and I accept that. After spending a few hours researching similar threads and issues, I am at a loss. The site it was hosting WAS up and running earlier today but it no longer is. I was on an old Ubuntu version, which I updated first and it’s been downhill since.
I tried multiple versions of node because I kept getting node version errors when attempting to just do “ghost update v2” or “ghost update”. I’m just very confused at the moment and looking for any direction.
/var/www/ghost$ which ghost
/home/dan/.nvm/versions/node/v10.24.1/bin/ghost
/var/www/ghost$ whereis ghost
ghost: /usr/bin/ghost /usr/local/bin/ghost /home/dan/.nvm/versions/node/v10.24.1/bin/ghost
/var/www/ghost$ which node
/home/dan/.nvm/versions/node/v10.24.1/bin/node
/var/www/ghost$ whereis node
node: /usr/bin/node /usr/local/bin/node /home/dan/.nvm/versions/node/v10.24.1/bin/node /usr/share/man/man1/node.1.gz
/var/www/ghost$ ghost version
Ghost-CLI version: 1.9.9
Ghost version: 2.9.1 (at /var/www/ghost)
/var/www/ghost$ /home/dan/.nvm/versions/node/v10.24.1/bin/ghost version
Ghost-CLI version: 1.9.9
Ghost version: 2.9.1 (at /var/www/ghost)
/var/www/ghost$ /home/dan/.nvm/versions/node/v10.24.1/bin/ghost update
You are running an outdated version of Ghost-CLI.
It is recommended that you upgrade before continuing.
Run npm install -g ghost-cli@latest
to upgrade.
- sudo systemctl is-active ghost_mysite
Checking system Node.js version
Ensuring user is not logged in as ghost user
Checking if logged in user is directory owner
Checking current folder permissions
Checking folder permissions
Checking file permissions
Checking content folder ownership
Checking memory availability
Checking for available migrations
Checking for latest Ghost version
A CliError occurred.
Message: You are about to migrate to Ghost 2.0. Your blog is not on the latest Ghost 1.0 version.
Help: Instead run “ghost update --v1”.
Debug Information:
OS: Ubuntu, v20.04
Node Version: v10.24.1
Ghost-CLI Version: 1.9.9
Environment: production
Command: ‘ghost update’
Additional log info available in: /home/dan/.ghost/logs/ghost-cli-debug-2023-08-30T21_28_14_938Z.log
Try running ghost doctor to check your system for known issues.
(NOTE: notice the missing “Ghost Version”… I’m not sure why this is not finding the 2.9.1 version that it previously said was installed)
/var/www/ghost$ /home/dan/.nvm/versions/node/v10.24.1/bin/ghost update --v1
You are running an outdated version of Ghost-CLI.
It is recommended that you upgrade before continuing.
Run npm install -g ghost-cli@latest
to upgrade.
- sudo systemctl is-active ghost_mysite
Checking system Node.js version
Ensuring user is not logged in as ghost user
Checking if logged in user is directory owner
Checking current folder permissions
Checking folder permissions
Checking file permissions
Checking content folder ownership
Checking memory availability
Checking for available migrations
Checking for latest Ghost version
All up to date!
Then if I rerun ghost update v2, it says the same thing.
/var/www/ghost$ /home/dan/.nvm/versions/node/v10.24.1/bin/ghost doctor
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
System checks failed with message: ‘Linux version is not Ubuntu 16 or 18’
Some features of Ghost-CLI may not work without additional configuration.
For local installs we recommend using ghost install local
instead.
? Continue anyway? Yes
System stack check skipped
Checking operating system compatibility [skipped]
Checking for a MySQL installation
- sudo systemctl is-active ghost_mysite
Instance is currently running
Validating config [skipped]
Checking folder permissions
Checking file permissions
Checking content folder ownership
Checking memory availability
I believe, but I am not 100% sure, that I originally installed Ghost via npm years ago. Today, during my efforts to update, I ended up installing and uninstalling a VARIETY of versions from 8, 10, 12, 14, and 18 using nvm and npm with no success. It’s certainly possible the uninstalls/installs of node messed something up along the way.
Any help would be GREATLY appreciated. I believe this thread was very close to my issue, but he ended up reinstalling which I would really prefer not to do - Help updating ghost