Ghost-CLI commands not working

If you’re looking for help, please provide information about your environment. If you delete this template and don’t provide any information, your topic will be automatically closed.

If you aren’t running the latest version of Ghost, the first thing we’ll ask you to do is update to the latest version of Ghost.

  • What’s your URL? This is the easiest way for others to help you
    https://techmunchies.org

  • What version of Ghost are you using? If it’s not the latest, please update Ghost first before opening your topic
    Ghost-CLI version: 1.24.0
    Ghost version: 4.48.9 (at /var/www/ghost)

  • How was Ghost installed and configured?
    Ghost was installed on DigitalOcean through the automated process there. The droplet I am using was created through the ‘Ghost droplet’ feature back in ~2021

  • What Node version, database, OS & browser are you using?
    Node version for both root and ghost-mgr user: v16.19.1

  • What errors or information do you see in the console?
    When using most ghost xxx commands, a different error shows up. The main ones are:
    ghost doctor:
    :heavy_multiplication_x: Checking systemd node version - found v12.22.12
    One or more errors occurred.
    :information_source: Checking system compatibility [skipped]
    :heavy_check_mark: Checking for a MySQL installation

  • sudo systemctl is-active ghost_techmunchies-org
    :heavy_check_mark: Validating config
    :heavy_check_mark: Checking folder permissions
    :heavy_check_mark: Checking file permissions
    :heavy_check_mark: Checking content folder ownership
    :heavy_check_mark: Checking memory availability
    :heavy_check_mark: Checking binary dependencies
    :heavy_check_mark: Checking free space
    :heavy_check_mark: Checking systemd unit file
    Warning: Ghost is running with node v12.22.12.
    Your current node version is v16.19.1.
    :heavy_multiplication_x: Checking systemd node version - found v12.22.12
    One or more errors occurred.
  1. SystemError

Message: Ghost v4.48.9 is not compatible with Node v12.22.12
Help: Check the version of Node configured in /lib/systemd/system/ghost_techmunchies-org.service and update it to a compatible version

Debug Information:
OS: Ubuntu, v18.04.6 LTS
Node Version: v16.19.1
Ghost Version: 4.48.9
Ghost-CLI Version: 1.24.0
Environment: production
Command: ‘ghost doctor’

Try running ghost doctor to check your system for known issues.

ghost backup / ghost start (happens at the same stage - when starting the daemon):
:heavy_check_mark: Ensuring user is not logged in as ghost user
:heavy_check_mark: Checking if logged in user is directory owner
:heavy_check_mark: Checking current folder permissions
System checks failed with message: ‘Missing package(s): nginx’
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
:information_source: Checking system compatibility [skipped]
:heavy_check_mark: Checking for a MySQL installation

  • sudo systemctl is-active ghost_techmunchies-org
    :heavy_check_mark: Validating config
    :heavy_check_mark: Checking folder permissions
    :heavy_check_mark: Checking file permissions
    :heavy_check_mark: Checking content folder ownership
    :heavy_check_mark: Checking memory availability
    :heavy_check_mark: Checking binary dependencies
    :heavy_check_mark: Checking free space
    :heavy_check_mark: Checking systemd unit file
    Warning: Ghost is running with node v12.22.12.
    Your current node version is v16.19.1.
    :heavy_multiplication_x: Checking systemd node version - found v12.22.12
    One or more errors occurred.
  1. SystemError

Message: Ghost v4.48.9 is not compatible with Node v12.22.12
Help: Check the version of Node configured in /lib/systemd/system/ghost_techmunchies-org.service and update it to a compatible version

Debug Information:
OS: Ubuntu, v18.04.6 LTS
Node Version: v16.19.1
Ghost Version: 4.48.9
Ghost-CLI Version: 1.24.0
Environment: production
Command: ‘ghost doctor’

Try running ghost doctor to check your system for known issues.

Note:
Manually going in MYSQL and setting the lock to 0 bypasses this, but then I receive an about an invalid token somewhere in the cjs module.

  • What steps could someone else take to reproduce the issue you’re having?

The interesting part is that ghost-cli finds Node version 12, when I shouldn’t have it installed currently.

Some mix up with nvm could be possible, but I tried to follow the guide on nvm in the ghost docs as close as possible.

I removed all versions of node and nvm and reinstalled node 16 lts. This seems to have fixed intermediate issues, but still, ghost backup crashes when starting ghost with the error
:heavy_multiplication_x: Backing up site
An error occurred.
Message: ‘connect ECONNREFUSED 134.122.91.153:443’