Cannot start ghost, process-manager.js throws error

Hi, I’m trying to start Ghost and I keep failing in “ghost start” command. My situation is as following:

  • What version of Ghost are you using? 2.30.2
  • What configuration? Ubuntu 16.04
  • What errors or information do you see in the console?

When I run “ghost start” or “ghost install” (in the final step), I get the following:

  • sudo systemctl is-active ghost_hearta-de
  • sudo systemctl reset-failed ghost_hearta-de
    :heavy_check_mark: Ensuring user is not logged in as ghost user
    :heavy_check_mark: Checking if logged in user is directory owner
    :heavy_check_mark: Checking current folder permissions
  • sudo systemctl is-active ghost_hearta-de
    :heavy_check_mark: Validating config
    :heavy_check_mark: Checking folder permissions
    :heavy_check_mark: Checking file permissions
    :heavy_check_mark: Checking content folder ownership
    :heavy_check_mark: Checking memory availability
  • sudo systemctl start ghost_hearta-de
  • sudo systemctl stop ghost_hearta-de
    :heavy_multiplication_x: Starting Ghost
    A GhostError occurred.

Message: Could not communicate with Ghost
Suggestion: journalctl -u ghost_hearta-de -n 50

Debug Information:
OS: Ubuntu, v16.04
Node Version: v10.15.3
Ghost-CLI Version: 1.11.0
Environment: production
Command: ‘ghost install’

When I run “sudo journalctl -u ghost_hearta-de -n 50” I get the following:

Aug 31 18:09:46 server.covalent.ga systemd[1]: Started Ghost systemd service for blog: hearta-de.
Aug 31 18:09:59 server.covalent.ga node[13783]: /usr/lib/node_modules/ghost-cli/lib/process-manager.js:52
Aug 31 18:09:59 server.covalent.ga node[13783]: throw error;
Aug 31 18:09:59 server.covalent.ga node[13783]: ^
Aug 31 18:09:59 server.covalent.ga node[13783]: [object Object]
Aug 31 18:09:59 server.covalent.ga systemd[1]: ghost_hearta-de.service: Main process exited, code=exited, status=1/FAILURE
Aug 31 18:09:59 server.covalent.ga systemd[1]: ghost_hearta-de.service: Unit entered failed state.
Aug 31 18:09:59 server.covalent.ga systemd[1]: ghost_hearta-de.service: Failed with result ‘exit-code’.
Aug 31 18:10:00 server.covalent.ga systemd[1]: ghost_hearta-de.service: Service hold-off time over, scheduling restart.
Aug 31 18:10:00 server.covalent.ga systemd[1]: Stopped Ghost systemd service for blog: hearta-de.
Aug 31 18:10:00 server.covalent.ga systemd[1]: Started Ghost systemd service for blog: hearta-de.
Aug 31 18:10:13 server.covalent.ga node[13810]: /usr/lib/node_modules/ghost-cli/lib/process-manager.js:52
Aug 31 18:10:13 server.covalent.ga node[13810]: throw error;
Aug 31 18:10:13 server.covalent.ga node[13810]: ^
Aug 31 18:10:13 server.covalent.ga node[13810]: [object Object]
Aug 31 18:10:13 server.covalent.ga systemd[1]: ghost_hearta-de.service: Main process exited, code=exited, status=1/FAILURE
Aug 31 18:10:13 server.covalent.ga systemd[1]: ghost_hearta-de.service: Unit entered failed state.
Aug 31 18:10:13 server.covalent.ga systemd[1]: ghost_hearta-de.service: Failed with result ‘exit-code’.
Aug 31 18:10:13 server.covalent.ga systemd[1]: ghost_hearta-de.service: Service hold-off time over, scheduling restart.
Aug 31 18:10:13 server.covalent.ga systemd[1]: Stopped Ghost systemd service for blog: hearta-de.

The above error repeats before ghost Ghost finally decides it’s unable to start.
I am a complete newbie when it comes to servers, so I have no idea what these errors mean and would like to learn how to fix this. Any help would be greatly appreciated. Thank you in advance!

Could you try running ghost run in your installation directory? This will start ghost in your terminal, so to get out, you need to hit ctrl+c.

You can also do ghost log --error and ghost log to get logs from earlier