I am trying to upgrade my Ghost installation from 3.2 to 3.40.1, however after following the instructions here in which I stopped the ghost service, downloaded the latest zip from http://ghost.org/zip/ghost-latest.zip, and unzipped it and replaced my files in the core
directory, when I try to restart the service with ghost start
I get the following error:
Ghost-CLI commands do not work inside of a git clone, zip download or with Ghost <1.0.0.
I am in /var/www/ghost right now.
Thanks!
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.
Hi there @morganholland,
Yes indeed this is quite possibly the reason why you are seeing that permissions error.
Have you tried setting the group of the file to the ghost-mgw
user instead? You can do that with the following command:
- sudo chgrp ghost-mgw config.production.json
Regards, Bobby
Click below to sign up and get $100 of credit to try our products over 60 days!
It looks like the old update instructions I found are out of date. I’ve been following the instructions here with some success. I removed a ton of junk files from my ghost directory.
Next I ran
ghost doctor
and was told I had some permission issues and that I should runsudo find ./ ! -path "./versions/*" -type f -exec chmod 664 {} \;
so I did. Then I was able to runghost update
successfully, and now I have:However, I’m now getting the following error when running
ghost start
:The permissions for
config.production.json
are:-rw-rw-r-- 1 ghost ghost 798 Jun 24 21:01 config.production.json
The only thing I see that might be an issue is that I’m logged in a
ghost-mgr
, but the owner of the file isghost
?