# Upgrade from 3.24 to 3.25 fails

**URL:** <https://forum.ghost.org/t/upgrade-from-3-24-to-3-25-fails/15911>\
**Category:** Installation\
**Created:** [July 16, 2020, 9:18am UTC](https://forum.ghost.org/t/upgrade-from-3-24-to-3-25-fails/15911 "2020-07-16T09:18:39Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![stiggy](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/stiggy/32/3740_2.png) [@stiggy](https://forum.ghost.org/u/stiggy)\
**Post date:** [July 16, 2020, 9:18am UTC](https://forum.ghost.org/t/upgrade-from-3-24-to-3-25-fails/15911/1 "2020-07-16T09:18:39Z")

</div>

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  
✔ 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.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  
✔ Checking system Node.js version  
✔ 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 operating system compatibility  
✔ Checking for a MySQL installation

- sudo systemctl is-active  
Instance is currently running  
ℹ Validating config [skipped]  
✔ Checking folder permissions  
✔ Checking file permissions  
✔ Checking content folder ownership  
✔ Checking memory availability  
✔ 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 🙂

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [July 17, 2020, 8:47am UTC](https://forum.ghost.org/t/upgrade-from-3-24-to-3-25-fails/15911/2 "2020-07-17T08:47:05Z")

</div>

> [@stiggy](#):
>
> Message: Command failed: yarn install --no-emoji --no-progress

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.

---

<div class="post-metadata">

**Author:** ![Adders](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/adders/32/295_2.png) [@Adders](https://forum.ghost.org/u/Adders)\
**Post date:** [July 17, 2020, 11:48am UTC](https://forum.ghost.org/t/upgrade-from-3-24-to-3-25-fails/15911/3 "2020-07-17T11:48:24Z")

</div>

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'
```

---

<div class="post-metadata">

**Author:** ![stiggy](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/stiggy/32/3740_2.png) [@stiggy](https://forum.ghost.org/u/stiggy)\
**Post date:** [July 17, 2020, 1:14pm UTC](https://forum.ghost.org/t/upgrade-from-3-24-to-3-25-fails/15911/4 "2020-07-17T13:14:08Z")

</div>

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  
✔ 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.25.0  
✔ Stopping Ghost  
✔ Linking latest Ghost and recording versions  
✔ Restarting Ghost  
✔ Removing old Ghost versions

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

---

<div class="post-metadata">

**Author:** ![Adders](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/adders/32/295_2.png) [@Adders](https://forum.ghost.org/u/Adders)\
**Post date:** [July 18, 2020, 7:58am UTC](https://forum.ghost.org/t/upgrade-from-3-24-to-3-25-fails/15911/5 "2020-07-18T07:58:57Z")

</div>

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'
```

---

<div class="post-metadata">

**Author:** ![dsecareanu](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/dsecareanu/32/413_2.png) [@dsecareanu](https://forum.ghost.org/u/dsecareanu)\
**Post date:** [July 21, 2020, 1:40pm UTC](https://forum.ghost.org/t/upgrade-from-3-24-to-3-25-fails/15911/6 "2020-07-21T13:40:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Adders](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/adders/32/295_2.png) [@Adders](https://forum.ghost.org/u/Adders)\
**Post date:** [July 22, 2020, 10:08am UTC](https://forum.ghost.org/t/upgrade-from-3-24-to-3-25-fails/15911/7 "2020-07-22T10:08:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Hal](https://avatars.discourse-cdn.com/v4/letter/h/ee7513/32.png) [@Hal](https://forum.ghost.org/u/Hal)\
**Post date:** [July 23, 2020, 11:46pm UTC](https://forum.ghost.org/t/upgrade-from-3-24-to-3-25-fails/15911/8 "2020-07-23T23:46:44Z")

</div>

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'
```

---

<div class="post-metadata">

**Author:** ![Hal](https://avatars.discourse-cdn.com/v4/letter/h/ee7513/32.png) [@Hal](https://forum.ghost.org/u/Hal)\
**Post date:** [July 23, 2020, 11:50pm UTC](https://forum.ghost.org/t/upgrade-from-3-24-to-3-25-fails/15911/9 "2020-07-23T23:50:49Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![Adders](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/adders/32/295_2.png) [@Adders](https://forum.ghost.org/u/Adders)\
**Post date:** [July 24, 2020, 7:05am UTC](https://forum.ghost.org/t/upgrade-from-3-24-to-3-25-fails/15911/10 "2020-07-24T07:05:48Z")

</div>

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. 🤷🏼‍♂️

Still, on 3.26 safely now.

---

<div class="post-metadata">

**Author:** ![brooklet](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/brooklet/32/6348_2.png) [@brooklet](https://forum.ghost.org/u/brooklet)\
**Post date:** [July 24, 2020, 9:06pm UTC](https://forum.ghost.org/t/upgrade-from-3-24-to-3-25-fails/15911/11 "2020-07-24T21:06:41Z")

</div>

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).
