netifi / proteus-quickstart-js

A JavaScript implementation of the Proteus Quickstart Exercise
1 stars 0 forks source link

"yarn server" fails with ECONNREFUSED #5

Closed DavidMGross closed 5 years ago

DavidMGross commented 5 years ago

Tested on Ubuntu/16 and MacOS/Mojave. Each fails with the following error when following the instructions at https://www.netifi.com/getstarted-js:

$ yarn server
yarn run v1.9.4
$ node src/server/server.js
Args: ["/usr/local/bin/node","/Users/davgross/Netifi/proteus-quickstart-js/src/server/server.js"]
Arg I'm looking for: undefined
I'm a client: false
Connecting gateway with group quickstart.servers and destination Hotel-Seven-Three-Six
An error has occurred while connecting:
{ Error: connect ECONNREFUSED 127.0.0.1:8101
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '127.0.0.1',
  port: 8101 }
hypothete commented 5 years ago

Thanks for catching this as well - I just updated the guide with the correct command to start the server:

docker run \
-p 8001:8001 \
-p 7001:7001 \
-p 9000:9000 \
-p 8101:8101 \
-e BROKER_SERVER_OPTS="'-Dnetifi.authentication.0.accessKey=9007199254740991'  \
'-Dnetifi.broker.console.enabled=true' \
'-Dnetifi.broker.ssl.disabled=true' \
'-Dnetifi.authentication.0.accessToken=kTBDVtfRBO4tHOnZzSyY5ym2kfY=' \
'-Dnetifi.broker.admin.accessKey=9007199254740991' \
'-Dnetifi.broker.admin.accessToken=kTBDVtfRBO4tHOnZzSyY5ym2kfY='" \
netifi/proteus:1.5.3