Node red keeps restarting

187 views
Skip to first unread message

Twan Verkerk

unread,
Dec 25, 2017, 7:52:08 AM12/25/17
to Node-RED
Node red keeps restarting and i'm unable to fix it. Already removed and installed xpath.js Need some help!


Welcome to Node-RED
===================
25 Dec 13:45:48 - [info] Node-RED version: v0.17.5
25 Dec 13:45:48 - [info] Node.js  version: v6.12.2
25 Dec 13:45:48 - [info] Linux 4.9.59-v7+ arm LE
25 Dec 13:45:49 - [info] Loading palette nodes
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
25 Dec 13:45:54 - [info] Dashboard version 2.7.0 started at /ui
25 Dec 13:45:56 - [info] Settings file  : /home/pi/.node-red/settings.js
25 Dec 13:45:56 - [info] User directory : /home/pi/.node-red
25 Dec 13:45:56 - [info] Flows file     : /home/pi/.node-red/flows_raspberrypi.json
25 Dec 13:45:56 - [info] Server now running at http://127.0.0.1:1880/
25 Dec 13:45:56 - [info] Starting flows
25 Dec 13:45:57 - [info] Started flows
[xmldom error] invalid document source
@#[line:0,col:undefined]
25 Dec 13:45:57 - [red] Uncaught Exception:
25 Dec 13:45:57 - TypeError: Cannot read property 'nodeType' of undefined
    at PathExpr.evaluate (/home/pi/.node-red/node_modules/xpath/xpath.js:1716:16)
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.
nodered.service: Service hold-off time over, scheduling restart.
Stopped Node-RED graphical event wiring tool..
Started Node-RED graphical event wiring tool..
25 Dec 13:46:00 - [info]
Welcome to Node-RED
===================
25 Dec 13:46:00 - [info] Node-RED version: v0.17.5
25 Dec 13:46:00 - [info] Node.js  version: v6.12.2
25 Dec 13:46:00 - [info] Linux 4.9.59-v7+ arm LE
25 Dec 13:46:01 - [info] Loading palette nodes

Colin Law

unread,
Dec 25, 2017, 1:48:13 PM12/25/17
to node...@googlegroups.com
I don't know why the error is occurring, but if you rename the flows
file in .node-red then it will make a new emtpy one when node red
starts, so at least getting you going again (probably).

Colin
> --
> 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.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/node-red/1f6d7794-b0a7-4617-b4ab-94ff85eb3ace%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Dave C-J

unread,
Dec 25, 2017, 5:55:06 PM12/25/17
to node...@googlegroups.com
Is some added node using that xpath module ?
Reply all
Reply to author
Forward
0 new messages