Report this

What is the reason for this report?

Can't restart ghost after update: "Ghost-CLI commands do not work..." error

Posted on February 5, 2020

Hello,

I have a 1-click Ghost droplet. It was running fine but was outdated so I did an update, which went smoothly. Unfortunately, now I can’t restart ghost.

When I do sudo -i -u ghost-mgr and attempt ghost restart I get:

ghost-mgr@br-2:/var/www/ghost$ ghost restart
Ghost-CLI commands do not work inside of a git clone, zip download or with Ghost <1.0.0.
Perhaps you meant `grunt restart`?
Otherwise, run `ghost restart` again within a valid Ghost installation.

Can anyone provide any pointers please?



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!

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.

Hello,

I’ve tried to replicate this at my end by setting up a Ghost 1-click Droplet and upgrading Ghost but in the end it worked as expected and I did not get the error.

What is the output of the following command:

ghost ls

Also, can you run an ls -lah in the /var/www/ghost folder?

Regards, Bobby

I am having the same issue, tried updating Ghost from 3.2 to 3.40 but when I try to restart Ghost I get “Ghost-CLI commands do not work inside of a git clone, zip download or with Ghost <1.0.0.”

any help?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.