Problems with node red restarting every minute or so

896 views
Skip to first unread message

Phil Grant

unread,
Mar 11, 2016, 1:57:03 AM3/11/16
to Node-RED
Hi,
I'm re-posting this here as I previously, accidentally, posted it in the UI forum first.

I finally got my new raspberry 3 up and running with everything on it in Node-red but I keep getting an "Error: lost connection to server" in the node red page.

This happens when I'm viewing Node-red from my PC and the RPi3 is connected by WiFi or Ethernet and I even get the message when viewing the page as localhost on the RPI touch screen.

I've got the latest Jessie image from RPi site and the latest node red installation (V0.13.3).

Log below, Is it freeboard causing the issue, I tried disabling it in the admin but I still get the issue.

===================
10 Mar 22:03:23 - [info] Node-RED version: v0.13.3
10 Mar 22:03:23 - [info] Node.js  version: v0.10.29
10 Mar 22:03:23 - [info] Linux 4.1.18-v7+ arm LE
10 Mar 22:03:23 - [info] Loading palette nodes
pi
: TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/python -u /usr/lib/node_modules/node-red/nodes/core/hardware/nrgpio.py info
pam_unix
(sudo:session): session opened for user root by (uid=0)
pam_unix
(sudo:session): session closed for user root
10 Mar 22:03:32 - [info] Dashboard up and running
10 Mar 22:03:36 - [info] UI started at /ui
10 Mar 22:03:42 - [warn] ------------------------------------------
10 Mar 22:03:42 - [warn] Failed to register 1 node type
10 Mar 22:03:42 - [warn] Run with -v for details
10 Mar 22:03:42 - [warn] ------------------------------------------
10 Mar 22:03:42 - [info] Settings file  : /home/pi/.node-red/settings.js
10 Mar 22:03:42 - [info] User directory : /home/pi/.node-red
10 Mar 22:03:42 - [info] Flows file : /home/pi/.node-red/flows_raspberrypi.json
10 Mar 22:03:43 - [info] Server now running at http://127.0.0.1:1880/
10 Mar 22:03:43 - [info] Starting flows
pi
: TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/python -u /usr/lib/node_modules/node-red/nodes/core/hardware/nrgpio.py out 11 0
pi
: TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/python -u /usr/lib/node_modules/node-red/nodes/core/hardware/nrgpio.py out 11 0
pam_unix
(sudo:session): session opened for user root by (uid=0)
pam_unix
(sudo:session): session opened for user root by (uid=0)
10 Mar 22:03:44 - [info] Started flows
10 Mar 22:03:44 - [info] serial port /dev/ttyUSB0 opened at 57600 baud 8N1
10 Mar 22:03:44 - [info] [mqtt-broker:4925e524.b6da1c] Connected to broker: mqtt://m20.cloudmqtt.com:10388
10 Mar 22:03:45 - [warn] [pushbullet-config:Phil Grant] Unable to get history.
10 Mar 22:03:49 - [warn] [pushbullet-config:Phil Grant] Unable to get history.
10 Mar 22:04:31 - [red] Uncaught Exception:
10 Mar 22:04:31 - TypeError: Object function (entry) {
return this.indexOf(entry) !== -1;
} has no method 'end'
at interval
(/home/pi/.node-red/node_modules/node-red-contrib-freeboard/freeboard.js:71:12)
at wrapper
[as _onTimeout] (timers.js:258:14)
at
Timer.listOnTimeout [as ontimeout] (timers.js:110:15)
nodered
.service: main process exited, code=exited, status=1/FAILURE
pam_unix
(sudo:session): session closed for user root
pam_unix
(sudo:session): session closed for user root
Unit nodered.service entered failed state.
nodered
.service holdoff time over, scheduling restart.
Stopping Node-RED graphical event wiring tool....
Starting Node-RED graphical event wiring tool....
Started Node-RED graphical event wiring tool..
Welcome to Node-RED
===================


Nicholas O'Leary

unread,
Mar 11, 2016, 4:00:29 AM3/11/16
to Node-RED Mailing List
Hi Phil,

that does indeed look like a bug in the freeboard node - suggest you raise it on the repository: https://github.com/urbiworx/node-red-contrib-freeboard

When you say you "tried disabling it in admin" - what exactly do you mean?

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+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
For more options, visit https://groups.google.com/d/optout.

Phil Grant

unread,
Mar 11, 2016, 4:13:53 AM3/11/16
to node...@googlegroups.com
Nick,
Thanks, I'll follow up that on Github.

The admin is a new tab that has appeared next to the debug tab that allow nodes to be installed, enabled and disabled.

I'll see if the un-install function works.

Cheers,
Phil

You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/uUYXYpxjfC4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.

To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
For more options, visit https://groups.google.com/d/optout.

Phil Grant

unread,
Mar 11, 2016, 12:44:33 PM3/11/16
to Node-RED
Nick,
Removed the freeboard node using the admin tab and the error has gone.

Cheers,
Phil
Reply all
Reply to author
Forward
0 new messages