Ghost v4.6.1 is not compatible with the current Node version

Trying to upgrade from 3.x to newest 4.x I’m getting this error message:

Ghost v4.6.1 is not compatible with the current Node version

ghost doctor says this:

Warning: Ghost is running with node v12.16.1.
Your current node version is v14.16.0.
:heavy_check_mark: Checking systemd node version - found v12.16.1

What’s wrong with my node version for the latest 4.x version of ghost?

Thanks, Len

1 Like
1 Like
Warning: Ghost is running with node v12.16.1.
Your current node version is v14.16.0.

As well as needing to update, you seem to have two different node versions installed on your system.

I have similar issue.

Message: Ghost v4.6.4 is not compatible with the current Node version.

Debug Information:
    OS: macOS, v11.2.3
    Node Version: v14.15.0
    Ghost-CLI Version: 1.17.3
    Environment: development
    Command: 'ghost install local'

Documentation says 14.x is supported so I do not understand this error…

@romanzdk see the link that was posted earlier in this thread

1 Like

Hm, I’m getting this error when running sudo apt-get install -y nodejs:

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

It looks like you cancelled an installation previously. As the message says, run sudo dpkg --configure -a to get dpkg back into a functional state

@romanzdk see the link that was posted earlier in this thread

Would be nice if the documentation actually reflected this and not just “any v14 works”

I updated to v14.16.1, these are my messages at start:

  • sudo systemctl is-active ghost_www-XXXX-us

  • sudo systemctl reset-failed ghost_www-XXXX-us

Using https on all URLs is highly recommended. In production, SSL is required when using Stripe.

Support for non-https admin URLs in production mode is deprecated and will be removed in a future version.

:heavy_check_mark: Checking system Node.js version - found v14.16.1

: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

  • sudo systemctl is-active ghost_www-XXXX-us

: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 systemd unit file

:heavy_check_mark: Checking systemd node version - found v14.16.1

  • sudo systemctl start ghost_www-XXXX-us

  • sudo systemctl is-enabled ghost_www-XXXX-us

:heavy_check_mark: Starting Ghost: www-XXXX-us


Your admin interface is located at:

http://www.XXXX.us/ghost/

Then the log file, looks like it is looping:

  • sudo systemctl is-active ghost_www-XXXX-us

[2021-06-05 09:49:17] WARN Ghost has shut down

[2021-06-05 09:49:17] WARN Your site is now offline

[2021-06-05 09:49:17] WARN Ghost was running for a few seconds

[2021-06-05 09:49:19] INFO Ghost is running in production…

[2021-06-05 09:49:19] INFO Your site is now available on http://www.XXXX.us/

[2021-06-05 09:49:19] INFO Ctrl+C to shut down

[2021-06-05 09:49:19] INFO Ghost server started in 0.669s

[2021-06-05 09:49:19] INFO Database is in a ready state.

[2021-06-05 09:49:19] INFO Ghost database ready in 0.983s

[2021-06-05 09:49:22] INFO Ghost booted in 4.079s

[2021-06-05 09:49:23] WARN Ghost is shutting down

[2021-06-05 09:49:23] WARN Ghost has shut down

[2021-06-05 09:49:23] WARN Your site is now offline

[2021-06-05 09:49:23] WARN Ghost was running for a few seconds

[2021-06-05 09:49:25] INFO Ghost is running in production…

[2021-06-05 09:49:25] INFO Your site is now available on http://www.firehole.us/

[2021-06-05 09:49:25] INFO Ctrl+C to shut down

[2021-06-05 09:49:25] INFO Ghost server started in 0.729s

[2021-06-05 09:49:25] INFO Database is in a ready state.

[2021-06-05 09:49:25] INFO Ghost database ready in 1.052s

Are you using Stripe? If so,

Tells you that you can’t do that with an http site

If you’re not using stripe, please upgrade to 4.6.3 as there was an issue that caused non-stripe http sites to not stay running

Not using Stripe. Trying to update to latest. Seems to be in a loop at startup.

Node 14.16.1 is installed in /usr/local/bin and symlinked to /usr/bin. Is that ok?

Since Ghost isn’t complaining about the node version, you shouldn’t have any issues.

What do you see in the error log (ghost log --error)

From ghost log --error

2021-06-06 16:45:58] ERROR

CODE: ERR_SERVER_NOT_RUNNING
MESSAGE: Server is not running.

Error [ERR_SERVER_NOT_RUNNING]: Server is not running.
at Server.close (net.js:1600:12)
at Object.onceWrapper (events.js:417:28)
at Server.emit (events.js:311:20)
at Server.EventEmitter.emit (domain.js:482:12)
at emitCloseNT (net.js:1653:8)
at processTicksAndRejections (internal/process/task_queues.js:83:21)

[2021-06-06 16:49:43] ERROR

NAME: InternalServerError
CODE: MODULE_NOT_FOUND
MESSAGE: Cannot find module ‘./server/lib/ghost-version’
Require stack:

  • /home/ljhardy/public_html/firehole.us/versions/4.6.4/core/boot.js
  • /home/ljhardy/public_html/firehole.us/versions/4.6.4/ghost.js
  • /home/ljhardy/public_html/firehole.us/versions/4.6.4/index.js

level: normal

That error doesn’t make sense, so try running ghost update --force to see if that fixes the issue

same thing after ghost update --force:

Error: Cannot find module ‘./server/lib/ghost-version’
Require stack:

  • /home/ljhardy/public_html/firehole.us/versions/4.6.4/core/boot.js
  • /home/ljhardy/public_html/firehole.us/versions/4.6.4/ghost.js
  • /home/ljhardy/public_html/firehole.us/versions/4.6.4/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at bootGhost (/home/ljhardy/public_html/firehole.us/versions/4.6.4/core/boot.js:257:9)
    at Object. (/home/ljhardy/public_html/firehole.us/versions/4.6.4/ghost.js:19:27)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)

ghost log shows:

[2021-06-06 20:37:26] WARN Ghost has shut down
[2021-06-06 20:37:26] WARN Your site is now offline
[2021-06-06 20:37:26] WARN Ghost was running for a few seconds
[2021-06-06 20:37:28] INFO Ghost is running in production…
[2021-06-06 20:37:28] INFO Your site is now available on http://www.firehole.us/
[2021-06-06 20:37:28] INFO Ctrl+C to shut down
[2021-06-06 20:37:28] INFO Ghost server started in 0.726s
[2021-06-06 20:37:28] INFO Database is in a ready state.
[2021-06-06 20:37:28] INFO Ghost database ready in 1.038s
[2021-06-06 20:37:31] INFO Ghost booted in 3.826s
[2021-06-06 20:37:32] WARN Ghost is shutting down
[2021-06-06 20:37:32] WARN Ghost has shut down
[2021-06-06 20:37:32] WARN Your site is now offline
[2021-06-06 20:37:32] WARN Ghost was running for a few seconds
[2021-06-06 20:37:34] INFO Ghost is running in production…
[2021-06-06 20:37:34] INFO Your site is now available on http://www.firehole.us/
[2021-06-06 20:37:34] INFO Ctrl+C to shut down
[2021-06-06 20:37:34] INFO Ghost server started in 0.679s
[2021-06-06 20:37:34] INFO Database is in a ready state.
[2021-06-06 20:37:34] INFO Ghost database ready in 1.068s

Ghost doctor shows no errors.

Tried it all one more time, received some different errors from ghost log --errors, but just ghost log still looks to be looping through starting and crashing:

[2021-06-06 20:48:24] ERROR “OPTIONS /members/api/site/” 503 3ms

NAME: MaintenanceError
MESSAGE: Site is starting up, please wait a moment then retry.

level: normal

MaintenanceError: Site is starting up, please wait a moment then retry.
at new MaintenanceError (/home/ljhardy/public_html/firehole.us/versions/4.6.4/node_modules/ghost-ignition/lib/errors/index.js:162:23)
at maintenance (/home/ljhardy/public_html/firehole.us/versions/4.6.4/core/server/web/shared/middlewares/maintenance.js:14:21)
at Layer.handle [as handle_request] (/home/ljhardy/public_html/firehole.us/versions/4.6.4/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/ljhardy/public_html/firehole.us/versions/4.6.4/node_modules/express/lib/router/index.js:317:13)
at /home/ljhardy/public_html/firehole.us/versions/4.6.4/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/ljhardy/public_html/firehole.us/versions/4.6.4/node_modules/express/lib/router/index.js:335:12)
at next (/home/ljhardy/public_html/firehole.us/versions/4.6.4/node_modules/express/lib/router/index.js:275:10)
at expressNoop (/home/ljhardy/public_html/firehole.us/versions/4.6.4/core/shared/sentry.js:34:9)
at Layer.handle [as handle_request] (/home/ljhardy/public_html/firehole.us/versions/4.6.4/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/ljhardy/public_html/firehole.us/versions/4.6.4/node_modules/express/lib/router/index.js:317:13)
at /home/ljhardy/public_html/firehole.us/versions/4.6.4/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/ljhardy/public_html/firehole.us/versions/4.6.4/node_modules/express/lib/router/index.js:335:12)
at next (/home/ljhardy/public_html/firehole.us/versions/4.6.4/node_modules/express/lib/router/index.js:275:10)
at expressInit (/home/ljhardy/public_html/firehole.us/versions/4.6.4/node_modules/express/lib/middleware/init.js:40:5)
at Layer.handle [as handle_request] (/home/ljhardy/public_html/firehole.us/versions/4.6.4/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/ljhardy/public_html/firehole.us/versions/4.6.4/node_modules/express/lib/router/index.js:317:13)

