Skip to content
Advertisement

Ghost – Can’t connect to the bootstrap socket (localhost 8000) ECONNREFUSED

I have been trying for a long time to debug my ghost blog as you can see here.

I have made some progress the problem seems to be related to an error on the bootstrap socket of ghost.

My config.production.json in my Digital Ocean server is:

{
  "url": "https://www.mifitnessfacil.com",
  "server": {
    "port": 2369,
    "host": "127.0.0.1"
  },
  "database": {
    "client": "mysql",
    "connection": {
      "host": "localhost",
      "user": "root",
      "password": "foobar",
      "database": "foobar"
    }
  },
  "mail": {
    "transport": "Direct"
  },
  "logging": {
    "transports": [
      "file",
      "stdout"
    ]
  },
  "process": "systemd",
  "paths": {
    "contentPath": "/var/www/ghost/content"
  },
  "bootstrap-socket": {
    "port": 8000,
    "host": "localhost"
  }
}

When running ghost run I get:

[2019-10-03 14:24:00] INFO Ghost is running in production...
[2019-10-03 14:24:00] INFO Your site is now available on https://www.mifitnessfacil.com/
[2019-10-03 14:24:01] INFO Ctrl+C to shut down
[2019-10-03 14:24:01] WARN Can't connect to the bootstrap socket (localhost 8000) ECONNREFUSED
[2019-10-03 14:24:01] WARN Tries: 0
[2019-10-03 14:24:01] WARN Retrying...
[2019-10-03 14:24:01] WARN Can't connect to the bootstrap socket (localhost 8000) ECONNREFUSED
[2019-10-03 14:24:01] WARN Tries: 1
[2019-10-03 14:24:01] WARN Retrying...
[2019-10-03 14:24:01] WARN Can't connect to the bootstrap socket (localhost 8000) ECONNREFUSED
[2019-10-03 14:24:01] WARN Tries: 2
[2019-10-03 14:24:01] WARN Retrying...
[2019-10-03 14:24:01] WARN Can't connect to the bootstrap socket (localhost 8000) ECONNREFUSED
[2019-10-03 14:24:01] INFO Ghost boot 3.299s

Update

  • Its running on Ubuntu 18.04.3 LTS
  • Node version 10.16.3
  • Npm version 6.9.0

Answer

Here: https://stackoverflow.com/a/58274370/4031815

Advertisement

Answer

Update

removing bootstrap-socket from the config.production.json solved that issue yet I still get 502 Bad Gateway nginx/1.14.0 (Ubuntu)when visiting my website.

Update 2 and solution:

https://github.com/TryGhost/Ghost-CLI/issues/1017

Advertisement