Full deploy via Admin API (POST /flows) occasionally, silently truncates output wires on unrelated nodes
Summary
On a full deploy via the Admin HTTP API (POST /flows, Node-RED-Deployment-Type: full), Node-RED occasionally and silently truncates the wires array on unrelated nodes that were not part of the intended change — dropping their output wire targets with no error, no warning, and no indication anything went wrong. The deploy itself reports success (HTTP 204) and the node count in the response is unchanged; only the wire targets on a subset of nodes are gone.
This has recurred 4 times in about 2 weeks on the same project, each time affecting a different, larger set of nodes, always the same signature: a node's wires entries for a given output are silently replaced with [], while the node itself (its id, config, and other outputs) is untouched.
Environment
- Node-RED: v5.0.7
- Node.js: v24.21.0
- OS: Debian 13 (trixie), Raspberry Pi 5 (arm64)
- Node-RED Projects feature enabled (git-backed flow storage)
- Deploys performed via a scripted
curl -X POST http://localhost:1880/flows(full deployment type), not the browser editor — no editor tab was open during the deploys that caused this
Steps that reproduce the symptom (exact trigger not isolated)
We have not found a minimal, reliable repro yet, but every occurrence shares this shape:
- A deploy is made that touches a batch of nodes — in our confirmed case, ~12
ui-template/ui-textwidgets and their upstreamfunctionnodes were being edited in the same payload (removing one wire from each of several multi-outputfunctionnodes, part of an unrelated fix). - The deploy succeeds (204, correct node count in the response).
- Some time later (hours to about a day), a separate, unrelated symptom is noticed — e.g. an InfluxDB measurement has stopped receiving writes.
- On investigation, a
functionnode that has nothing to do with the original edit is found with an emptywiresarray on one of its outputs, where a wire target definitely existed before.
Concrete evidence (git diff of the actual persisted flows.json)
Because this project uses Node-RED's Projects feature, every deploy is auto-committed to git, which let us find the exact commit responsible after the fact. Diffing the commit immediately before and after the deploy that caused the most recent occurrence:
houseload_influx_fn
BEFORE: [['battmetrics_influx_write']]
AFTER: [[]]
battwatts_dcp_fn
BEFORE: [[], ['battmetrics_influx_write']]
AFTER: [[], []]
temp_cabin_minmax_fn
BEFORE: [['temp_cabin_minmax_w'], ['pivan_influxdb_write']]
AFTER: [['temp_cabin_minmax_w'], []]
... (29 functions affected in this single deploy, none of them
intentionally touched by that deploy's actual change)None of the 29 affected nodes were part of the intended edit for that deploy (which only touched 12 specific widgets and their direct upstream functions). The affected nodes' own config, id, and other output wires were untouched — only the specific wire array entries shown above were emptied.
Prior occurrences (same signature, found via a project-wide "does every function's output actually reach something" audit each time)
- 13 functions affected (first noticed)
- 25 functions affected (second occurrence, ~1 day of undetected data loss)
- 28 functions affected (third occurrence)
- 29 functions affected (most recent, evidence above)
Each time, the fix was simply re-wiring the missing targets back (which persist correctly afterwards) — the underlying cause has not recurred on the same nodes twice, only different ones each time, which is why the blast radius has grown rather than being caught early.
What we've ruled out
- Not caused by concurrent editor sessions — no editor was open during any of the deploys that caused this.
- Not a manual editing mistake — confirmed via git diff that the only nodes with dirty working-tree changes in each commit were the ones intentionally being edited; the affected nodes were not part of the diff we submitted.
- Not related to Dashboard/
ui-*node types specifically — affected nodes include plainfunctionnodes withinfluxdb outtargets, unrelated to the dashboard widget layer.
Impact
Silent data loss — in our case, InfluxDB writes for battery/temperature/solar telemetry stopped for 20+ hours before being noticed, since nothing in the deploy process indicated a problem.
Happy to provide the full flows.json history / more detail if useful for reproducing this.
Source: node-red/node-red