Flows Disappeared


Hi all, I really hope someone can assist me

The most unthinkable has happened just now, just as I completed and test my flows, after 2 days of no sleep and delighted to be finished, unfortunately, all my flows have just disappeared!! GONE! 10 min ago!!

I added a button via GPIO pin as the last peach of the puzzle and between / pull up / and pull done the switch floated and crashed node-red. I have restored the PI zero and on the restart of node-red, it was completely blank, everything and all my work are gone, I want to cry, to be honest !!

Please tell me my flows can be recovered somehow, PLEASE PLEASE. someone / anyone help

Starting as a systemd service.
12 Jul 07:58:37 - [info]
Welcome to Node-RED
12 Jul 07:58:37 - [info] Node-RED version: v1.0.6
12 Jul 07:58:37 - [info] Node.js  version: v10.19.0
12 Jul 07:58:37 - [info] Linux 4.19.118+ arm LE
12 Jul 07:58:55 - [info] Loading palette nodes
12 Jul 07:59:39 - [info] Dashboard version 2.22.1 started at /psanode
12 Jul 07:59:41 - [info] Settings file  : /home/pi/.node-red/settings.js
12 Jul 07:59:41 - [info] Context store  : 'default' [module=memory]
12 Jul 07:59:41 - [info] User directory : /home/pi/.node-red
12 Jul 07:59:41 - [warn] Projects disabled : editorTheme.projects.enabled=false
12 Jul 07:59:41 - [info] Flows file     : /home/pi/.node-red/flows_psanode.json
12 Jul 07:59:42 - [warn]

could it be because of this?

HI Have checked the ./node red / ( All files with in )

and could not find my flows ? where could it gone ?

Peter show us a directory listing of /home/pi/.node-red

HI Steve ,,

i hope this is what you requested , and hope you can help ( again ) ( By the way , i got the whole think to work atlas ....just be fore it disappeared


Oh dear. It looks like it's all gone.

You might have caused file corruption or your SD card is bad.

This is a horrible lesson in backing up I'm afraid.

You still have much of the stuff we discussed in forum posts etc to build from and as it's only just occurred, things should be fresh in your memory so a rebuild wind have the same level of pain.

Hopefully someone else knows of a trick or means of recovering lost files but don't hold your breath.


Edit. I'm blind. Sorry. It looks like your flow file is present.

Is it empty?

Try opening the .JSON files in a text editor. Do you see your recent work? (Search for a word you recently typed)

Edit 2 - on the off chance you had started node-red with a command line, search your full computer filesystem for *.json

Just to eliminate that your sd card has gone read-only - could you copy settings.js to test.txt

cp settings.js test.txt

then reboot and see if its still there in the folder afterwards

@#$%^&, thats not good ,

i wonder how this is possible, band new SD card and Pi Zero W.

i do have a backup , but that was of 5 days ago and i have done a lot since then , hours and hours of work. its no officially 32 hours i have last slept or even left the pc due to the deadline tomorrow ,


let me do that quick...

Run ls -la in the .node-red directory and look for the .backup files.

1 Like

Oh good one.

Ps @Peter do not deploy anything on node-red or any possibility of recovering a backup will be lost.


Did you open the .json files in a text editor - see if your recent work is present?

let me do that also quick

1 Like

yes , unfortunately the flows_psanode.jason is empty

..and the result is?

HI Nick ,

here is the Ls -la response ..


@cymplecy HI Simon, i have restarted yet, I wanted to get the ls -la for Nick

must I continue to reboot?

Hang fire on the reboot

Copy them JSON files somewhere else first (a different computer or usb stick)

You might be in luck

Nick, I think this was about 30 min before the crash ...

drwxr-xr-x 25 pi pi 4096 Jul 12 07:08

This was the GPIO number i selected , could this be a backup just before the crash or is this only a loged event ?

The flows_psanode.json file is not empty.

Have you looked inside? Does it contain flow JSON?

Create a copy of all the .JSON files including the .backup files.