ข้ามไปยังเนื้อหา

2026-11-11 — Node-RED 5 upgrade stalled ALL flows: every Node-RED-published MQTT sensor went silent (RCA + fix)

Status: FIXED & VERIFIED 2026-11-11 14:04–14:10 +07:00 · GitHub issue: #20 Impact: ~57 of ~500 Influx-whitelisted streams silent 11:44–14:03 +07:00 (~2 h 20 min) — all four solar inverters (B/D/K1/K2, every PV string), all 4 water tanks (cm/m/%/capacity), all emon_* aggregates (load/MDB/PV/UPS), mdb_*_total_power, UPS entities (building B + Chiang Khong). Mosquitto itself, Tasmota meters, RUGON, and zigbee-01/02 were never affected. Live system: HA OS VM 194.1.0.1 (RILF Server), Node-RED add-on a0d7b954_nodered

“หลังอัพเดท sensor หลายตัวไม่ส่งค่ามา MQTT เกือบทั้งหมด” — dashboards dominated by solar/water/energy entities went mostly-unavailable after the 2026-11-11 morning update session.

Time Event
11:44–11:52 Update session begins: apps updated/restarted (z2m-03 container created 11:51:05, z2m-06 11:52:06 — both immediately fail on unreachable coordinators, see “pre-existing” below)
11:51:06 racksync-autossh-tunnel add-on halts: WizRoute relay node-alure.wizroute.com rejects our RSA key (Permission denied (publickey,password))
12:47:59 Automatic full backup taken (pre-core-update) — slug 80b93c0a
12:50:08 HA core 2026.11.1 container created (was 2026.5.1 — a 6-month jump)
13:36–13:38 Host reboot completes. New stack: HA 2026.11.1, Mosquitto 7.1.0→7.1.3, Node-RED add-on →22.2.2 (Node-RED v5.0.9, Node 24), Supervisor 2026.10.x (addons renamed “apps”, containers addon_*→app_*)
13:38:20 Node-RED starts, logs Waiting for missing types to be registered: ui_tab, ui_base, ui_group, … — flows never start (0 × “Started flows”)
11:44–14:03 Outage window for all Node-RED-published entities
14:02:08 Repo verified clean @ 312c157 (constitution: commit-before-remote-change)
14:02 Backups + sha256 taken (see below)
14:03 package.json: added "node-red-dashboard": "^3.6.6"
14:03:30 Restart via Supervisor CLI → npm installs dashboard 3.6.6 → flows start, brokers connect 14:03:31
14:04–14:10 Verified in Influx: emon_mdb_total_power ~60 s cadence, inverter_b_active_power ~10 s, water_tank_01_percentage @ 14:04:31

The Node-RED add-on 22.2.2 (Node-RED v5.0.9) no longer bundles node-red-dashboard, and the project package.json never listed it (it worked before only because the old add-on image bundled it). flows.json contains 40 ui_* nodes (1 ui_base, 1 ui_tab, 5 ui_group, buttons/switches/text…) of 3,780 total. Node-RED’s rule: if any node type is missing, the whole flows file refuses to deploy — it waits forever for the types. Result: zero flows running, nothing published to MQTT, even though the container showed “healthy”.

Corroborating measurements:

  • InfluxDB diff (pre-update window 10:00–11:44 vs post-reboot): 499 → 440 active streams; the 57 stopped ones were exactly the Node-RED-published set
  • docker logs app_a0d7b954_nodered: Started flows count = 0 between 13:38 and the fix

/config/package.json (inside Node-RED container; host path /usr/share/hassio/addon_configs/a0d7b954_nodered/package.json) — added one dependency:

"node-red-dashboard": "^3.6.6",

flows.json was not modified. Restart executed via Supervisor (NOT docker restart — known to break addon mounts, Exited 127): sudo docker exec hassio_cli ha apps restart a0d7b954_nodered.

