# Unable to start Ghost

**URL:** <https://forum.ghost.org/t/unable-to-start-ghost/26383>\
**Category:** Developer help\
**Created:** [October 20, 2021, 5:48pm UTC](https://forum.ghost.org/t/unable-to-start-ghost/26383 "2021-10-20T17:48:12Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![phenomlab](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@phenomlab](https://forum.ghost.org/u/phenomlab)\
**Post date:** [October 20, 2021, 5:48pm UTC](https://forum.ghost.org/t/unable-to-start-ghost/26383/1 "2021-10-20T17:48:12Z")

</div>

Hi All,

I’ve installed Ghost as per the official Ubuntu guides, but am unable to start it. I see the below in the logs

```auto
Debug Information:
    OS: Ubuntu, v20.04.3 LTS
    Node Version: v14.18.1
    Ghost Version: 4.19.1
    Ghost-CLI Version: 1.17.4
    Environment: production
    Command: 'ghost start'
Message: Could not communicate with Ghost
Suggestion: journalctl -u ghost_blog-sudonix-com -n 50
Stack: Error: Could not communicate with Ghost
    at Server.<anonymous> (/usr/lib/node_modules/ghost-cli/lib/utils/port-polling.js:91:20)
    at Object.onceWrapper (events.js:519:28)
    at Server.emit (events.js:400:28)
    at emitCloseNT (net.js:1677:8)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)

```

In addition, I cannot even execute `ghost run`, which shows the below error

```auto
internal/modules/cjs/loader.js:905
  throw err;
  ^

Error: Cannot find module '/home/sudonix/domains/blog.sudonix.com/blog/current/index.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

```

I’m using v14.8 of node and nodejs, and have NodeBB installed in the root domain of [https://sudonix.com](https://sudonix.com). I’m attempting to install Ghost in [https://blog.sudonix.com](https://blog.sudonix.com)

Many thanks

---

<div class="post-metadata">

**Author:** ![benravetta](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@benravetta](https://forum.ghost.org/u/benravetta)\
**Post date:** [October 20, 2021, 8:38pm UTC](https://forum.ghost.org/t/unable-to-start-ghost/26383/2 "2021-10-20T20:38:35Z")

</div>

`ghost doctor`

---

<div class="post-metadata">

**Author:** ![phenomlab](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@phenomlab](https://forum.ghost.org/u/phenomlab)\
**Post date:** [October 20, 2021, 10:39pm UTC](https://forum.ghost.org/t/unable-to-start-ghost/26383/3 "2021-10-20T22:39:20Z")

</div>

```auto
✔ Checking system Node.js version - found v14.18.1     
✔ Checking logged in user
✔ Ensuring user is not logged in as ghost user
✔ Checking if logged in user is directory owner
✔ Checking current folder permissions                  
✔ Checking system compatibility                       
✔ Checking for a MySQL installation                   
+ sudo systemctl is-active ghost_blog-sudonix-com-1
? Sudo Password [hidden]                              
+ sudo systemctl reset-failed ghost_blog-sudonix-com-1 
✔ Validating config                                    
✔ Checking folder permissions                          
✔ Checking file permissions                            
✔ Checking content folder ownership
✔ Checking memory availability
✔ Checking binary dependencies
✔ Checking free space
✔ Checking systemd unit file
✔ Checking systemd node version - found v14.18.1

```

---

<div class="post-metadata">

**Author:** ![phenomlab](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@phenomlab](https://forum.ghost.org/u/phenomlab)\
**Post date:** [October 21, 2021, 12:11pm UTC](https://forum.ghost.org/t/unable-to-start-ghost/26383/4 "2021-10-21T12:11:55Z")

</div>

Anyone able to assist with this ?

Thanks

---

<div class="post-metadata">

**Author:** ![benravetta](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@benravetta](https://forum.ghost.org/u/benravetta)\
**Post date:** [October 21, 2021, 8:08pm UTC](https://forum.ghost.org/t/unable-to-start-ghost/26383/5 "2021-10-21T20:08:23Z")

</div>

Have you updated your ghost-cli?

---

<div class="post-metadata">

**Author:** ![phenomlab](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@phenomlab](https://forum.ghost.org/u/phenomlab)\
**Post date:** [October 21, 2021, 8:13pm UTC](https://forum.ghost.org/t/unable-to-start-ghost/26383/6 "2021-10-21T20:13:59Z")

</div>

I’m already using latest.

---

<div class="post-metadata">

**Author:** ![benravetta](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@benravetta](https://forum.ghost.org/u/benravetta)\
**Post date:** [October 21, 2021, 8:20pm UTC](https://forum.ghost.org/t/unable-to-start-ghost/26383/7 "2021-10-21T20:20:08Z")

</div>

Ok, so, have you started it previously? Or is this directly after installation? Which guide specifically, did you use?

---

<div class="post-metadata">

**Author:** ![phenomlab](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@phenomlab](https://forum.ghost.org/u/phenomlab)\
**Post date:** [October 21, 2021, 8:24pm UTC](https://forum.ghost.org/t/unable-to-start-ghost/26383/8 "2021-10-21T20:24:32Z")

</div>

Directly after install. I’ve since found this in journalctl

```auto

Oct 21 16:49:22 vps.phenomlab.com systemd[78484]: ghost_blog-sudonix-com.service: Changing to the requested workin>Oct 21 16:49:22 vps.phenomlab.com systemd[78484]: ghost_blog-sudonix-com.service: Failed at step CHDIR spawning /u>Oct 21 16:49:22 vps.phenomlab.com systemd[1]: ghost_blog-sudonix-com.service: Main process exited, code=exited, st>Oct 21 16:49:22 vps.phenomlab.com systemd[1]: ghost_blog-sudonix-com.service: Failed with result 'exit-code'. Oct 21 16:49:22 vps.phenomlab.com systemd[1]: ghost_blog-sudonix-com.service: Scheduled restart job, restart count>Oct 21 16:49:22 vps.phenomlab.com systemd[1]: Stopped Ghost systemd service for blog: blog-sudonix-com. Oct 21 16:49:22 vps.phenomlab.com systemd[1]: ghost_blog-sudonix-com.service: Start request repeated too quickly. Oct 21 16:49:22 vps.phenomlab.com systemd[1]: ghost_blog-sudonix-com.service: Failed with result 'exit-code'. Oct 21 16:49:22 vps.phenomlab.com systemd[1]: Failed to start Ghost systemd service for blog: blog-sudonix-com. lines 48-51/51 (END)

```

---

<div class="post-metadata">

**Author:** ![benravetta](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@benravetta](https://forum.ghost.org/u/benravetta)\
**Post date:** [October 21, 2021, 8:29pm UTC](https://forum.ghost.org/t/unable-to-start-ghost/26383/9 "2021-10-21T20:29:46Z")

</div>

> [@phenomlab](#):
>
> `Failed at step CHDIR spawning`

Makes me think it might be a permission issue. Did you 775 the ghost directory?

---

<div class="post-metadata">

**Author:** ![phenomlab](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@phenomlab](https://forum.ghost.org/u/phenomlab)\
**Post date:** [October 21, 2021, 8:34pm UTC](https://forum.ghost.org/t/unable-to-start-ghost/26383/10 "2021-10-21T20:34:16Z")

</div>

Yes. I tried that multiple times but it doesn’t seem to have made any difference

---

<div class="post-metadata">

**Author:** ![benravetta](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@benravetta](https://forum.ghost.org/u/benravetta)\
**Post date:** [October 21, 2021, 8:34pm UTC](https://forum.ghost.org/t/unable-to-start-ghost/26383/11 "2021-10-21T20:34:25Z")

</div>

Check this out: [Failed at step CHDIR spawning /usr/bin/node: No such file or directory](https://forum.ghost.org/t/failed-at-step-chdir-spawning-usr-bin-node-no-such-file-or-directory/21629)

---

<div class="post-metadata">

**Author:** ![phenomlab](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@phenomlab](https://forum.ghost.org/u/phenomlab)\
**Post date:** [October 21, 2021, 8:37pm UTC](https://forum.ghost.org/t/unable-to-start-ghost/26383/12 "2021-10-21T20:37:28Z")

</div>

Thanks. I checked that also. The path appears to be correct

---

<div class="post-metadata">

**Author:** ![phenomlab](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@phenomlab](https://forum.ghost.org/u/phenomlab)\
**Post date:** [October 22, 2021, 10:16am UTC](https://forum.ghost.org/t/unable-to-start-ghost/26383/13 "2021-10-22T10:16:28Z")

</div>

Interesting, if I use `ghost config --process local` then set the permissions for folder `content` to be the user I want, ghost starts !!

Seems it’s an issue with `systemd` but not sure where presently.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [January 20, 2022, 10:17am UTC](https://forum.ghost.org/t/unable-to-start-ghost/26383/14 "2022-01-20T10:17:06Z")

</div>

Closed on January 20, 2022, 10:17am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
