I can't start Ghost

I can’t start Ghost.My website is https://lzcdev.xyz
Ghost-CLI version: 1.9.8
Ghost version: 2.9.0 (at /var/www/ghost)

My config.production.json is:

Execute ghost doctor

How to debug this error?

Have you reviewed the debug log that was generated for you as shown in the first screenshot?

The first screenshot also has a suggested command to run.

Here is the log:

[lzc@izbp16rj3olbfn65dbpsp4z ghost]$ cat /home/lzc/.ghost/logs/ghost-cli-debug-2018-12-18T16_12_04_628Z.log
Debug Information:
OS: linux, v3.10.0-862.14.4.el7.x86_64
Node Version: v8.11.3
Ghost-CLI Version: 1.9.8
Environment: production
Command: ‘ghost start’
Message: Could not communicate with Ghost
Suggestion: journalctl -u ghost_lzcdev-xyz -n 50
Stack: Error: Could not communicate with Ghost
at Server.server.close (/usr/local/lib/node_modules/ghost-cli/lib/utils/port-polling.js:56:20)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:106:13)
at Server.emit (events.js:208:7)
at emitCloseNT (net.js:1659:8)
at _combinedTickCallback (internal/process/next_tick.js:135:11)
at process._tickCallback (internal/process/next_tick.js:180:9)

pic_hd

Here is in my root users log:

[root@izbp16rj3olbfn65dbpsp4z ~]# journalctl -u ghost_lzcdev-xyz -n 50
– Logs begin at Fri 2018-06-08 04:46:46 CST, end at Wed 2018-12-19 00:33:24 CST. –
Dec 19 00:07:42 izbp16rj3olbfn65dbpsp4z node[9924]: at Module.require (module.js:596:17)
Dec 19 00:07:42 izbp16rj3olbfn65dbpsp4z node[9924]: at require (internal/module.js:11:18)
Dec 19 00:07:42 izbp16rj3olbfn65dbpsp4z node[9924]: at isDatabaseInitialisationRequired (/var/www/ghost/versions/2.9.0/core/server/index.js:152:16)
Dec 19 00:07:42 izbp16rj3olbfn65dbpsp4z node[9924]: at makeGhost (/var/www/ghost/versions/2.9.0/core/index.js:13:12)
Dec 19 00:07:42 izbp16rj3olbfn65dbpsp4z node[9924]: at Object. (/var/www/ghost/versions/2.9.0/index.js:20:1)
Dec 19 00:07:42 izbp16rj3olbfn65dbpsp4z node[9924]: at Module._compile (module.js:652:30)
Dec 19 00:07:42 izbp16rj3olbfn65dbpsp4z node[9924]: at Object.Module._extensions…js (module.js:663:10)
Dec 19 00:07:42 izbp16rj3olbfn65dbpsp4z node[9924]: at Module.load (module.js:565:32)
Dec 19 00:07:42 izbp16rj3olbfn65dbpsp4z node[9924]: at tryModuleLoad (module.js:505:12)
Dec 19 00:07:42 izbp16rj3olbfn65dbpsp4z node[9924]: at Function.Module._load (module.js:497:3)
Dec 19 00:07:42 izbp16rj3olbfn65dbpsp4z node[9924]: at Function.Module.runMain (module.js:693:10)
Dec 19 00:07:42 izbp16rj3olbfn65dbpsp4z node[9924]: at startup (bootstrap_node.js:191:16)
Dec 19 00:07:42 izbp16rj3olbfn65dbpsp4z node[9924]: at bootstrap_node.js:612:3
Dec 19 00:07:42 izbp16rj3olbfn65dbpsp4z systemd[1]: ghost_lzcdev-xyz.service holdoff time over, scheduling restart.
Dec 19 00:07:42 izbp16rj3olbfn65dbpsp4z systemd[1]: Stopped Ghost systemd service for blog: lzcdev-xyz.
Dec 19 00:07:42 izbp16rj3olbfn65dbpsp4z systemd[1]: Started Ghost systemd service for blog: lzcdev-xyz.
Dec 19 00:07:44 izbp16rj3olbfn65dbpsp4z node[9940]: module.js:549
Dec 19 00:07:44 izbp16rj3olbfn65dbpsp4z node[9940]: throw err;
Dec 19 00:07:44 izbp16rj3olbfn65dbpsp4z node[9940]: ^
Dec 19 00:07:44 izbp16rj3olbfn65dbpsp4z node[9940]: Error: Cannot find module ‘./dialects/mysql/index.js’
Dec 19 00:07:44 izbp16rj3olbfn65dbpsp4z node[9940]: at Function.Module._resolveFilename (module.js:547:15)
Dec 19 00:07:44 izbp16rj3olbfn65dbpsp4z node[9940]: at Function.Module._load (module.js:474:25)
Dec 19 00:07:44 izbp16rj3olbfn65dbpsp4z node[9940]: at Module.require (module.js:596:17)
Dec 19 00:07:44 izbp16rj3olbfn65dbpsp4z node[9940]: at require (internal/module.js:11:18)
Dec 19 00:07:44 izbp16rj3olbfn65dbpsp4z node[9940]: at Knex (/var/www/ghost/versions/2.9.0/node_modules/knex/lib/index.js:55:15)
Dec 19 00:07:44 izbp16rj3olbfn65dbpsp4z node[9940]: at Object. (/var/www/ghost/versions/2.9.0/core/server/data/db/connection.js:33:20)
Dec 19 00:07:44 izbp16rj3olbfn65dbpsp4z node[9940]: at Module._compile (module.js:652:30)
Dec 19 00:07:44 izbp16rj3olbfn65dbpsp4z node[9940]: at Object.Module._extensions…js (module.js:663:10)
Dec 19 00:07:44 izbp16rj3olbfn65dbpsp4z node[9940]: at Module.load (module.js:565:32)
Dec 19 00:07:44 izbp16rj3olbfn65dbpsp4z node[9940]: at tryModuleLoad (module.js:505:12)
Dec 19 00:07:44 izbp16rj3olbfn65dbpsp4z node[9940]: at Function.Module._load (module.js:497:3)
Dec 19 00:07:44 izbp16rj3olbfn65dbpsp4z node[9940]: at Module.require (module.js:596:17)
Dec 19 00:07:44 izbp16rj3olbfn65dbpsp4z node[9940]: at require (internal/module.js:11:18)
Dec 19 00:07:44 izbp16rj3olbfn65dbpsp4z node[9940]: at isDatabaseInitialisationRequired (/var/www/ghost/versions/2.9.0/core/server/index.js:152:16)
Dec 19 00:07:44 izbp16rj3olbfn65dbpsp4z node[9940]: at makeGhost (/var/www/ghost/versions/2.9.0/core/index.js:13:12)

It seems like this is core problem. From the looks of it something in the install didn’t work, I would suggest looking back through any available logs to check. You could also try re-installing in case it was a random npm install failure.

When I execute ghost buster and re-installing.The error was resolved.Maybe it’s a random npm install failure.But a new error happened.

I execute ghost start, it looks like worked.But I still can’t access my website.Here is the log:
pic_hd

I solved it.Thanks

I wasn’t familiar with this kind of error.

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