# Problem with ghost CLI (cannot restart or stop)

**URL:** https://forum.ghost.org/t/problem-with-ghost-cli-cannot-restart-or-stop/18749
**Category:** Installation
**Created:** [December 7, 2020, 2:45pm UTC](https://forum.ghost.org/t/problem-with-ghost-cli-cannot-restart-or-stop/18749 "2020-12-07T14:45:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Publipresse](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@Publipresse](https://forum.ghost.org/u/Publipresse)
#### Post date: [December 7, 2020, 2:45pm UTC](https://forum.ghost.org/t/problem-with-ghost-cli-cannot-restart-or-stop/18749/1 "2020-12-07T14:45:13Z")

</div>

Hi,  
This morning, I cannot launch my local Ghost install  
[http://localhost:2368/](http://localhost:2368/) don’t work  
I try to restart Ghost with “ghost restart”

> × Restarting Ghost  
> A CliError occurred.  
> Message: An unexpected error occurred while stopping Ghost.

This is the log file

Debug Information:  
OS: Microsoft Windows 10 Professionnel, v10.0.19042  
Node Version: v12.19.0  
Ghost Version: 3.37.1  
Ghost-CLI Version: 1.15.2  
Environment: development  
Command: ‘ghost restart’  
Message: An unexpected error occurred while stopping Ghost.  
Stack: Error: An unexpected error occurred while stopping Ghost.  
at C:\Users\xtric\AppData\Roaming\npm\node\_modules\ghost-cli\lib\utils\local-process.js:124:39  
at processTicksAndRejections (internal/process/task\_queues.js:97:5)  
at async LocalProcess.restart (C:\Users\xtric\AppData\Roaming\npm\node\_modules\ghost-cli\lib\process-manager.js:34:9)  
at async Instance.restart (C:\Users\xtric\AppData\Roaming\npm\node\_modules\ghost-cli\lib\instance.js:326:9)

Original Error Message:  
Message:  
Error: Killing process 8592 failed: Process doesn’t exist  
at Array.map ()  
at fkill (C:/Users/xtric/AppData/Roaming/npm/node\_modules/ghost-cli/node\_modules/fkill/index.js:128:9)  
at async LocalProcess.restart (C:/Users/xtric/AppData/Roaming/npm/node\_modules/ghost-cli/lib/process-manager.js:34:9)  
at async Instance.restart (C:/Users/xtric/AppData/Roaming/npm/node\_modules/ghost-cli/lib/instance.js:326:9)  
Stack: AggregateError:  
Error: Killing process 8592 failed: Process doesn’t exist  
at Array.map ()  
at fkill (C:/Users/xtric/AppData/Roaming/npm/node\_modules/ghost-cli/node\_modules/fkill/index.js:128:9)  
at async LocalProcess.restart (C:/Users/xtric/AppData/Roaming/npm/node\_modules/ghost-cli/lib/process-manager.js:34:9)  
at async Instance.restart (C:/Users/xtric/AppData/Roaming/npm/node\_modules/ghost-cli/lib/instance.js:326:9)  
at fkill (C:\Users\xtric\AppData\Roaming\npm\node\_modules\ghost-cli\node\_modules\fkill\index.js:128:9)  
at processTicksAndRejections (internal/process/task\_queues.js:97:5)  
at async LocalProcess.restart (C:\Users\xtric\AppData\Roaming\npm\node\_modules\ghost-cli\lib\process-manager.js:34:9)  
at async Instance.restart (C:\Users\xtric\AppData\Roaming\npm\node\_modules\ghost-cli\lib\instance.js:326:9)

---

<div class="post-metadata">

### Author: ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)
#### Post date: [December 7, 2020, 2:47pm UTC](https://forum.ghost.org/t/problem-with-ghost-cli-cannot-restart-or-stop/18749/2 "2020-12-07T14:47:00Z")

</div>

@Publipresse does `ghost start` work? The error you’ve given is showing that Ghost isn’t running so there was nothing to stop as part of the restart.

---

<div class="post-metadata">

### Author: ![Publipresse](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@Publipresse](https://forum.ghost.org/u/Publipresse)
#### Post date: [December 7, 2020, 3:19pm UTC](https://forum.ghost.org/t/problem-with-ghost-cli-cannot-restart-or-stop/18749/3 "2020-12-07T15:19:19Z")

</div>

Hi Kevin,  
No, ghost start says it is running

**PS E:\Documents\GHOST LPDD\> ghost start**

Ghost is already running! For more information, run:

```
ghost ls

```

**PS E:\Documents\GHOST LPDD\> ghost stop**  
× Stopping Ghost: ghost-local  
A CliError occurred.

Message: An unexpected error occurred while stopping Ghost.

Debug Information:  
OS: Microsoft Windows 10 Professionnel, v10.0.19042  
Node Version: v12.19.0  
Ghost Version: 3.37.1  
Ghost-CLI Version: 1.15.2  
Environment: development  
Command: ‘ghost stop’

Additional log info available in: C:\Users\xtric.ghost\logs\ghost-cli-debug-2020-12-07T15\_15\_36\_721Z.log

Try running ghost doctor to check your system for known issues.

You can always refer to [Ghost-CLI - A fully loaded tool for installation and configuration](https://ghost.org/docs/api/ghost-cli/) for troubleshooting.  
**PS E:\Documents\GHOST LPDD\> ghost run**  
The `ghost run` command is used by the configured Ghost process manager and for debugging. If you’re not running this to debug something, you should run `ghost start` instead.  
E:\Documents\GHOST LPDD\versions\3.37.1\core\shared\config\utils.js:103  
delete database.connection.host;  
^

TypeError: Cannot read property ‘connection’ of undefined  
at exports.Provider.sanitizeDatabaseProperties (E:\Documents\GHOST LPDD\versions\3.37.1\core\shared\config\utils.js:103:25)  
at Object.loadNconf (E:\Documents\GHOST LPDD\versions\3.37.1\core\shared\config\index.js:52:11)  
at Object. (E:\Documents\GHOST LPDD\versions\3.37.1\core\shared\config\index.js:83:27)  
at Module.\_compile (internal/modules/cjs/loader.js:1015:30)  
at Object.Module.\_extensions…js (internal/modules/cjs/loader.js:1035:10)  
at Module.load (internal/modules/cjs/loader.js:879:32)  
at Function.Module.\_load (internal/modules/cjs/loader.js:724:14)  
at Module.require (internal/modules/cjs/loader.js:903:19)  
at require (internal/modules/cjs/helpers.js:74:18)  
at Object. (E:\Documents\GHOST LPDD\versions\3.37.1\core\shared\sentry.js:1:16)  
PS E:\Documents\GHOST LPDD\>
