Upgrade from 3.24 to 3.25 fails

Hi,

I’ve attempted to run 3.34 > 3.25 upgrade on my Ubuntu 16.04.6 LTS server, here’s what happened:

ghost-mgr@ghost:/var/www/ghost$ ghost update

  • sudo systemctl is-active ghost_stig-dlugosz-eu
    :heavy_check_mark: Checking system Node.js version
    :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
    :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 for available migrations
    :heavy_check_mark: Checking for latest Ghost version
    :heavy_multiplication_x: Downloading and updating Ghost to v3.25.0
    A ProcessError occurred.

Message: Command failed: yarn install --no-emoji --no-progress
warning ghost@3.25.0: The engine “cli” appears to be invalid.
warning Resolution field “moment-timezone@0.5.23” is incompatible with requested version “moment-timezone@0.5.28”
warning Resolution field “moment-timezone@0.5.23” is incompatible with requested version “moment-timezone@0.5.28”
warning " > bookshelf@0.15.2" has incorrect peer dependency “knex@>=0.13.0 <0.18.0”.

yarn install v1.22.4
[1/5] Validating package.json…
[2/5] Resolving packages…
[3/5] Fetching packages…
info fsevents@2.1.2: The platform “linux” is incompatible with this module.
info “fsevents@2.1.2” is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies…
[5/5] Building fresh packages…

Debug Information:
OS: Ubuntu, v16.04.6 LTS
Node Version: v10.21.0
Ghost Version: 3.24.0
Ghost-CLI Version: 1.14.1
Environment: production
Command: ‘ghost update’

Additional log info available in: /home/ghost-mgr/.ghost/logs/ghost-cli-debug-2020-07-16T09_12_23_689Z.log

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

ghost-mgr@ghost:/var/www/ghost$ ghost doctor
:heavy_check_mark: Checking system Node.js version
:heavy_check_mark: Checking logged in user
: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
:heavy_check_mark: Checking operating system compatibility
:heavy_check_mark: Checking for a MySQL installation

  • sudo systemctl is-active
    Instance is currently running
    :information_source: Validating config [skipped]
    :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

Debug log file contents:
Debug Information:
OS: Ubuntu, v16.04.6 LTS
Node Version: v10.21.0
Ghost Version: 3.24.0
Ghost-CLI Version: 1.14.1
Environment: production
Command: ‘ghost update’
Message: Command failed: yarn install --no-emoji --no-progress
warning ghost@3.25.0: The engine “cli” appears to be invalid.
warning Resolution field “moment-timezone@0.5.23” is incompatible with requested version “moment-timezone@0.5.28”
warning Resolution field “moment-timezone@0.5.23” is incompatible with requested version “moment-timezone@0.5.28”
warning " > bookshelf@0.15.2" has incorrect peer dependency “knex@>=0.13.0 <0.18.0”.

yarn install v1.22.4
[1/5] Validating package.json…
[2/5] Resolving packages…
[3/5] Fetching packages…
info fsevents@2.1.2: The platform “linux” is incompatible with this module.
info “fsevents@2.1.2” is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies…
[5/5] Building fresh packages…

--------------- stdout ---------------
yarn install v1.22.4
[1/5] Validating package.json…
[2/5] Resolving packages…
[3/5] Fetching packages…
info fsevents@2.1.2: The platform “linux” is incompatible with this module.
info “fsevents@2.1.2” is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies…
[5/5] Building fresh packages…

--------------- stderr ---------------
warning ghost@3.25.0: The engine “cli” appears to be invalid.
warning Resolution field “moment-timezone@0.5.23” is incompatible with requested version “moment-timezone@0.5.28”
warning Resolution field “moment-timezone@0.5.23” is incompatible with requested version “moment-timezone@0.5.28”
warning " > bookshelf@0.15.2" has incorrect peer dependency “knex@>=0.13.0 <0.18.0”.

Any ideas welcome, thank you :slight_smile:

1 Like

The is the only error, but it’s not very useful. Was there a chance there was a network issue that could have affected yarn?

I suggest trying again.

I’m having the same issue:

A ProcessError occurred.

Message: Command failed: yarn install --no-emoji --no-progress
warning ghost@3.25.0: The engine "cli" appears to be invalid.
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@0.5.28"
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@0.5.28"
warning " > bookshelf@0.15.2" has incorrect peer dependency "knex@>=0.13.0 <0.18.0".

yarn install v1.22.4
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@2.1.2: The platform "linux" is incompatible with this module.
info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
[5/5] Building fresh packages...


Debug Information:
    OS: Ubuntu, v18.04.3 LTS
    Node Version: v10.16.3
    Ghost Version: 3.22.2
    Ghost-CLI Version: 1.14.1
    Environment: production
    Command: 'ghost update'

Tried a few times that day, but no matter what always got the same result.
Anyways, tried again today and voila, it worked:

ghost-mgr@ghost:/var/www/ghost$ ghost update
:heavy_check_mark: Checking system Node.js version
: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
: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 for available migrations
:heavy_check_mark: Checking for latest Ghost version
:heavy_check_mark: Downloading and updating Ghost to v3.25.0
:heavy_check_mark: Stopping Ghost
:heavy_check_mark: Linking latest Ghost and recording versions
:heavy_check_mark: Restarting Ghost
:heavy_check_mark: Removing old Ghost versions

All green and happy now, going back to my cave, thank you!

Sadly, still failing for me:

✖ Downloading and updating Ghost to v3.25.0
A ProcessError occurred.

Message: Command failed: yarn install --no-emoji --no-progress
warning ghost@3.25.0: The engine "cli" appears to be invalid.
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@0.5.28"
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@0.5.28"
warning " > bookshelf@0.15.2" has incorrect peer dependency "knex@>=0.13.0 <0.18.0".

yarn install v1.22.4
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@2.1.2: The platform "linux" is incompatible with this module.
info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
[5/5] Building fresh packages...


Debug Information:
    OS: Ubuntu, v18.04.3 LTS
    Node Version: v10.16.3
    Ghost Version: 3.22.2
    Ghost-CLI Version: 1.14.1
    Environment: production
    Command: 'ghost update'

Can you check your server resources to see if your server load is high and cpu usage is unusual? I have these issues with server actually crashing during update time.

No - very low server usage on both the installs I have this problem with.

Same issue here-

? Sudo Password [hidden]
✔ Checking system Node.js version
✔ Ensuring user is not logged in as ghost user
✔ Checking if logged in user is directory owner
✔ Checking current folder permissions
✔ Checking folder permissions
✔ Checking file permissions
✔ Checking content folder ownership
✔ Checking memory availability
✔ Checking for available migrations
✔ Checking for latest Ghost version
✖ Downloading and updating Ghost to v3.26.1
A ProcessError occurred.

Message: Command failed: yarn install --no-emoji --no-progress
warning ghost@3.26.1: The engine "cli" appears to be invalid.
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@0.5.28"
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@0.5.28"
warning " > bookshelf@0.15.2" has incorrect peer dependency "knex@>=0.13.0 <0.18.0".

yarn install v1.22.4
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@2.1.2: The platform "linux" is incompatible with this module.
info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.1.3: The platform "linux" is incompatible with this module.
info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
[5/5] Building fresh packages...


Debug Information:
    OS: Ubuntu, v18.04.4 LTS
    Node Version: v10.22.0
    Ghost Version: 3.26.0
    Ghost-CLI Version: 1.14.1
    Environment: production
    Command: 'ghost update'

This time it worked - very strange. I just logged out, logged back in, and ran the same command “ghost update”:

? Sudo Password [hidden]
✔ Checking system Node.js version
✔ Ensuring user is not logged in as ghost user
✔ Checking if logged in user is directory owner
✔ Checking current folder permissions
✔ Checking folder permissions
✔ Checking file permissions
✔ Checking content folder ownership
✔ Checking memory availability
✔ Checking for available migrations
✔ Checking for latest Ghost version
✔ Downloading and updating Ghost to v3.26.1
+ sudo systemctl stop ghost_www-URL-com
✔ Stopping Ghost
✔ Linking latest Ghost and recording versions
+ sudo systemctl start ghost_www-URL-com
✔ Restarting Ghost
✔ Removing old Ghost versions

I solved it in the same way. I just ran ghost update twice in a row. The first time it failed.The second time it succeeded. And this happened on two different installs. :man_shrugging:t3:

Still, on 3.26 safely now.

Just wanted to add that I had the same experience with my DigitalOcean instance, both when I tried updating to 3.23.1 (failed twice, gave up) and when I successfully updated to 3.26.1 today (same error first, worked on the second try).