Warning: Ghost is running with node v16.20.2.
Your current node version is v18.17.0.
β Checking systemd node version - found v16.20.2
One or more errors occurred.
1) SystemError
Message: Ghost v5.72.1 is not compatible with Node v16.20.2
Help: Check the version of Node configured in /lib/systemd/system/ghost_dumup-com.service and update it to a compatible version
Debug Information:
OS: Ubuntu, v22.04.3 LTS
Node Version: v18.17.0
Ghost Version: 5.72.1
Ghost-CLI Version: 1.25.3
Environment: production
Command: 'ghost start'
Try running ghost doctor to check your system for known issues.
You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.
root2@linux:/var/www/dumup_com$ ^C
root2@linux:/var/www/dumup_com$ ghost start
Love open source? Weβre hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org
+ sudo systemctl is-active ghost_dumup-com
β Checking system Node.js version - found v18.17.0
β Ensuring user is not logged in as ghost user
β Checking if logged in user is directory owner
β Checking current folder permissions
+ sudo systemctl is-active ghost_dumup-com
β Validating config
β Checking folder permissions
β Checking file permissions
β Checking content folder ownership
β Checking memory availability
β Checking binary dependencies
β Checking systemd unit file
Warning: Ghost is running with node v16.20.2.
Your current node version is v18.17.0.
β Checking systemd node version - found v16.20.2
One or more errors occurred.
1) SystemError
Message: The directory /home/root2/ is not readable by other users on the system.
This can cause issues with the CLI, you must either make this directory readable by others or install node and Ghost-CLI in another location.
2) SystemError
Message: Ghost v5.72.1 is not compatible with Node v16.20.2
Help: Check the version of Node configured in /lib/systemd/system/ghost_dumup-com.service and update it to a compatible version
Debug Information:
OS: Ubuntu, v22.04.3 LTS
Node Version: v18.17.0
Ghost Version: 5.72.1
Ghost-CLI Version: 1.25.3
Environment: production
Command: 'ghost start'
Try running ghost doctor to check your system for known issues.
You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.
root2@linux:/var/www/dumup_com$
Instead of just posting logs, would be great to get some context from you
I am pretty confused be whatβs going on here. It says Node Version: v18.17.0, but also Warning: Ghost is running with node v16.20.2.. So, without any context, I have to assume that you have (somehow?) installed two node versions?
everything seems correct but the only things is take too long to start
The error message is clear: Ghost v5.72.1 is not compatible with Node.js v16.20.2. To resolve this issue, you need to update the Node.js version in the systemd service configuration for your Ghost instance. Hereβs how you can do that:
Replace nano with your preferred text editor (e.g., vim, nano, or gedit).
Find the line that specifies the Node.js version:
Look for a line that starts with ExecStart and contains a reference to the Node.js binary, like this:
ExecStart=/usr/bin/node /usr/bin/ghost run
Update the Node.js version in the configuration:
Modify the line to use the compatible Node.js version you installed earlier with NVM. For example:
ExecStart=/path/to/your/compatible/node/version /usr/bin/ghost run
Make sure to replace /path/to/your/compatible/node/version with the actual path to the compatible Node.js version you installed using NVM.
Save the changes and exit the text editor:
In nano, you can press Ctrl + O to save the file, then press Enter, and Ctrl + X to exit.
Reload systemd to apply the changes:
sudo systemctl daemon-reload
Restart your Ghost service:
sudo systemctl restart ghost_dumup-com
After completing these steps, your Ghost service should now be running with the compatible Node.js version, and the error should be resolved. You can verify that the service is running with the correct Node.js version by using:
sudo systemctl is-active ghost_dumup-com
This should confirm that the service is running without issues.
Alright, first things first: Never blindly trust what ChatGPT says. Itβs completely outdated and a language model β it literally just predicts what the next word could potentially be. Its information can very well be wrong.
Since youβve mentioned that everything works now, I take it that this is solved. The fact that it takes long can be normal, when you upgrade to a new version, since dependencies need to be installed.
Context ? Which one! Iβm trying to update to the latest version and the pictures show the full details . I use the chatGPT solution but seems not working ?
[Unit]
Description=Ghost systemd service for blog: dumup-com
Documentation=https://ghost.org/docs/
[Service]
Type=simple
WorkingDirectory=/var/www/dumup_com
User=999
Environment="NODE_ENV=production"
ExecStart=/home/root2/.nvm/versions/node/v18.17.0/bin/node /usr/bin/ghost run
Restart=always
[Install]
WantedBy=multi-user.target
CORRECT OR NOT
which node
/home/root2/.nvm/versions/node/v18.17.0/bin/node
any one know How to solve the issues, Iβm using ubuntu VPS selfhosted everthing seems correct but the message
Message: Could not communicate with Ghost
Suggestion: journalctl -u ghost_dumup-com -n 50
Debug Information:
OS: Ubuntu, v22.04.3 LTS
Node Version: v18.17.0
Ghost Version: 5.72.2
Ghost-CLI Version: 1.25.3
Environment: production
Command: 'ghost start'
Additional log info available in: /home/root2/.ghost/logs/ghost-cli-debug-2023-11-10T09_30_31_096Z.log
Try running ghost doctor to check your system for known issues.
You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.
root2@linux:/var/www/dumup_com$ journalctl -u ghost_dumup-com -n 50
Hint: You are currently not seeing messages from other users and the system.
Users in groups 'adm', 'systemd-journal' can see all messages.
Pass -q to turn off this notice.
-- No entries --
Iβm trying to use the right node.js path for my ghost installation but nothing seems to work. I installed v18.12.1 but nothing appears
check the error message and NVM list in VPS Ubuntu
root2@linux:/var/www/dumup_com$ ghost doctor
Love open source? Weβre hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org
β Checking system Node.js version - found v18.12.1
β 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 system compatibility
β Checking for a MySQL installation
+ sudo systemctl is-active ghost_dumup-com
β Validating config
β Checking folder permissions
β Checking file permissions
β Checking content folder ownership
β Checking memory availability
β Checking binary dependencies
β Checking free space
β Checking systemd unit file
Warning: Ghost is running with node v16.20.2.
Your current node version is v18.12.1.
β Checking systemd node version - found v16.20.2
One or more errors occurred.
1) SystemError
Message: Ghost v5.72.2 is not compatible with Node v16.20.2
Help: Check the version of Node configured in /lib/systemd/system/ghost_dumup-com.service and update it to a compatible version
Debug Information:
OS: Ubuntu, v22.04.3 LTS
Node Version: v18.12.1
Ghost Version: 5.72.2
Ghost-CLI Version: 1.25.3
Environment: production
Command: 'ghost doctor'
Try running ghost doctor to check your system for known issues.
You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.
root2@linux:/var/www/dumup_com$
Since journalctl -u ghost_dumup-com -n 50 yields no results, Iβd suggest you have a permissions issue or there is a problem with Node. Note the location of additional log information, and output from ghost doctor. More information is needed to diagnose.
Edit: I see youβre posting in another thread about Node. Is this matter resolved or superseded?
root2@linux:/var/www/dumup_com$ ghost doctor
Love open source? Weβre hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org
β Checking system Node.js version - found v18.12.1
β 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 system compatibility
β Checking for a MySQL installation
+ sudo systemctl is-active ghost_dumup-com
β Validating config
β Checking folder permissions
β Checking file permissions
β Checking content folder ownership
β Checking memory availability
β Checking binary dependencies
β Checking free space
β Checking systemd unit file
β Checking systemd node version - found v18.12.1