Question

Cannot run ghost commands on ghost droplet

I’ve tried all the suggestions in this post: https://www.digitalocean.com/community/questions/can-t-restart-ghost-after-update-ghost-cli-commands-do-not-work-error

Steps to reproduce

  1. Deploy a new ghost droplet
  2. ssh into ghost droplet
  3. login as ghost-mgr
  4. cd into ghost project (e.g. /var/www/ghost)
  5. run ghost help

Expected behavior

Ghost command should return list of help instructions.

Actual behavior: When I run ghost help, nothing happens the command just hangs.

Out of ideas on this one. I’m just trying to restart ghost after making a change to default.hbs

I’ve also noticed that my ghost droplet has been ridiculously slow. Taking 20 seconds or so just to load the homepage which has a few static assets, nothing more. Was seeing some 5xx gateway timeout errors intermittently. Monitoring graphs show 99% CPU and Memory usage. Is that normal for the $6/mo tier ghost droplet?

Show comments

Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

KFSys
Site Moderator
Site Moderator badge
October 5, 2022

Hi @jonwt,

Let’s start with the usage question. I believe the minimum RAM for ghost installation is 1GB , (as stated in their documentation) and for lower than 1GB we you use swap memory. Having said that, that can cause some slowness.

A couple of things to check according to GHOST docs again

Are you using the default theme?

The theme is the place where you as a user have the most ability to cause performance bottlenecks by accident, as it were.

Are you up-to-date?

We regularly test and make improvements to performance, so it should pay off to keep up-to-date. If your performance decreases significantly after an update, we’d want to know about it.

Additionally, can you see if you can use the ghost-cli with your root user or you can’t use it with it as well? If that’s the case you can try and install ghost cli on your user by running the following command:

  1. npm install ghost-cli@latest -g

Update:

I ssh’d into the droplet and ran reboot. Everything seems to be working now, the slow speeds appear to be gone, and ghost commands are working. Will keep this ticket updated if something changes or goes similarly wrong again.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.