Upgrading Ghost past 3.11.0

I’m trying to upgrade from Ghost 3.11.0 to the latest. I’m running on Ubuntu 18.04 It looks like the upgrade is successful, but it hangs when trying to re-start the new version of Ghost. Here is my log, looks like maybe an issue with a node module? When I rollback the ghost version to 3.11.0 it starts again just fine. Any ideas?

Stopped Ghost systemd service for blog: www-firehole-us.
Jun 12 10:51:09 firehole systemd[1]: Started Ghost systemd service for blog: www-firehole-us.
Jun 12 10:51:10 firehole node[767]: - Inspecting operating system
Jun 12 10:51:10 firehole node[767]: /home/ljhardy/public_html/firehole.us/versions/3.19.2/node_modules/fs-extra/lib/mkdirs/make-dir.js:85
Jun 12 10:51:10 firehole node[767]: } catch {
Jun 12 10:51:10 firehole node[767]: ^
Jun 12 10:51:10 firehole node[767]: SyntaxError: Unexpected token {
Jun 12 10:51:10 firehole node[767]: at createScript (vm.js:80:10)
Jun 12 10:51:10 firehole node[767]: at Object.runInThisContext (vm.js:139:10)
Jun 12 10:51:10 firehole node[767]: at Module._compile (module.js:617:28)
Jun 12 10:51:10 firehole node[767]: at Object.Module._extensions…js (module.js:664:10)
Jun 12 10:51:10 firehole node[767]: at Module.load (module.js:566:32)
Jun 12 10:51:10 firehole node[767]: at tryModuleLoad (module.js:506:12)
Jun 12 10:51:10 firehole node[767]: at Function.Module._load (module.js:498:3)
Jun 12 10:51:10 firehole node[767]: at Module.require (module.js:597:17)
Jun 12 10:51:10 firehole node[767]: at require (internal/module.js:11:18)
Jun 12 10:51:10 firehole node[767]: at Object. (/home/ljhardy/public_html/firehole.us/versions/3.19.2/node_modules/fs-extra/lib/mkdirs/index.js:3:44)
Jun 12 10:51:10 firehole systemd[1]: ghost_www-firehole-us.service: Service hold-off time over, scheduling restart.
Jun 12 10:51:10 firehole systemd[1]: ghost_www-firehole-us.service: Scheduled restart job, restart counter is at 5.
Jun 12 10:51:10 firehole systemd[1]: Stopped Ghost systemd service for blog: www-firehole-us.
Jun 12 10:51:10 firehole systemd[1]: ghost_www-firehole-us.service: Start request repeated too quickly.
Jun 12 10:51:10 firehole systemd[1]: ghost_www-firehole-us.service: Failed with result ‘start-limit-hit’.
Jun 12 10:51:10 firehole systemd[1]: Failed to start Ghost systemd service for blog: www-firehole-us.

You’re running a version of Node.js that is no longer supported. Please upgrade :)

Thanks Hannah. I think that I’m running 12.16.1, that’s not supported?

firehole:~$ node --version
v12.16.1

I just upgraded to node 12.18, the LTS. Tried to update Ghost to the latest, same issue with not starting and the same messages in syslog.

This is a duplicate of Attempt to Upgrade 2 to 3 fails - #4 by jlamarche

The error Ghost is failing with is due to lack of support in Node for a language feature, meaning Ghost is running with Node < 10.

You must have 2 different Node versions on your system. Maybe symlinked as node and nodejs, maybe you’re using nvm. Check out the other thread for debugging tips.

Hannah - That was it, thank you. I had an older version of Node in /usr/bin and the new LTS version in /usr/local/bin. This is fixed. Thanks again!