Node Red for a complete beginner

Just getting started with Node Red. I finally have the OS Buster running on my Beaglebone Black.
It looked like the service did not start. I tried to start the service ```
sudo service node-red start and got message could not find the service. so I went to the directory where the service lives I think /lib/systemd/system and manually started it
the node red service file found was nodered.service not node-red.service I discovered. So far so good. Then I open a browser to the web site. It opened ok but there was just a bar at the top of the page with the node red icon and the node red title. The rest of the page is blank.
what did I miss? Why did Node red not start after booting up ?

Any insight is greatly appreciated

Thanks

LArry

What address did you use http://ip.of.server:1880 ?

Welcome to the forum @ldanna

To get it to start on boot you have to enable the service.
sudo systemctl enable nodered

You need to check the startup log to see if there is anything helpful there. You haven't said how you installed node-red but you may be able to run
node-red-stop
node-red-start
to stop and start it and show the output in the terminal. If you haven't got those commands then stop it using
sudo systemctl stop nodered
and start it in a terminal using just
node-red

On a Beaglebone I think the service autostarts when it detects the browser trying to connect (or is used to... must admit not checked recently). When it does start it does then take 20-30 secs to get really started so you may have to reload the web page at that point.

Yes I used the ip of the server the node red is running on 192.168.1.17:1880 It is on my local network

I ran sudo systemctl enable nodered as suggested . It did in fact run when rebooted. That's fixed Thanks.
Still Blank web page.
Running on a beaglebone black. I used the getting started node red web site Running on BeagleBone Boards : Node-RED to install on my beaglebone

Larry

I re started the browser no change.

Where do I look for the Startup log

LArry

On a pi you can use - node-red-log command, if not then sudo journalctl -u nodered -o cat

HMMM i found the syslog file and found this tidbit that looks suspicious

16:39:16 beaglebone Node-RED[1067]: Your flow credentials file is encrypted using a system-generated key.
Feb 12 16:39:16 beaglebone Node-RED[1067]: If the system-generated key is lost for any reason, your credentials
Feb 12 16:39:16 beaglebone Node-RED[1067]: file will not be recoverable, you will have to delete it and re-enter
Feb 12 16:39:16 beaglebone Node-RED[1067]: your credentials.
Feb 12 16:39:16 beaglebone Node-RED[1067]: You should set your own key using the 'credentialSecret' option in
Feb 12 16:39:16 beaglebone Node-RED[1067]: your settings file. Node-RED will then re-encrypt your credentials
Feb 12 16:39:16 beaglebone Node-RED[1067]: file using your chosen key the next time you deploy a change.

also this entry was there
12 Feb 17:51:40 - [warn] Projects disabled : editorTheme.projects.enabled=false

What does this mean and what do I do
Larry

Those messages are perfectly normal.
The whole of the Node-red startup output is probably worth posting here.

I suggest node-red-stop then node-red-start and show us everything it prints out during the startup process

Does this help??
Note:still blank web page

Feb 12 18:40:01 beaglebone systemd[1]: Stopping Node-RED graphical event wiring tool...
Feb 12 18:40:01 beaglebone Node-RED[1042]: 12 Feb 18:40:01 - [info] Stopping flows
Feb 12 18:40:01 beaglebone Node-RED[1042]: 12 Feb 18:40:01 - [info] Stopped flows
Feb 12 18:40:01 beaglebone systemd[1]: nodered.service: Succeeded.
Feb 12 18:40:01 beaglebone systemd[1]: Stopped Node-RED graphical event wiring tool.
Feb 12 18:40:01 beaglebone systemd[1]: nodered.socket: Succeeded.
Feb 12 18:40:01 beaglebone systemd[1]: Closed Node-RED Socket.
Feb 12 18:40:55 beaglebone systemd[1]: Started Node-RED graphical event wiring tool.
Feb 12 18:41:02 beaglebone Node-RED[1144]: 12 Feb 18:41:02 - [info]
Feb 12 18:41:02 beaglebone Node-RED[1144]: Welcome to Node-RED
Feb 12 18:41:02 beaglebone Node-RED[1144]: ===================
Feb 12 18:41:02 beaglebone Node-RED[1144]: 12 Feb 18:41:02 - [info] Node-RED version: v1.3.5
Feb 12 18:41:02 beaglebone Node-RED[1144]: 12 Feb 18:41:02 - [info] Node.js version: v10.24.1
Feb 12 18:41:02 beaglebone Node-RED[1144]: 12 Feb 18:41:02 - [info] Linux 4.19.94-ti-r42 arm LE
Feb 12 18:41:12 beaglebone Node-RED[1144]: 12 Feb 18:41:12 - [info] Loading palette nodes

On a whim I decided to change browsers . I was using Firefox and It occurred to me that I had some difficulty in the past with java and Firefox ,. So I moved to Edge and VOILA the page loaded correctly. I think . I can now see many items on the page that were absent before.
Now the fun begins

So stand down for the near time. I will endeavor to see if I can start using Node Red now.
Great group thanks a lot

LArry

2 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.