Radio bot logs in with the right presence but never appears in the Discord voice channel (live) #37
Closed
opened 2026-10-04 22:42:36 -04:00 by logan
·
2 comments
No Branch/Tag Specified
main
feat/45-trunk-recorder
fix/44-upload-spool
feat/41-disk-reporting
fix/41-updater-prune
fix/discord-voice-join
fix/updater-safe-directory
fix/28-amd64-images
fix/18-install-token-argv
fix/19-image-tag-skew
feat/discord-system
feat/24-p25-conventional
feat/local-ui-usable
fix/14-15-provision-ota
feat/sdr-pins
feat/secondary-sdr-priority
feat/second-sdr-adsb-ais
feat/publish-public-images
fix/install-rerun-pickup
pulse-recorder
v1.1.0
v1
Labels
Clear labels
area/ai-pipeline
area/auth
area/billing
area/correlation
area/discord
area/frontend
area/governance
area/growth
area/infra-deploy
area/legal
area/map
area/mqtt
area/node-ota
area/osint
area/recording-audio
area/sdr-radio
area/transcription
board
board:agenda
Scene/entity extraction, summarizer, AI providers, embeddings
AuthN/Z, roles, tenancy/org scoping, API keys, credentials
Plans, entitlements, AI spend accounting and caps
Incident correlation, linking, lifecycle, severity, corr_debug
Discord bot, radio bots, voice streams, bot tokens, webhooks
Web UI: Next.js app and the edge-node local dashboard
Board process, minutes, unattended runner, agent tooling
Go-to-market, outreach, cold email, discovery conversations
CI/CD, VM, registry, Firestore rules/indexes deploy, Terraform/Caddy
ToS, retention, licences/DAAs, CAN-SPAM, E&O, name suppression
Live map: pins, paths, tiles, legend, geocoding
Node-C2 MQTT, checkins, commands, node sweeper, dynsec
Node install, enrollment, OTA updater, image skew
External feeds: cameras, 511, ADS-B, AIS, outages, and their licences
Call capture, boundaries, PulseAudio, ring buffer, trimming, attribution
OP25 decode, SDR hardware/tuning, conventional, second SDR, mesh radio
STT, transcript correction, place verification, name accuracy
Board process: minutes and board-filed items
Needs board scoping at the next sitting; CEO removes the label once scoped
kind
behavior-bug
Wrong product behavior; the instrument reads it correctly
kind
measurement-bug
Corrupts the recording/instrument (debug data, evals, health checks), not behavior
priority
p0
Drop everything: prod broken, live exposure, or owner-ruled P0
priority
p1
Next up: blocks a gate, a customer, or core incident quality
priority
p2
Normal: real defect or planned work, schedule in turn
priority
p3
Low: minor, cosmetic, or someday
status
blocked
Waiting on an external party, spend, or another issue
status
in-progress
Branch or PR open against it
status
needs-decision
Waiting on an owner or board ruling before work
status
needs-info
Root cause or repro unknown; needs a reading first
type
bug
Something built is wrong: code, data, or a measurement
type
chore
Maintenance, refactor, tests, pinning, cleanup: no user-visible change
type
decision
A ruling to make or record: board minutes, owner calls, legal reviews
type
docs
Docs, runbooks, CLAUDE.md, skills, SOPs
type
feature
New capability or an extension of an existing one
type
security
Security, privacy, credential or tenant-isolation exposure
type
tracking
Tracker, checklist, initiative or punch-list spanning several changes
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: logan/node-26#37
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Reported by the owner on live (prod
fabdf58, #216/#218/#219/#220): the radio bot comes online in Discord with the correct presence ("Listening to ") but never shows up in the voice channel.What the code says (origin/main,
drb-edge-node/app/internal/discord_radio.py):_set_presenceis called only in_ensure_voice, afterchannel.connect()has returned (and PulseAudio is ready) or whenvc.is_connected()is already true (lines ~275-303). So a correct presence means the edge's discord.py believes the voice connection succeeded. The lease, desired-state and token-pickup path worked.Hypothesis, not verified: this looks like a voice-layer failure (handshake or session dropping right after connect) rather than C2 placement.
discord.py[voice]is unpinned inrequirements.txt, so the image gets whatever version was current at build time. Discord's voice-protocol requirements (E2EE/DAVE) are one candidate. Check the edge log forvoice connect failed, and what discord.py version is in the running image.Diagnosis aid: server-26 PR #224 makes c2-core log every node-reported stream state transition with the node's error text and reason code. Once it is deployed,
docker logs c2-core | grep "Discord stream"shows whether the node reportsconnected, a flappingconnecting -> error [connect_failed], or nothing at all.Not fixed. Filed from the server-26#213/#221 follow-up session.
Review note on the DAVE hypothesis, checked against PyPI today:
[voice]extra pullsdavey(DAVE). Current is 2.7.1 (2026-03-03).davey0.1.6 ships cp314 manylinux wheels for aarch64 and x86_64, so thepython:3.14-slimedge image resolves it without a Rust build.So "unpinned" is not by itself a cause: any edge image built after 2026-02-27 already has DAVE. It is only a cause if the running image was built before then. Check
pip show discord.py daveyinside the running edge-node container before chasing DAVE.Also: presence was set once and never cleared on origin/main, so a correct presence only proves a join succeeded at some point, not that the bot is in voice now. node-26 PR #38 (
fix/discord-voice-join) addresses that plus permission/channel-full pre-checks, which fit this symptom better.Closing per owner (2026-10-27): the radio bot does join voice on live now. Superseded.