Node red is dead!

Hi guys,

I’m extremely frustrated and upset.
After updating node red to v 22.00 only a single flow was working.
After trying to fix, I asked an AI how to fix it, tried everything, nothing worked.
The nodes which are missing after this update, are none of the nodes needed for several tasks, but even theese flows don‘t work, not even a direct connection of a newly added inject or timestamp node with a debug node shows any output (all enabled)
Then I desided to uninstall and reinstall the whole app (not deleting the data. A fter doing this, node red did’n even start up anymore.
It worked for years !
What the hell is wrong with it ?

Please help
jbI

I assume you've tried different web browsers.
I guess if it were me I'd restore from backup , export my flows, delete node red, update, reinstall node red, and import the flows.
Not fun but in the absence of any other ideas it may be the quickest way to get going.
Importing into the new nodered should give you warnings if anything is incompatable.

Assuming you do let HA backup an app before upgrading, the answer is the revert to the previous version by restoring the backup and stay there.
Personally, I only ever upgrade systems if a newer version gives me something I need or it resolves a problem I am experiencing.

The Node-RED App update to v22 has breaking changes. This means that updating may/will [delete as experienced] break Node-RED.

The most likely cause is that the node-red-dashboard (original dashboard) nodes are no longer bundled in to the App package. The NR dashboard configuration nodes are often created automatically, so these will exist for (almost) everyone, even if you have never created an NR Dashboard. This gives rise to "missing nodes" error, as there are unwanted/left-over configuration nodes that are no longer defined [not in the palette of nodes].

Do you have Node-RED dashboard(s)? [Very few will have active Node-RED dashboard, and these are quite separate to the NR Editor]

  • No: go into the debug window > configuration nodes tab. Look for a ui_base, and any ui_tab, ui_group and delete them [they should have a '0' to show that no nodes are using them]
  • Yes: you will have to add back the original Dashboard nodes [use the palette] and then later change all your dashboards to use the FlowFuse dashboard [load these nodes @FlowFuse/dashboard from the palette and then update your dashboard {a lot of work}]

The node-red-node-twitter nodes have also been removed... If you have flows with this node, then yes they will stop working and you have to either change the flow to use something else, or add back the missing nodes (for now).

As you have "tried everything" I suspect that you may have broken several things that did not need fixing, so almost anything could now be 'broken'.

Easiest option, as said above, is to restore from the backup you made before you updated and go from there.

If NR is not starting, the NR logs will show you why. Restart NR from the App overview page, and then capture the logs from the startup sequence. Then we may be able to see just why NR is not starting...

Note:
Update v22 has several changes with a new version of Node-RED. As always, the Home Assistant WebSocket nodes and the Node-RED Companion Integration (if you use it) may have to be updated also. You don't say which version of Node-RED App you have upgraded from, but a big jump may introduce problems associated with earlier updates.

Not much help to say mine is fine, but it has been. Other than not starting a couple of times with a restart of HA. My NR was the app/addon.

I have over the past 12 months or so, moved majority of my NR into HA actually. Since automations became easier, and seemed a good thing to get them all in one place if possible.

NR remains with a few that I have not tackled yet so much smaller issue if it stopped.

As others have said, try to roll it back, and then once you are there it might be a good time to do similar, begin to migrate your automations/flows out to HA since its easier these days. Just different.

Or it is an opportunity to start again if all has really failed. Clean up and refresh. Just a nuisance.

@krauspe Post the logs from the nodered addon. Everyone is trying to guess whats wrong because you have not provided enough information.

very odd. The only downside i have seen so far is a lot of my home-assistant helpers disappeared from NR while i was using it. I restarted NR and they all came back but it caused a bit of fun :frowning:

Hi Bisciut,

thanks for your reply. I‘ve upgraded from v21 to v22.
And I don‘t use NR dashboards. I‘ve just a view flows which silently do certain tasks. I don’t use twitter at all in HA, therefore this doesn‘ bother me.

But as I mentioned, I could‘nt even get a inject node connected directly to a debug node working, No output was shown.
Interestingly one single part of a flow was working, it‘s triggert by a Homatic remote control button and toogles a light. But as I added a debug node to that flow, it didn’t showed anything. Since here is another integration involved, it‘s more complex than the trivial test, which is strange. No other tasks worked.

However, first I tried to delete and reinstall node red, which caused it not to start at all. Then I recovered a backup of node red, no success.
Then I recovered HA complete from a backup 3 Days ago, and updated everything except NR. Now it works again.

But I‘m afraid of trying it again.
I will try to analyze what nodes are used right now, compare with the renamed/replaced ones by the new version, but when this is not the reason of the failure, I have no idea what to do, except building everything from scratch.

I f you have any additional advice, you didn‘t already mention, I would be happy to read.

regards
jb

Hi Mikefila, my post was a bad quality, normally I would be more precise.
But anyway, I was so upset after hours of struggeling, I decided to restore my whole HA backup, and thererfore the logs are gone. Now its running again, and I have no ambition to repeat that update at the moment, since everything is working fine with v21

Even though you did not use the dash in NR it was installed by default. If you go to the right side debug panel, above it there is a set of buttons, switch to configuration nodes. Do you see any that start with ui?