No idea what I've done however when I use node-red-start I get the response below. Neither the editor nor dashboard are available. Also, node-red --safe seems to do nothing, I just get my CLI prompt back.
Start Node-RED
Once Node-RED has started, point a browser at http://192.168.2.155:1880
On Pi Node-RED works better with the Firefox or Chrome browser
Use node-red-stop to stop Node-RED
Use node-red-start to start Node-RED again
Use node-red-log to view the recent log output
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
Use sudo systemctl disable nodered.service to disable autostart on boot
To find more nodes and example flows - go to http://flows.nodered.org
Starting as a systemd service.
nodered.service: Succeeded.
It will stay this way with nothing working.
I did run the current NR install / update script, results were the same.
Thanks Colin, good idea, however it has started to work properly again and I'm not sure why. As I think back on what I was doing, I did change the location of contextStorage prior to this problem. Can you advise please, should my file location (directory) be:
I suspect I know why. If you run node-red-start while it is running then that is what happens. I always run node-red-stop first. You can do this with node-red-stop;node-red-start
and since that is usually the only command that I use ; in I can just do Ctrl+R, hit ; and it pops up the command, ready for me to hit Enter.
When you install node-red on Linux - at least Debian based Linux, the installation process includes setting up and enabling a systemd service. Which means that when you reboot, NR starts automatically.
So it puzzles me that the guidance suggests node-red-start rather than sudo systemctl restart nodered for first and subsequent startups.
Everything is running fine BUT no, the context variables were not loaded from filesystem. I can tell because of the issues that are appearing. Easy enough to fix up but I want to make sure NR is using the right context directory. That's the one that gets backed up nightly.
node-red-start does some checks that node-red is installed ok, runs systemctl start, displays some helpful stuff, and shows the startup log, which is useful to make sure there aren't any startup issues.
Yes it is sometimes helpful to see the log output, especially when it's freshly installed.
A matter of choice I guess but it seems less than helpful for the recommended startup method not to return to the dollar prompt, where one could otherwise choose to run systemctl status nodered or tail -f /var/log/node-red.log or node-red-log
I suppose I'm just uncomfortable if the dollar prompt isn't there. One reason I don't generally use the GUI
Hmm. Not seeing a file time change every 30 secs like I should and I've tried setting the DIR to both options (with and without the ending forward slash). Even looked with file manager to see where else it might be writing context variables to with no luck so far.
Thanks Nick You''ll need to update the on-line docs I think as I believe they indicate the default DIR path is "~/.node-red".
EDIT: What I mean is to maybe expand on how to enter a proper location. I understand now what that is meant to portray however it did confuse me as I went to change it.