Update error after uploading new themes

If you’re looking for some help, it’s important to provide as much context as possible so that people are able to assist you. Try to always mention:

  • https://hoddzdj.com
  • What version of Ghost are you using? 2.9.0
  • What configuration? Digital Ocean 1-click install
  • What browser? Firefox for Mac
  • What errors or information do you see in the console? Cannot remember now
  • What steps could someone else take to reproduce the issue you’re having? Add new themes through the .zip uploader in Ghost Admin, then activate them as the theme. Try to update with ghost-cli.
ghost-mgr@ghost-s-1vcpu-1gb-lon1-01:/var/www/ghost$ ghost update
+ sudo systemctl is-active ghost_142-93-46-153
✔ 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 v2.10.0
A ProcessError occurred.

Message: Command failed: yarn install --no-emoji --no-progress
warning ghost@2.10.0: The engine "cli" appears to be invalid.
error An unexpected error occurred: "/var/www/ghost/versions/2.10.0/node_modules/jsonpath: spawn ENOMEM".
warning Error running install script for optional dependency: "/var/www/ghost/versions/2.10.0/node_modules/dtrace-provider: spawn ENOMEM"
warning Error running install script for optional dependency: "/var/www/ghost/versions/2.10.0/node_modules/sharp: spawn ENOMEM"
warning Error running install script for optional dependency: "/var/www/ghost/versions/2.10.0/node_modules/knex-migrator/node_modules/sqlite3: spawn ENOMEM"
warning Error running install script for optional dependency: "/var/www/ghost/versions/2.10.0/node_modules/sqlite3: spawn ENOMEM"

yarn install v1.9.4
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
info If you think this is a bug, please open a bug report with the information provided in "/var/www/ghost/versions/2.10.0/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
info This module is OPTIONAL, you can safely ignore this error
info This module is OPTIONAL, you can safely ignore this error
info This module is OPTIONAL, you can safely ignore this error
info This module is OPTIONAL, you can safely ignore this error

Exit code: 1


Debug Information:
OS: Ubuntu, v18.04
Node Version: v8.10.0
Ghost-CLI Version: 1.9.8
Environment: production
Command: 'ghost update'

Additional log info available in: /home/ghost-mgr/.ghost/logs/ghost-cli-debug-2019-01-08T17_23_37_021Z.log

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

You can always refer to https://docs.ghost.org/docs/troubleshooting#section-cli-errors for troubleshooting.
ghost-mgr@ghost-s-1vcpu-1gb-lon1-01:/var/www/ghost$

Your droplet doesn’t have enough memory for ghost to update - add some swap:

https://docs.ghost.org/faq/adding-swap-memory/

Thanks! Can I run those commands from the base directory? As in, not specifically the ghost directory or does it have to be somewhere specific?

Yep, you’re not making changes to your installation, rather your system

Brilliant, thanks! Will give it a shot.

That has sorted it :boom:

One thing though, I make a typo on the first line. Is there anything I need to worry about or do I need to do something to fix that? I missed the ‘a’ in swap.

dd if=/dev/zero of=/var/swap bs=1k count=1024k

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.