Node Red Fails to Start

1,921 views
Skip to first unread message

Paul F Prinsloo

unread,
Apr 6, 2017, 1:47:34 PM4/6/17
to Node-RED
Hello guys 

I suspect that I have messed up , agian. 
My R-pi changed its Ip address and as a result I had to re-login to node red.  It didnt want to accept the default password that I used and I went and changed the password in the settings.js file hoping that it wil resolve the issue. 

Now node red doesn't start up at all I get the following error and I do a node-red-start

Started Node-RED graphical event wiring tool..
Error loading settings file: /home/pi/.node-red/settings.js
[ReferenceError: settings is not defined]

What I have tried :

Upgraded node red as per this site (https://nodered.org/docs/hardware/raspberry) All seemed ok apart from this error ( npm ERR! code 1RED core)

Still with no luck.

Is there a way to reinstall node red or remove and fresh install ? I have tried google with node red uninstall and the one place recomended this (https://hungred.com/how-to/completely-removing-nodejs-npm/) will this work?

Best Regards

Paul


Nick O'Leary

unread,
Apr 6, 2017, 3:04:33 PM4/6/17
to Node-RED

That suggests a syntax error in your setting file. Double check any changes you've made for missing commas and things like that. Are you using the variable 'settings' in there at all (as hinted by the error message)?

If you can't track it down, no need to reinstall. Backup you current settings file then delete it. Run Node-RED - it should copy a default settings file back in place. You can then progressively add back your particular settings.


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/5a5cdf59-02aa-437c-bce1-ab8ce0674ac6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paul F Prinsloo

unread,
Apr 6, 2017, 3:12:33 PM4/6/17
to node...@googlegroups.com
Hello Nick

Thank you will do , and rely back.

Paul

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/kemnU_GdSO4/unsubscribe.
To unsubscribe from this group and all its topics, 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.

Paul F Prinsloo

unread,
Apr 6, 2017, 3:37:52 PM4/6/17
to Node-RED
Ok - good news is I got the node red going again!  I used this "tutorial" to remove the settings 
Up until the part before install - started node red and all was well with the world agian! I still would need to get the username password going again but atleast the rest is running again after I uploaded all the flows and nodes got installed. 
Next time I will be much more careful en going into the settings page!

Thanks for the help

Paul

Julian Knight

unread,
Apr 7, 2017, 5:57:46 AM4/7/17
to Node-RED
You might want to improve your JavaScript editing workflow a bit. Most of us probably use a code editor that does "linting" to help avoid common code errors.
Reply all
Reply to author
Forward
0 new messages