net: active_uplink stuck on modem_secondary for ~20 h while modem_primary carries the traffic (v0.12.0-ocw4)
I maintainer di solito rispondono entro 1 giorno
@rslater-cs ci sta già lavorando.
Dal 30/11/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Box: BB7GIWO3JLDOFC (bigbox-ss, release group canary-ocw), firmware bigbox-ss-v0.12.0-ocw4-2026-11-18T112303-v22.03.7 (devicecode-lua c835c62). No WAN cable is connected, so modem_primary is the expected uplink.
What the cloud shows (UTC, 25 Nov 2026)
| Time | net.active_uplink |
|---|---|
| 05:01:41 | modem_primary (after the daily reboot) |
| 07:13:36 | modem_secondary |
| 07:14:28 | modem_primary |
| 07:24:08 | modem_secondary |
| 07:24:59 | modem_primary |
| 08:46:15 | modem_secondary |
| — | nothing more until 26 Nov 05:01:39 (modem_primary, after the reboot) |
Hourly rx_bytes over the same window:
net.modem_primary: 332 MB at 09:00, 3,900 MB at 10:00, 1,604 MB at 11:00, 633 MB at 12:00, 694 MB at 13:00 and 369 MB at 15:00.net.modem_secondary: about 0–1 MB per hour.
System telemetry was continuous (50–59 messages an hour), so the box was online the whole time. The traffic clearly went through the primary modem, but active_uplink kept saying secondary.
Why it points at the net model
active_uplink is re-sent every 300 s (active_uplink_refresh_loop, src/services/net/service.lua:266), and the metrics pipeline (any_change) only drops repeats. So the net model itself must have held modem_secondary for about 20 hours.
The value comes from the mwan3 policy members that the HAL reports (src/services/net/active_uplink.lua, from_policy). That leaves two possibilities:
- the HAL's multiwan/policy snapshot went stale and stopped refreshing; or
- mwan3's policy really listed only modem_secondary (primary marked offline by tracking), while established or new flows kept going out through the primary.
Why it matters
The canary checker (jangala-dev/grand-pipeline#26) uses this metric. It warns on a failover to the secondary, and holds a release when a box spends 3 hours on last_resort. For this episode it reported "Traffic moved to modem_secondary 3 time(s), 20.3h after settling", which is false. A value stuck on last_resort would produce a false hold.
Asks
- Find which of the two cases it was. Rig repro: force tracking failures on the primary, let it recover, and compare
mwan3 status, the HAL snapshot and the metric. - Make sure
active_uplinkfollows the recovery back to modem_primary.
Related: #330 (mwan3 and devicecode disagree on uplink state in the UI, v0.10/v0.11). It may or may not have the same root cause.
- Lingua principale
- Lua
- Stelle
- 1
- Fork
- 0
- Merge medio
- 1g 8h
- PR unite (30g)
- 24
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di jangala-dev/devicecode-lua
-
time: "time synchronisation lost" (time_unsynced) logged right after every devicecode restartAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jangala-dev/devicecode-lua#441 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
jangala-dev/devicecode-lua#440 ·
I maintainer di solito rispondono entro 1 giorno
-
Serve local UI static files gzip-compressedForse già presa @lePereT l’ha presa 2 giorni fa. Apertaenhancement
jangala-dev/devicecode-lua#437 · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
-
Report browser and OS versions with local UI visitsForse già presa @lePereT l’ha presa 2 giorni fa. Apertaenhancement
jangala-dev/devicecode-lua#436 · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
jangala-dev/devicecode-lua#432 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di jangala-dev/devicecode-lua
Issue simili
-
местоположение NPC Мазу'конApertaforever from-game
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
openmap-world/openmap#614 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
area: ci-tooling good first issue priority: P3 size: S type: chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
follow-up needs-review
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ksysoev/duet.nvim#310 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100