Upgrading to 2.0 Error - Can't connect to the bootstrap socket (localhost 8000) ECONNREFUSED


#42

I’d never leave, I was a Kickstarter-backer for Ghost. I believe in what you’re building!

Although I got it installed and running, and Nginx config shows it capturing web traffic, Ghost is not showing. I think I can get my new environment running, but still want to help resolve issues in my production setup. (It runs Ghost, but a number of other tools I user and would rather not port.)


#43

@billedawson Thanks. Your installation works already as far as i understood :slight_smile: So expected that this would work for you.

I am interested what the output for @cedric is!


#44

@Kate these results came from my installation that won’t start.

I’ll keep playing with the newer droplet, it’s my lifeboat! :slight_smile:


#45

Oh that is interesting.

What happens if you execute

node server.js --host localhost --port 8000
node client.js --host localhost --port 8000


#46

twosents@bedawson-Ghost:~$ node server.js --host localhost --port 8000
module.js:540
throw err;
^

Error: Cannot find module ‘/home/twosentences/server.js’
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Function.Module.runMain (module.js:684:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3

twosents@bedawson-Ghost:~$ node client.js --host localhost --port 8000
module.js:540
throw err;
^

Error: Cannot find module ‘/home/twosentences/client.js’
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Function.Module.runMain (module.js:684:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3


#47

Have you removed the scripts?


#48

D’oh! I was in the wrong directory – don’t debug distracted! :rofl:

How about these results instead?

bedawson-Ghost:/tmp/test-socket$ node server.js --host localhost --port 8000
Start server localhost 8000
Received message from Client
Closed server

bedawson-Ghost:/tmp/test-socket$ node client.js --host localhost --port 8000
Bootstrap client was closed.


#49

@Kate

So I got the following results (Attempt 1):

server.js returns:

Start server localhost 8989
Received message from Client
Closed server

client.js returns:

Bootstrap client was closed.

(Attempt 2)

server.js:

Start server 127.0.0.1 8787
Received message from Client
Closed server

client.js:

Bootstrap client was closed.

(Attempt 3)

server.js:

Start server localhost 8000
Received message from Client
Closed server

client.js:

Bootstrap client was closed.

I’m starting to think on the idea of backing-up my ghost blog and install afresh.


#50

So I went ahead in backing-up my ghost blog and then reinstalled everything.
I am using the same database and moved the content directory from the old installation to the new one.

Everything is working like a charm! Thanks for your time and support @Kate

Let me know if I can help you further in solving this issue.


#51

@Kate I followed @cedric’s lead and after backing-up everything, uninstalled and started from scratch with the latest ghost-cli.

Worked like a charm, I’m up and running; thanks for the help!


#52

Glad to hear it’s working now! :ghost:

Sad we weren’t able to figure out the reason for your behaviour.
I guess it’s a weird underlying issue with how Ghost was setup. From what i have seen, the blog wasn’t restarted on ghost restart, which would explain the timeout.