Can't connect to the bootstrap socket (localhost 8000) ECONNREFUSED


#1

The following happens when I try to setup Ghost on a machine, ghost install. Ghost cannot be connected via the browser and seems to have a fatal error. Please advise. Thank you.

  • What version of Ghost are you using?
    • v2.2.4
  • What configuration?
    • Ubuntu 18.04.1 (GNU/Linux 4.15.0-36-generic x86_64)
    • 3GB RAM

config.production.json is as follows:

{
  "url": "(removed)",
  "server": {
    "port": 2368,
    "host": "127.0.0.1"
  },
  "database": {
    "client": "mysql",
    "connection": {
      "host": "192.168.1.100",
      "user": "craftedrepublic.ghost",
      "password": "(removed)",
      "database": "ghost_craftedrepublic"
    }
  },
  "mail": {
    "transport": "Direct"
  },
  "logging": {
    "transports": [
      "file",
      "stdout"
    ]
  },
  "process": "systemd",
  "paths": {
    "contentPath": "/var/ghost/craftedrepublic/content"
  },
  "bootstrap-socket": {
    "port": 8000,
    "host": "localhost"
  }
}
  • What errors or information do you see in the console?
[2018-10-19 12:44:05] WARN Theme's file locales/en.json not found. 
[2018-10-19 12:44:05] INFO Ghost is running in production... 
[2018-10-19 12:44:05] INFO Your blog is now available on (removed)
[2018-10-19 12:44:05] INFO Ctrl+C to shut down 
[2018-10-19 12:44:05] WARN Can't connect to the bootstrap socket (localhost 8000) ECONNREFUSED 
[2018-10-19 12:44:05] WARN Tries: 0 
[2018-10-19 12:44:05] WARN Retrying... 
[2018-10-19 12:44:05] WARN Can't connect to the bootstrap socket (localhost 8000) ECONNREFUSED 
[2018-10-19 12:44:05] WARN Tries: 1 
[2018-10-19 12:44:05] WARN Retrying... 
[2018-10-19 12:44:06] WARN Can't connect to the bootstrap socket (localhost 8000) ECONNREFUSED 
[2018-10-19 12:44:06] WARN Tries: 2 
[2018-10-19 12:44:06] WARN Retrying... 
[2018-10-19 12:44:06] WARN Can't connect to the bootstrap socket (localhost 8000) ECONNREFUSED 
[2018-10-19 12:44:06] INFO Ghost boot 1.75s

#2

Nevermind, I have solved it by changing the ip address ghost will bind to.


#3

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