-
-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After update to 16.0.1 all flows gone #1736
Comments
Did you also restore a Home Assistant backup? As the flows are stored in the Home Assistant configuration folder prior to v16 |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as off-topic.
This comment was marked as off-topic.
No, because i did not know the flows are not stored in nodered backup. can i just import the flows.json from the homeassistant backup in to the nodered 16.0.1? |
Same here all flow are gone after upgrage to 16.0.1. Restore back to 15.1.1 but addon could not start. |
ℹ️ Please stop raising small useless comments. I will hide them if they don't add to triaging the issue or if they add things that already have been said.removed these instructions New ones below. ../Frenck |
This comment was marked as duplicate.
This comment was marked as duplicate.
Probably a dumb question but where can i find the /addon_configs/ folder? |
FYI did a zfs rollback on the whole VM and tried to update from 15.1.1 > 16.0.1, but still all the flows were gone after the update. Did a second rollback and sticking with 15.1.1 for now. |
My flows back. |
Upgraded from 15.1.1 directly to 16.0.1. Never had 16.0.0 before but All my fkows are also gone |
This doesn't work, restored my VM back to 15.x did an upgrade straight to 16.0.1 and all flows are missing. I imported the flows manually and everything works but when you restart the addon the flows disappear again. This seems like still a bugged release, sticking to 15.x for now |
Can confirm after import it works again. But after restart of NodeRED flows are gone again. Reverting is not an option since that does not work in my case. |
Found the issue that keeps nagging this. Will create a hotfix release. |
This comment was marked as duplicate.
This comment was marked as duplicate.
Hello! I'm sure this is an obvious answer, but I can't find it. How do I clear out the node-red folder in /addon_configs/? I'm using the "File editor" and I can't seem to browse to /addon_configs/ |
Silly question, so the backup of the node-red flows is not within the actual node-red backups folder? As answer to LsVzqz, you'd probably need to attach to the container in console to get to this folder. |
Where to find backup /config/nodered? EDIT: is installing afull backup also restore the /config directory? |
Well that's exactly what I'm trying now, it just takes ages, as it is also restoring my db's. :D |
I have the same issue and restore backup is not working. |
I get it installed, but is not starting up anymore |
I encountered the migration issue, and had no luck reverting to a backup (I forgot to clear out the addon_configs directory it seems). Anyway, I took flows.json from my backups and imported it into Node Red 16.0.1, and all seems well (Apart from missing Node-Red packages that I manually installed) but as soon as Node-Red is restarted all flows are gone again and I have to re-import my flows.json file. |
Wait for the hotfix @frenck is working on. |
Complete backup restore did the trick for me..., I'll wait for the fix before updating again, thats for sure. :) I'm sure that's what @frenck was looking for today. Creating a hotfix for thousands of sweaty node-red users. Hahahaha |
You should have a /config/node-red.backup. You can get hold of the flows.json in that folder and use the method of import mentioned above (worked for me). Do not restart NodeRED until the hotfix is available. |
This is a good reminder for everyone to disable automatic updates. This addon isn't the first nor the last to push an update that breaks everyone's home automation 🙂 It's deeply ingrained in the entire ecosystem's culture to "move fast and break things" at this point, even core homeassistant loves making breaking changes that require manual intervention in one way or another |
UPDATED 11/16/2023 8:39 EST After a series of full restores, and attempted/failed recoveries, I am back to 15.1.1 working/starting correctly with all my flows. I am not sure what the "magic sauce" was, but I am going to let it run a day or two before attempting the 16.X upgrade again. Good luck friends, this was a rough one! Years of flows are once again running here. After full restore of HA & NR to 15.1.1, NR IS running and can be accessed directly via IP (http://192.168.50.200:1880/#flow/8fb13690.c3e5e), but NOT Via HA dashboard. HA reports service will not start, but it is started and running. Please advise. I am unable to move forward or backward. I have exported all my flows and just need to get NR updated and running properly at this point. I am still struggling to recover back to my 15.1 OR upgrade to 16.2 After a failed upgrade from 15.X I have attempted to do full restores and NR still fails to start after full restore back to 15.X. It appears node red is "working" but the NR logs stop and it appears to Hang. Flows are still running, but HA reports NR is not started? After restoring back to 15.X I do not see the new addon folders to execute suggested resolution. I even restored from several days ago (Full) with no joy. Help....... |
I am sorry but this didn't work for me. |
I am really grateful for your help but there is lots in your note I don’t understand I have not been able yet to find a previous version of node Red that worksI have tried partial restoring from my daily backups but all fail to startRemove node red? Does this mean uninstall or delete or what?Will I lose my flows if I delete it?I don’t understand ls or mv or cp or any of these functionsAre you working from terminal?My lack of knowledge here makes me so scared that I will screw it upRegardsMikeOn 16 Nov 2023, at 12:05, borfang ***@***.***> wrote:
If Node-RED fails to start after an update, you can follow my solution. First, restore to a version that works correctly, remove Node-RED 15.1.1, and then follow these steps in the terminal:
Navigate to the home assistant directory:
cd /homeassistant
List the contents to identify directories related to Node-RED:
ls -llh
Identify directories related to Node-RED (e.g., node-red and node_modules).
Rename the Node-RED directories for backup:
mv node-red node-red_bak
mv node_modules node_modules_bak
Reinstall Node-RED version 16.0.2.
After installation, perform basic configuration and check if Node-RED starts correctly.
Once confirmed, stop Node-RED and copy the flows configuration from the backup:
cp /homeassistant/node-red_bak/flows.json /addon_configs/new_node-red_folder/.
Start Node-RED and reinstall any missing nodes.
After confirming everything is working fine, you can remove the backup directories:
rm -rf /homeassistant/node-red_bak
rm -rf /homeassistant/node_modules_bak
This process involves backing up and restoring Node-RED directories, reinstalling the updated version, copying the flows configuration, and ensuring that all necessary nodes are installed.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
can some one make small clip on how to fix it again, i have triede to restore from back up. once i start up NR it do look like a normal start up (reading 205 nodes) once it start up i just show Credential erro. I might just do somthing wrong?? |
I wonder, is there a scenario where the flows.json got wiped by the update process? |
Every time try to use a back up. I select home assistant config and node red 15, however once it has finished restoring back up I open home assistant and still have node red 16.0.2 installed? also have a warning Your flow credentials file is encrypted using a system-generated key. |
Note that the actual name of the node (once added with Palette Manager) can be different from the name it is displayed as in Palette Manager. So if you install a node "stoptimer" from Palette Manager, the node that is added may very well be stoptimer3. After installation of a node, flows will automatically update to use it on the next deployment of your flows. |
I just did this, was I just lucky to get it all back? https://community.home-assistant.io/t/after-update-to-16-0-0-all-flows-and-notes-are-gone/641103/45?u=christian_hollbjar |
Followed Frenck's instructions to the letter. Several times. No joy. |
What I did...
Voila, all back and working in an extremely large and complicated setup! Fingers crossed! |
Think I found out why: Have a look at this issue; looks as this is 'working per design'. After changing the deploy model back to 'Modified Nodes' (did not note it had changed), the errors have gone. |
I wanted to update on my situation having been frustrated for several days trying to solve this and hope it may help some others. |
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. |
is there any update on the problems after the update node-red-contrib-home-assistant-websocket ? trying everything that others have done but with no positive results so far |
Manually installed the node-red-contrib-home-assistant-websocket module to get the flows working, but that’s a temp fix. Hopefully we have a better solution. |
In the same boat here. Got to 16.0.2 without realizing there were any issues. At that point I updated the node-red-contrib-home-assistant-websocket, which resulted in missing nodes and missing node-red-contrib-home-assistant-websocket. |
A few things... Do you have a backup and considered reverting? Secondly, (regarding the websocket) there are a few issues on that:
For me, the lesson learned is to never update the websocket through the palette manager in NodeRed. |
Sorry , when will it fixed .. The solution is very easy .. (i hope so) node-red-contrib-home-assistant-websocket need : Node-RED v3.1.1+ but the addon has only v3.1.0. So what´s up with an update ? Thanks Lars |
Going to close this issue, as it has been open long enough at this point. The latest comments are not related to this specific issue presented here. ../Frenck |
Thanks for updating . |
Did update from 15.x to 16.0 and then to 16.0.1 and all my flows are gone.
tried to restore backup from 15.x and nodered does not start anymore.
EDIT: Read about the solution here: #1736 (comment)
The text was updated successfully, but these errors were encountered: