9 Mar 15:07:48 - [info] Node-RED version: v3.0.2 9 Mar 15:07:48 - [info] Node.js version: v16.19.1 9 Mar 15:07:48 - [info] Linux 5.15.84-v7+ arm LE 9 Mar 15:07:53 - [info] Loading palette nodes 9 Mar 15:07:58 - [info] Dashboard version 3.3.1 started at /ui 9 Mar 15:07:59 - [info] Settings file : /home/canpi/.node-red/settings.js 9 Mar 15:07:59 - [info] Context store : 'default' [module=memory] 9 Mar 15:07:59 - [info] User directory : /home/canpi/.node-red 9 Mar 15:07:59 - [warn] Projects disabled : editorTheme.projects.enabled=false 9 Mar 15:07:59 - [info] Flows file : /home/canpi/.node-red/flows.json 9 Mar 15:07:59 - [warn] --------------------------------------------------------------------- Your flow credentials file is encrypted using a system-generated key. If the system-generated key is lost for any reason, your credentials file will not be recoverable, you will have to delete it and re-enter your credentials. You should set your own key using the 'credentialSecret' option in your settings file. Node-RED will then re-encrypt your credentials file using your chosen key the next time you deploy a change. --------------------------------------------------------------------- 9 Mar 15:07:59 - [warn] Encrypted credentials not found 9 Mar 15:07:59 - [info] Server now running at http://127.0.0.1:1880/ 9 Mar 15:07:59 - [info] Starting flows error ENOENT: no such file or directory, access 9 Mar 15:07:59 - [info] Started flows
The obvious solution is to restore from your last backup, but presumably that is not an option or you would have done it already.
Start node-red in safe mode using node-red --safe
That starts node red but does not start the flows. That will tell you if the flows file is seriously damaged.
You can then edit the flows and it wills start running when you deploy.
9 Mar 15:47:36 - [info] Context store : 'default' [module=memory]
9 Mar 15:47:36 - [info] User directory : /home/canpi/.node-red
9 Mar 15:47:36 - [warn] Projects disabled : editorTheme.projects.enabled=false
9 Mar 15:47:36 - [info] Flows file : /home/canpi/.node-red/flows.json
9 Mar 15:47:37 - [warn]
---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------
9 Mar 15:47:37 - [warn] Encrypted credentials not found
9 Mar 15:47:37 - [info] Server now running at http://127.0.0.1:1880/
9 Mar 15:47:37 - [info] Starting flows
error ENOENT: no such file or directory, access
9 Mar 15:47:37 - [info] Started flows
Stopping Node-RED graphical event wiring tool...
9 Mar 17:02:34 - [info] Stopping flows
9 Mar 17:02:34 - [info] Stopped flows
nodered.service: Succeeded.
Stopped Node-RED graphical event wiring tool.
nodered.service: Consumed 5min 55.228s CPU time.
This is very strange because the SD card is from SanDisk and I just bought it new and set it up last week.
Can I backup the flows that I have programmed? if yes how ? would reformat the sd card
Okay I just restarted the Pi and then the installation restarted and now it worked. I started node red in save mode and now the interface loads again and works. Big thank you !!!
To backup your flows in case you get into trouble again, backup the contents of the .node-red directory except for node_modules. If you have to restore, then after restoring the folder, go into .node-red and run npm install. That will install any extra nodes you need.