i@pi3:~ $ node-red-log
[sudo] password for pi:
===================
2 Apr 16:54:37 - [info] Node-RED version: v3.0.2
2 Apr 16:54:37 - [info] Node.js version: v16.19.1
2 Apr 16:54:37 - [info] Linux 6.1.19-v8+ arm64 LE
2 Apr 16:54:42 - [info] Loading palette nodes
2 Apr 16:54:47 - [info] Settings file : /home/pi/.node-red/settings.js
2 Apr 16:54:47 - [info] Context store : 'default' [module=memory]
2 Apr 16:54:47 - [info] User directory : /home/pi/.node-red
2 Apr 16:54:47 - [warn] Projects disabled : editorTheme.projects.enabled=false
2 Apr 16:54:47 - [info] Flows file : /home/pi/.node-red/flows.json
2 Apr 16:54:47 - [info] Creating new flow file
2 Apr 16:54:47 - [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.
---------------------------------------------------------------------
2 Apr 16:54:47 - [warn] Encrypted credentials not found
2 Apr 16:54:47 - [info] Starting flows
2 Apr 16:54:47 - [info] Started flows
2 Apr 16:54:47 - [info] Server now running at http://127.0.0.1:1880/
For sure, I might have started nodered in different ways
If it can't find it (it will take a while because you are searching from the root of the fs), try again with sudo file ... in case you were previously running with different permissions.
Even on my i5 cpu server, that search takes minutes. On a Pi it will take much longer.
Here below are the return I had to the command you asked
pi@pi3:/ $ sudo find . -name flows.json
pi@pi3:/ $ ls -al /home/pi/.node-red
total 72
drwxr-xr-x 4 pi pi 4096 Apr 2 13:08 .
drwxr-xr-x 5 pi pi 4096 Apr 3 19:45 ..
-rw-r--r-- 1 pi pi 14741 Apr 1 22:59 .config.nodes.json
-rw-r--r-- 1 pi pi 95 Apr 1 22:59 .config.runtime.json
-rw-r--r-- 1 pi pi 541 Apr 2 13:08 .config.users.json
-rw-r--r-- 1 pi pi 468 Apr 2 13:08 .config.users.json.backup
drwxr-xr-x 3 pi pi 4096 Apr 1 22:59 lib
drwxr-xr-x 2 pi pi 4096 Apr 1 22:59 node_modules
-rw-r--r-- 1 pi pi 120 Apr 1 22:59 package.json
-rw-r--r-- 1 pi pi 22614 Apr 1 22:59 settings.js
pi@pi3:/ $ ls -l /home
total 4
drwxr-xr-x 5 pi pi 4096 Apr 3 19:45 pi
pi@pi3:/ $
p i@pi3:~/.node-red $ ls -al
total 84
drwxr-xr-x 4 pi pi 4096 Apr 3 21:36 .
drwxr-xr-x 5 pi pi 4096 Apr 3 19:45 ..
-rw-r--r-- 1 pi pi 14741 Apr 1 22:59 .config.nodes.json
-rw-r--r-- 1 pi pi 95 Apr 1 22:59 .config.runtime.json
-rw-r--r-- 1 pi pi 541 Apr 2 13:08 .config.users.json
-rw-r--r-- 1 pi pi 468 Apr 2 13:08 .config.users.json.backup
-rw-r--r-- 1 pi pi 2727 Apr 3 21:36 .flows.json.backup
-rw-r--r-- 1 pi pi 2730 Apr 3 21:36 flows.json
-rw-r--r-- 1 pi pi 79 Apr 3 21:29 flows_cred.json
drwxr-xr-x 3 pi pi 4096 Apr 1 22:59 lib
drwxr-xr-x 2 pi pi 4096 Apr 1 22:59 node_modules
-rw-r--r-- 1 pi pi 120 Apr 1 22:59 package.json
-rw-r--r-- 1 pi pi 22614 Apr 1 22:59 settings.js
I don't know exactly when it did happen.
I was struggling making mosquitto working. I made so many manipulations, I don't remember..
Then, I came back to nodered to try my nodes with mosquitto and when I opened my browser at myIP:1880, there was a blank page ! Only 1 blank flow !
As an experiment, add a node to the flow, deploy it, then power the pi down (remove power completely) for a minute or so, then power it up again and see if the flow is still there.
Further to @jbudd's post, does the command which docker
show anything?
There is no other flows.json on the machine.
You don't seem to be trapped inside a Docker container.
Your disk/sd card has not failed and become read-only, nor do you currently have the overlay filesystem enabled.
The only thing I can think of to explain it is that the overlay filesystem was enabled when you installed NR, in which case all trace would disappear when you rebooted.
What date did you install Node-red?
What does ls -l /var/log/nodered-install* show?
There should be a non-zero size file for each [recent] time you installed Node-red (except if the overlay filesystem was enabled).