[2021-06-06 20:58:27] ERROR

CODE: ERR_SERVER_NOT_RUNNING
MESSAGE: Server is not running.

Error [ERR_SERVER_NOT_RUNNING]: Server is not running.
at Server.close (net.js:1606:12)
at Object.onceWrapper (events.js:421:28)
at Server.emit (events.js:315:20)
at Server.EventEmitter.emit (domain.js:467:12)
at emitCloseNT (net.js:1659:8)
at processTicksAndRejections (internal/process/task_queues.js:79:21)

Is node.js version 14.16.0 still supported in Ghost?

1 Like

@denvergeeks it looks like the minimum version is 14.16.1 in the 14.x line as per Ghost/package.json at 8e0b097c2cc9ed4fcfb5ac4b78c74e7bf1ddb415 · TryGhost/Ghost · GitHub

@ljhardy Can you make sure your node version is at least 14.16.1? If it is, what is the output of:

stat /home/ljhardy/public_html/firehole.us/versions/4.6.4/core/server
stat /home/ljhardy/public_html/firehole.us/versions/4.6.4/core/server/lib
stat /home/ljhardy/public_html/firehole.us/versions/4.6.4/core/server/lib/ghost-version.js

Node is at 14.16.1:

ljhardy@firehole:~$ cd /usr/bin
ljhardy@firehole:/usr/bin$ ./node -v
v14.16.1

ljhardy@firehole:/usr/local/bin$ ./node -v
v14.16.1

Results of the stats:

ljhardy@firehole:~$ stat /home/ljhardy/public_html/firehole.us/versions/4.6.4/core/server
File: /home/ljhardy/public_html/firehole.us/versions/4.6.4/core/server
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 800h/2048d Inode: 3020734 Links: 11
Access: (0775/drwxrwxr-x) Uid: ( 1000/ ljhardy) Gid: ( 1000/ ljhardy)
Access: 2021-06-06 20:46:41.158047671 -0500
Modify: 2021-06-06 20:46:41.874716604 -0500
Change: 2021-06-06 20:46:41.874716604 -0500
Birth: -

ljhardy@firehole:~$ stat /home/ljhardy/public_html/firehole.us/versions/4.6.4/core/server/lib
File: /home/ljhardy/public_html/firehole.us/versions/4.6.4/core/server/lib
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 800h/2048d Inode: 3020753 Links: 4
Access: (0775/drwxrwxr-x) Uid: ( 1000/ ljhardy) Gid: ( 1000/ ljhardy)
Access: 2021-06-06 20:46:41.564715623 -0500
Modify: 2021-06-06 20:46:42.588052194 -0500
Change: 2021-06-06 20:46:42.588052194 -0500
Birth: -

ljhardy@firehole:~$ stat /home/ljhardy/public_html/firehole.us/versions/4.6.4/core/server/lib/ghost-version.js
File: /home/ljhardy/public_html/firehole.us/versions/4.6.4/core/server/lib/ghost-version.js
Size: 726 Blocks: 8 IO Block: 4096 regular file
Device: 800h/2048d Inode: 3020889 Links: 1
Access: (0644/-rw-r–r–) Uid: ( 1000/ ljhardy) Gid: ( 1000/ ljhardy)
Access: 2021-06-06 20:46:39.350000000 -0500
Modify: 1985-10-26 03:15:00.000000000 -0500
Change: 2021-06-06 20:46:42.644719041 -0500
Birth: -