Note: npm marks node-red-dashboard@3.6.6 as deprecated (“look at @flowfuse/node-red-dashboard”) — it installs and runs fine on NR 5.0.9 for now; migration is a future task.

  • Repo commit before change: clean tree @ 312c157 verified 2026-11-11T14:02:08+07:00
  • sha256 before: package.json 3208740679dc5273fe2f046bfd182d4a52f1dcb603de1b87f738fb48b6383483 · flows.json 843730b33619d567b881a832c63cb72bdec4d05c5a2d2d9f199c16e6f8524d89
  • sha256 after: package.json 76aedfe6266d6dd80a475faf13c77e2dbc04c6dc34e4ea32cb32bc3d0d5b0ce6 · flows.json unchanged
  • Backups (live host, inside addon data dir): /config/package.json.bak-20261111T1402+0700-predash and /config/flows.json.bak-20261111T1402+0700-predash (= /usr/share/hassio/addon_configs/a0d7b954_nodered/ on host)
  • Off-host copies (engineering Mac, volatile /tmp): /tmp/obh-diag/flows.json, /tmp/obh-diag/package.json.orig
  • Full-system fallback: automatic backup slug 80b93c0a (2026-11-11 12:47:59 +07:00, pre-core-update)
  • Rollback procedure: sudo docker exec app_a0d7b954_nodered sh -c 'cp /config/package.json.bak-20261111T1402+0700-predash /config/package.json' then sudo docker exec hassio_cli ha apps restart a0d7b954_nodered. (This returns Node-RED to the not-starting state — the real pre-change state. Full restoration of the pre-update stack = restore backup 80b93c0a.)
  • Started flows @ 14:03:30; Waiting for missing types occurrences after restart: 0
  • [mqtt-broker:MQTT Broker] Connected to broker: node-red@mqtt://194.1.0.1:1883 @ 14:03:31 (also DEV + RUGON broker nodes)
  • Influx hass bucket: emon_mdb_total_power writing every ~60 s from 07:03:40Z UTC (=14:03:40+07:00), inverter_b_active_power ~10 s cadence, water_tank_01_percentage 79 % @ 07:04:31Z UTC (=14:04:31+07:00)

Full recovery diff — every entity that flowed pre-update (10:00–11:44 window, 500 entities) vs everything that wrote since the fix (from 07:03:30Z = 14:03:30+07:00):

  • Everything that changed value has come back. Affected groups reporting within a 10-min window at 14:15 +07: inverter 144, obh_* UPS 37, water tanks 21, obhck_* 14, obhms_* 13, emon_* 12, mdb_* 3 = 244 entities. System total 442 streams ≈ pre-incident baseline (~440).
  • ~20 apparent stragglers (7 UPS + 13 smt_*) are NOT dead: HA’s state machine skips identical values, and the InfluxDB integration writes only on state_changed — so stable readings (UPS output voltage 227 V, smt_* electrical diag _v3/_v5/_ipc/_isv/_vpc) simply produce no new points. Proven alive via sibling metrics on the same devices: e.g. smt_kr4_01 battery/temperature/humidity all wrote fresh values at 15:38–15:39 +07:00 while its _v3 last changed 13:37. Several “missing” entities reappeared during the check itself as their values drifted (list kept shrinking).
  • Still not recovered (expected): zigbee-03…08 fleet — pre-existing coordinator/network failure, independent of this incident.

Triage gotcha for the future: a container showing healthy proves nothing for Node-RED — grep the logs for Started flows. And “no recent Influx points” ≠ dead for stable-value entities; check a fast-changing sibling metric on the same device first.

  1. zigbee-03…08 crash-loop (documented since 2026-09-24 in docs/issues/2026-09-24-rugon-mqtt-integration.md): coordinators unreachable at network level — 194.1.1.134–.137 EHOSTUNREACH (no ARP/ping from BOTH 194.1.0.1 and 194.1.0.3 → devices/switch/PoE actually down) and 192.168.10.13/.14 ETIMEDOUT (routed via 194.1.1.254). zigbee-01/02 (194.1.1.101/.102) healthy. Needs on-site / vendor (WizRoute multipoint) action.
  2. racksync-autossh-tunnel add-on halting since 11:51 — WizRoute relay rejects our key (autossh@node-alure.wizroute.com: Permission denied). Vendor-side account/key issue; remote-support path to 10.10.0.4 down.
  3. NodeRED_RUGON_Server MQTT client auth-dead since 2026-09-28 (not authorised every 15 s) — known, documented in docs/seismic-rugon/README.md; fix belongs to RUGON Phase 3.
  4. obh_inverter_01 client-ID collision: 194.1.1.119 and 194.1.1.120 both connect with client id obh_inverter_01 (user mqtt) → “session taken over” ping-pong every 5 s. One datalogger’s Tasmota MQTTClient needs reconfiguration.
  5. Node-RED flows reference absent entities light.obh_pump_03_mode{,_2,_3} (registry only has pump_01/02 variants) → repeating poll-state ConfigErrors + downstream calculator errors. Stale flow refs, predates today.
  6. SSH add-on 24.2.1 lost direct docker/Supervisor access for the hassio user (no docker group, no SUPERVISOR_TOKEN env; ha CLI from the add-on → “unauthorized”). sudo still works inside the add-on — that was the working path for this incident. Also Supervisor proxy /core/api/* from the HA container returns 401 (GETs included, unlike the 2026-09 behavior note).
  7. HA recorder: MQTT-platform entities wl_*/door_sensor* have no Influx data since 2026-10-25 — the InfluxDB include-whitelist was the likely change point; confirm separately if their absence matters operationally.