Node-red can't run server.

911 views
Skip to first unread message

Pavlos Charalambides

unread,
Oct 14, 2016, 7:32:26 AM10/14/16
to Node-RED
Hi I have only started using node-red yesterday. I am not sure why but I cannot run the server without getting a "Connection Refused" error. I am still in very early stages so I believe it has something to do with the way I've installed it, even though it's pretty straight forward. This is the exception I am getting.

pavloss-mbp:~ PavlosCh$ 

pavloss-mbp:~ PavlosCh$ node-red



Welcome to Node-RED

===================


14 Oct 12:31:52 - [info] Node-RED version: v0.15.1

14 Oct 12:31:52 - [info] Node.js  version: v4.6.0

14 Oct 12:31:52 - [info] Darwin 15.6.0 x64 LE

14 Oct 12:31:52 - [info] Loading palette nodes

14 Oct 12:31:53 - [warn] ------------------------------------------------------

14 Oct 12:31:53 - [warn] [rpi-gpio] Info : Ignoring Raspberry Pi specific node

14 Oct 12:31:53 - [warn] ------------------------------------------------------

14 Oct 12:31:53 - [info] Settings file  : /Users/PavlosCh/.node-red/settings.js

14 Oct 12:31:53 - [info] User directory : /Users/PavlosCh/.node-red

14 Oct 12:31:53 - [info] Flows file     : /Users/PavlosCh/.node-red/flows_pavloss-mbp.json

14 Oct 12:31:53 - [info] Server now running at http://127.0.0.1:1880/

14 Oct 12:31:53 - [info] Starting flows

14 Oct 12:31:53 - [info] Started flows

14 Oct 12:31:53 - [red] Uncaught Exception:

14 Oct 12:31:53 - Error: Connection refused: Not authorized

    at MqttClient._handleConnack (/Users/PavlosCh/.node-red/node_modules/node-red-contrib-ttn/node_modules/ttn/node_modules/mqtt/lib/client.js:735:9)

    at MqttClient._handlePacket (/Users/PavlosCh/.node-red/node_modules/node-red-contrib-ttn/node_modules/ttn/node_modules/mqtt/lib/client.js:296:12)

    at process (/Users/PavlosCh/.node-red/node_modules/node-red-contrib-ttn/node_modules/ttn/node_modules/mqtt/lib/client.js:238:12)

    at Writable.writable._write (/Users/PavlosCh/.node-red/node_modules/node-red-contrib-ttn/node_modules/ttn/node_modules/mqtt/lib/client.js:248:5)

    at doWrite (/Users/PavlosCh/.node-red/node_modules/node-red-contrib-ttn/node_modules/ttn/node_modules/mqtt/node_modules/readable-stream/lib/_stream_writable.js:237:10)

    at writeOrBuffer (/Users/PavlosCh/.node-red/node_modules/node-red-contrib-ttn/node_modules/ttn/node_modules/mqtt/node_modules/readable-stream/lib/_stream_writable.js:227:5)

    at Writable.write (/Users/PavlosCh/.node-red/node_modules/node-red-contrib-ttn/node_modules/ttn/node_modules/mqtt/node_modules/readable-stream/lib/_stream_writable.js:194:11)

    at Socket.ondata (_stream_readable.js:542:20)

    at emitOne (events.js:77:13)

    at Socket.emit (events.js:169:7)

pavloss-mbp:~ PavlosCh$ 

Nicholas O'Leary

unread,
Oct 14, 2016, 8:02:03 AM10/14/16
to Node-RED Mailing List
Have Pavlos,

that appears to be a bug with the node-red-contrib-ttn node - it has failed to connect to whatever it is configured to connect to and the node is not handling the resulting error properly.

You may want to raise this against the node here: https://github.com/TheThingsNetwork/nodered-app-lib

Nick

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/d010625d-df4a-406f-9f13-a434c59e0846%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dave C-J

unread,
Oct 14, 2016, 8:35:45 AM10/14/16
to node...@googlegroups.com
and in the meantime you may need to manually remove/delete the /Users/PavlosCh/.node-red/node_modules/node-red-contrib-ttn/  directory and then restart Node-RED. At least that way you will be able to continue... (albeit without the TTN being available)

Pavlos Charalambides

unread,
Oct 14, 2016, 10:29:41 AM10/14/16
to Node-RED
Hi thank you, there was an issue with my node-red-contr-ttn directory. Thank you for your help it works fine now.

Pavlos Charalambides

unread,
Oct 14, 2016, 10:30:15 AM10/14/16
to Node-RED
Hi thanks for your reply and directing me to the github site.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages