Is it worth updating to Ghost 4

I run ghost 3.41.3 and its perfect.
I recently thought on a day off I would upgrade.
Error after error.
NPM wont install latest Ghost CLI (pasted below fo anyones interest)
Permissions errors! I am so over it. I have lost hours here.
Whats the harm in just leaving it?
I really enjoy ghost but this is making me feel uncomfortable. I am not a terminal guru and can only follow guides.
Any others have thoughts on this?

gj@localhost:/var/www/ghost$ npm install -g ghost-cli@latest
npm ERR! code EACCES
npm ERR! syscall unlink
npm ERR! path /usr/bin/ghost
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, unlink ‘/usr/bin/ghost’
npm ERR! { [Error: EACCES: permission denied, unlink ‘/usr/bin/ghost’]
npm ERR! cause:
npm ERR! { Error: EACCES: permission denied, unlink ‘/usr/bin/ghost’
npm ERR! errno: -13,
npm ERR! code: ‘EACCES’,
npm ERR! syscall: ‘unlink’,
npm ERR! path: ‘/usr/bin/ghost’ },
npm ERR! stack:
npm ERR! ‘Error: EACCES: permission denied, unlink ‘/usr/bin/ghost’’,
npm ERR! errno: -13,
npm ERR! code: ‘EACCES’,
npm ERR! syscall: ‘unlink’,
npm ERR! path: ‘/usr/bin/ghost’ }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/gj/.npm/_logs/2021-05-13T12_33_31_218Z-debug.log

I compared your code very briefly with what I found here on how updating works, do you want to try sudo npm install -g ghost-cli@latest instead? That might solve the permission denied errors. Hope this helps.

1 Like

Thank you , Yes i did go that route already…

gj@localhost:/var/www/ghost$ sudo npm install -g ghost-cli@latest
sudo: error in /etc/sudo.conf, line 0 while loading plugin “sudoers_policy”
sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0
sudo: fatal error, unable to load plugins

I have also tried adding user gj to sudo group and I chowned /lib/ directory and still no joy.

But is it worth upgrading for a simple site that is doing its job already?

1 Like

When it’s fine for you, don’t upgrade.

But be aware, you don’t get the latest Patch on security either. :wink:

If your Blog is just a small personal Thing with not that much Traffic and visibility, in my opinion:
Don’t touch a running system.

These errors are a bit worrying. They’re beyond the scope of Ghost, this means system-level permissions aren’t correct.

Try fixing this first, then performing the update:

pkexec chown root /usr/lib/sudo/sudoers.so

My worry would still be how these files got into that state in the first place. In my experience this is sometimes a symptom of a compromised box. If this still doesn’t fix your issue, I’d say the easiest and safest way would be to export your data and reinstall on a new VM or server.

As to whether Ghost 4 is worth updating to, I’d say yes :slight_smile: