-
-
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
Ghost CLI does not seem to realize that my ghost instance is running #461
Comments
This is related to issue #431 |
@virtmann @TomChantler is correct in that it is likely a duplicate of #431 -> was there a server reboot at some point before running restart? |
@TomChantler - Most likely, yes. I have moved on and rebuilt the box cleanly with ghost-cli 1.1.1 and ghost 1.7.0. I have not seen any issues yet after the rebuild. I have the old VM still if there is anything you want me to test. |
Is there a fix for this yet? Ghost-CLI is broken on my server currently, it always shows that Ghost is stopped, even though Ghost is running. The only way to reboot the process currently is using Migrating to a new server and doing a clean install fixes this, but causes my blog to lose all of it's Disqus comments, not that's not a great option for me currently. |
@triestpa A workaround is to add |
Same issue here, and @gcochard 's workaround just works. |
Is a variable I should be replacing? I added it to my file and had no luck. |
@skluthe I had the same issue I quite literally copied and pasted |
@gcochard confirmed, after a reboot on DigitalOcean VM the Ghost CLI does not find the running Ghost instance. Your fix works. |
Hey there, just for any newbie that bumps to the same issue. I was having this problem but it was just because I was executing ghost-cli commands from another user |
Hello there, I'm running into the same issue. The ghost-cli seems like doesn't know about Ghost instance already running.
Adding |
This issue is a
Summary
Ghost CLI does not seem to realize that my ghost instance is running. Running "ghost status" shows the instance as stopped when it is indeed running.
Steps to Reproduce (for a bug report)
When running "ghost restart" I get an error that the Ghost instance is not currently running. I can confirm that the ghost instance is running and working correctly. If I try to run "ghost start" I get an error that the port is already in use (because ghost is running).
I am running Ghost 1.7.0 with Ghost-CLI 1.1.1. I can confirm that Ghost 1.7.0 did work with Ghost-CLI 1.0.3
Any other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?
Debug Information:
Node Version: v6.11.2
Ghost-CLI Version: 1.1.1
Environment: production
Command: 'ghost restart'
An error occurred.
Message: 'Ghost instance is not currently running.'
Stack: Error: Ghost instance is not currently running.
at RestartCommand.run (/usr/lib/node_modules/ghost-cli/lib/commands/restart.js:9:35)
at Function._run (/usr/lib/node_modules/ghost-cli/lib/command.js:198:48)
at Object.handler (/usr/lib/node_modules/ghost-cli/lib/command.js:117:22)
at Object.self.runCommand (/usr/lib/node_modules/ghost-cli/node_modules/yargs/lib/command.js:233:22)
at Object.Yargs.self._parseArgs (/usr/lib/node_modules/ghost-cli/node_modules/yargs/yargs.js:990:30)
at Object.Yargs.self.parse (/usr/lib/node_modules/ghost-cli/node_modules/yargs/yargs.js:532:23)
at Object.run (/usr/lib/node_modules/ghost-cli/lib/bootstrap.js:165:14)
at Object. (/usr/lib/node_modules/ghost-cli/bin/ghost:14:11)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
at startup (bootstrap_node.js:149:9)
Technical details (will be automatically output by Ghost-CLI if an error occurs):
The text was updated successfully, but these errors were encountered: