Additive newcomer docs building on the onboarding intro: - docs/CONCEPTS.md: the bridge between the README glossary and the wire-level PEER_PROTOCOL.md. Explains TG-ownership/longest-prefix-match, owner-relay, peer interest (+10-min timeout), cluster TGs (single-hop), and talker arbitration (lower nonce wins), with a worked three-way-QSO walkthrough. - docs/TROUBLESHOOTING.md: symptom-first checklists (trunk won't connect, audio won't cross, one-way audio, satellite/twin issues, flapping links), grounded in the real connect/routing rules and pointing at /status + logging. - README: add a Contents TOC, a 'Which setup fits my deployment?' table that surfaces the topology decision guide near the top, and index both new docs. All in-page anchors and cross-doc links verified.
6.5 KiB
Troubleshooting
Common failure modes when bringing up trunks, satellites, and twins, with what
to check first. If a concept here is unfamiliar, read CONCEPTS.md.
Two tools answer most questions:
GET /status(enable withHTTP_SRV_PORT=8080) — shows each trunk'sconnectedstate, active talkers, satellites, and the rosters received from peers. This is the fastest way to see what the reflector thinks is happening.- Logs — for connection and routing detail. Use the leveled logger
(see
LOGGING.md);TRUNK_DEBUG=1exposes per-section HMAC and prefix-match decisions but is extremely verbose — enable it only while diagnosing, then turn it off (it logs every audio frame).
A trunk won't connect
/status shows the trunk with "connected": false, or the log never reports a
hello exchange. Check, in order:
- Section names must be identical on both ends. The
[TRUNK_x]section name is part of the handshake. If reflector A uses[TRUNK_AB]and B uses[TRUNK_BA], B rejects the connection. Both sysops must agree on one name. - The
SECRETmust match on both sides exactly. A mismatch fails the HMAC check; withTRUNK_DEBUG=1you will see the section matched on name but failed on secret. - Port 5302/TCP must be reachable inbound on both reflectors. Trunks are mutually dialed: each side connects outbound and listens inbound. A firewall or NAT blocking 5302 on either end prevents at least one direction. (If only one direction is blocked the link may still show connected via the other leg — but fix both.)
- Each reflector needs a stable address. Use a static IP or stable DNS name
in
HOST=. A peer behind a changing dynamic IP cannot be reliably dialed — that is what satellites are for. REMOTE_PREFIXshould match the peer'sLOCAL_PREFIX. A wrong prefix does not stop the connection, but it breaks routing (next section).
Note: trunks connect peer to peer, independent of any client login. You do not need
[USERS]/[PASSWORDS]entries for a trunk — those are for nodes.
The trunk is connected but audio doesn't cross
The link shows connected: true, but a client on one reflector can't hear a
client on another.
- Is the TG owned by the right reflector? Audio for TG
25only flows if some reflector'sLOCAL_PREFIXmatches25(here, prefix2). If nobody owns the prefix, there is no home to route to. Confirm with the owner'slocal_prefixin/status. - For a nationwide TG, is it a cluster TG on both sides? A cluster TG is
exchanged only between reflectors that both list it in
CLUSTER_TGS. If A lists222and B does not, B silently ignores it — by design. - Give it one transmission to warm up. A listener that never selected the TG relies on the owner having current "interest" for its link. Interest expires after 10 minutes of silence on that TG, so the first key-up after a long idle may be what re-establishes the path. A client that actually selects or monitors the TG advertises interest immediately and should not need this.
- Check per-trunk filters.
BLACKLIST_TGSis evaluated first and drops the TG outright;ALLOW_TGS, if set, drops everything not listed.TG_MAPmay be rewriting the number. These are per-[TRUNK_x]and reloadable via the PTY (TRUNK RELOAD <section>); inspect them withTRUNK STATUS <section>. - Is a callsign muted?
TRUNK MUTE <section> <callsign>suppresses that callsign's audio on the inbound path. Checkmutedin/statusandTRUNK UNMUTEif needed.
Audio crosses in only one direction
Usually an asymmetry between the two ends:
- Filters differ. A
BLACKLIST_TGS/ALLOW_TGS/TG_MAPset on one side but not the other makes audio pass one way and not the other. Compare both sections. - Interest is one-sided. If only one side has a client selecting the TG, only that side has advertised interest. The other direction starts flowing once a client there selects/keys the TG.
- Multi-hop transit: each intermediate hop must declare the same
ROUTABLE_PREFIXESfor the forward path; the return path relies on interest (and, for a single-uplink leaf, the*wildcard). Re-check every hop in the chain — there is no automatic propagation.
A satellite can't connect
- Parent
[SATELLITE]section present withLISTEN_PORT=5303and aSECRET=(or a per-idSECRET_<id>=matching the satellite'sSATELLITE_ID). A per-id mismatch rejects with no fallback. - Satellite side sets
SATELLITE_OF,SATELLITE_PORT,SATELLITE_SECRET, andSATELLITE_IDin[GLOBAL]— and does not setLOCAL_PREFIX,REMOTE_PREFIX,CLUSTER_TGS, or any[TRUNK_x]section. - Only the parent needs an open inbound port (5303). The satellite dials out, so it can sit behind NAT.
- Seeing fewer TGs than expected? A
SATELLITE_FILTERon the satellite narrows scope in both directions. Empty/absent = all TGs. The active filter appears under/status.satellites[<id>].filter.
Twin pair: duplicates or self-echo
If an external reflector trunking to a twin pair hears doubled audio or its own transmissions back:
- The external peer must use a single
[TRUNK_x]section withPAIRED=1, not two separate sections (one per twin). Two sections defeat the sticky per-transmission socket selection and cause duplication and self-echo. SeeTWIN_PROTOCOL.md("External peer view").
A trunk keeps dropping / reconnecting
The link flaps; logs show repeated RX timeouts.
- Heartbeats run every ~10 s with a ~15 s receive timeout. A link that drops about every 15 s of quiet usually means heartbeats aren't arriving — check for packet loss, a stateful firewall/NAT idle-timeout killing the TCP session, or one side pausing (an overloaded or swapping host).
- Confirm both directions:
/statusexposes the outbound and inbound legs separately for twins; for trunks, a flapping link that still showsconnectedis usually surviving on one leg while the other fails — fix the failing direction's reachability.
Still stuck?
Capture /status from both ends and a short log slice with the relevant
subsystem at debug level (see LOGGING.md). The combination of
"what each side thinks the link state is" plus "which sections matched on
name/secret/prefix" pinpoints the vast majority of trunk problems.