Node Red Dont work anymore pls Help

My Note Red Web interface dont work.

canpi@canpi:~ $ node-red-log

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

Well that is a new one, I have never seen that before. What does this command show?
ls -al /home/canpi/.node-red

Also what happens when you try to show the editor.

canpi@canpi:~ $ ls -al /home/canpi/.node-red
total 520
drwxr-xr-x 4 canpi canpi 4096 Mar 9 13:31 .
drwxr-xr-x 6 canpi canpi 4096 Mar 8 14:07 ..
-rw-r--r-- 1 canpi canpi 32488 Mar 8 14:22 .config.nodes.json
-rw-r--r-- 1 canpi canpi 31865 Mar 8 14:22 .config.nodes.json.backup
-rw-r--r-- 1 canpi canpi 95 Mar 1 15:44 .config.runtime.json
-rw-r--r-- 1 canpi canpi 544 Mar 1 17:39 .config.users.json
-rw-r--r-- 1 canpi canpi 543 Mar 1 17:39 .config.users.json.backup
-rw-r--r-- 1 canpi canpi 64786 Mar 9 13:23 flows.json
-rw-r--r-- 1 canpi canpi 64786 Mar 9 13:31 .flows.json.backup
drwxr-xr-x 3 canpi canpi 4096 Mar 1 15:43 lib
drwxr-xr-x 290 canpi canpi 12288 Mar 8 14:22 node_modules
-rw-r--r-- 1 canpi canpi 654 Mar 8 14:22 package.json
-rw-r--r-- 1 canpi canpi 266761 Mar 9 14:59 package-lock.json
-rw-r--r-- 1 canpi canpi 22614 Mar 1 15:43 settings.js

If I want to display nodered in the browser, it loads the whole time without changing

I don't know what you mean by that.

Oh, you mean it just says loading.

What did you do at the time it stopped working? Did you install a new node type for example?

I added a change note and then pressed deploy and then the network got disrupted and now the nodered interface doesn't work anymore

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.

1 Like

In the meantime I tried to reinstall Node Red and now I get this error "Install Note-RED Core" dont reinstall


When posting such output please copy/paste the text rather than screenshot. So we can copy bits out of it if necessary.

Post the log that it tells you about. When posting use the </> button at the top of the forum entry window to stop it messing with the format.

Edit: Before doing that run
sudo apt update && sudo apt full-upgrade
to make sure your system is up to date. Check that does not show any errors.

OK, I understand. I updated and upgraded and did the installation again. still have the same problem

Post the log then.

nodered-install.log (12.7 KB)

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.

I suspect the SD card is damaged. Start again with a new card. Always use good quality cards from a reputable supplier.

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.

1 Like

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