I thought I would free up some space and deleted the /.nodered/projects/Backup_node_RED_files//flows.json, not knowing that it was used to start the flows.
NOW I want to restore the copy of my USB key, but that doesn't work.
What am I doing wrong here?
I thought moving flows.json would free up space. In settings.js I now refer to /media/usbkey/flows.json but after reboot it still points to /home/Maru/.node-red/projects/Backup_node_RED_files/flows.json and apparently this file is empty?
Maru@RPi4:~ $ node-red-start --safe
Start Node-RED
Once Node-RED has started, point a browser at http://192.168.1.54: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.
1 Jul 23:11:33 - [info]
Welcome to Node-RED
===================
1 Jul 23:11:33 - [info] Node-RED version: v3.1.1
1 Jul 23:11:33 - [info] Node.js version: v20.10.0
1 Jul 23:11:33 - [info] Linux 6.1.64-v8+ arm64 LE
1 Jul 23:11:34 - [info] Palette editor disabled : npm command not found
1 Jul 23:11:34 - [info] Loading palette nodes
1 Jul 23:11:39 - [info] Worldmap version 2.42.3
1 Jul 23:11:39 - [info] Dashboard version 3.6.1 started at /ui
1 Jul 23:11:40 - [info] Settings file : /home/Maru/.node-red/settings.js
1 Jul 23:11:40 - [info] Context store : 'default' [module=memory]
1 Jul 23:11:40 - [info] User directory : /home/Maru/.node-red
1 Jul 23:11:40 - [info] Projects directory: /home/Maru/.node-red/projects
1 Jul 23:11:40 - [info] Server now running at http://127.0.0.1:1880/
1 Jul 23:11:40 - [info] Active project : Backup_node_RED_files
1 Jul 23:11:40 - [info] Flows file : /home/Maru/.node-red/projects/Backup_node_RED_files/flows.json
1 Jul 23:11:40 - [warn] **Existing flow file is empty**
1 Jul 23:11:40 - [info] Starting flows
1 Jul 23:11:40 - [info] Started flows
It looks like it's working again, at least I can see all my flows again and data comes in.
Suddenly my backup file flows.json disappeared from my USB key and the file that node-red uses to start was empty..
I first checked with sudo ncdu / what was taking up the space and deleted 25Gb of Influxdb data (Thanks Collin, I read about sudo ncdu / in one of your previous post).
Then I was able to copy flows.json (albeit from a month ago) from my homedir/.node-red/ directory to ~/.node-red/projects/Backup_node_RED_file.