-
-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
command "ghost restart" doesn't work #575
Comments
Duplicate of #461 (it also contains temporary workaround info) |
Hi, unfortunately this is not a duplicate of #461 Today, I wanted to upgrade my site from 1.18.0 to latest 1.19.x but it failed due to migration steps. But that's a different problem... As suggested, I upgraded ghost-cli to latest and since then I cannot run any commands that are related to ghost sites anymore. `Debug Information: Stack: Error: failed
The error is raised by node_module execa and not by ghost-cli's restart feature. Right now, I'm stuck with a situation that one site is still running and operational but a second Ghost site is down, and wouldn't start either. The suggested workaround to extend
Regards, Jochen |
Looks like it's failing at this line: Ghost-CLI/extensions/systemd/systemd.js Line 61 in bc6542b
Is "example-com" the correct instance name? |
Hi @kirrg001 Sorry for confusion, it's not that problem. I changed the domain here in the issue description. The original instance name is located below system/files/ and matches the information below /lib/systemd/system/ After a number of attempts and reading other issues here in the repo I finally moved the base folder of the blog to another location, ie. /var/www/example, and therefore to another set of permissions. This fixed the migration issue with knex-migrator and the blog came back to life. Was just a mess to amend the various configuration files of Ghost, nginx and systemd but well at last it's again operational. Interestingly, this wrong behaviour was introduced somewhere between 1.18.0 and following versions roughly. I started with Ghost 1.0.2 and upgraded since then regularly using the same folder structure and set of user permissions for 2 blogs. Right now, I have another blog still running in its original location being stuck on 1.18.0 as the database migrations would fail. I'll have to move that base folder first in order to be able to upgrade. It also didn't matter whether to use the knex-migrator coming with Ghost or using a globally installed version. Running the following statement As said, this used to work perfectly and smooth prior to Ghost versions > 1.18.0. Eventually, something to consider for the documentation of self-hosting Ghost owners. |
@jochenkirstaetter quick question - what OS are you running Ghost on? From the looks of it the OP is running on Centos 7, which may or may not have a different systemd layout than Ubuntu 16 (which Ghost-CLI targets), so if you're running on Centos as well I can help troubleshoot this better :) |
Hi @acburdine Nope, it's not running on CentOS but Debian Jessie in my case. Cheers! |
I see Im having the same issue here. Trying to start the blog gave me the same error: `Debug Information: Stack: Error: unknown
` If I install a new ghost instance works fine, unless it can "install" the service file and enable it, but ghost work. Also if I run 'ghost run' blogs works perfectly too |
Closing this for now as it doesn't seems to appear on the recommended stack and therefore is not high priority to fix. Community PRs are always welcome! |
The only problem of this issue is that the error handling is not good, this is a little independent from the stack. I would link this issue in #587. |
Finally found the problem. I was using ghost before ghost-cli and created special service files. With the new ghost version, those service files collide with the ones that ghost generate and basically that made it don't work |
@AileenCGN - I don't think it's related to the supported stack but the documentation should be improved stating that the installation of Ghost shouldn't be located below a user's home directory, or in my case below another user's home directory. /home/public/sites/ghost <== doesn't work, if your daily account isn't "public" Eventually, I might find some spare time to verify this on the recommended stack of Ghost soon, and blog about it with more details. More interestingly, why did it work between versions 1.0.2 and 1.18.0? But not any more on newer versions? |
@jochenkirstaetter We very much welcome any support or contributions in terms of debugging other stacks or determining minor changes that might have caused issues with other stacks. The CLI team is not able to provide support for problems happening outside the recommended stack at present and we've recently updated our readme to reflect this. The documentation does clearly state to only use @AileenCGN one thing we can track as a potential change is to add a location check to |
I am having this exact same issue myself... Didn't matter what I did, the damn thing kept dying on me. Almost makes me want to swap back to WordPress while they get this sorted out. However, just as I was about to give up, I frustratingly started restarting the server 3 times over and over, and it started to work again... dammit. TLDR> continually rebooting the VPS seems to somehow resolve things. Sounds like a race condition to me. |
For whom it is interesting. Apparently the issue stems from sysctl returning unknown for a sym linked service when it is not running. I had the same problem (#575 (comment)) But I upgraded to a newer version and now it is working correctly. |
@acburdine I suppose it would. |
This issue is a
Bug Report
Summary
My VPS was rebooted by its supplier, and then I wanted to restart my ghost services.However, the command "ghost restart" doesn't work.
I have tried reinstall ghost-cli, but the error still existed.
Steps to Reproduce (for a bug report)
ghost restart
Technical details (will be automatically output by Ghost-CLI if an error occurs):
Here are the error log:
Kate Note
Relies on better logging for systemd (issue TBD). We first need to improve logging to figure out what's going on.
The text was updated successfully, but these errors were encountered: