Unable to install new Livekit server following upgrade to single-container deployment

(#5042) Bug Open: Needs triage infra self-hosting voice

Reproduction steps

  1. Establish existing voice server using rexctl in multi-container self-hosted environment
  2. Upgrade to single-container environment
  3. Following prompts, remove existing Livekit container
  4. Attempt to deploy a new voice server using rexctl voice token command
  5. Run resulting command starting with curl -fsSL https://fluxer.dev/install.sh | sh -s -- voice #fluxer.domain#, but with --no-edge --endpoint wss://#fluxer.domain# because it is behind a reverse proxy that handles the certificates

Expected behaviour

rexctl deploys a new voice server on the box for use with Fluxer.

Actual behaviour

Change any of these with flags. Run rexctl voice join --help to see them. ✓ Install this voice server? Yes LiveKit needs larger UDP buffers for many calls, and only root can raise them. Run these commands: printf 'net.core.rmem_max = 16777216\nnet.core.wmem_max = 16777216\n' | sudo tee /etc/sysctl.d/61-fluxer-voice.conf sudo sysctl -p /etc/sysctl.d/61-fluxer-voice.conf Point your proxy at 127.0.0.1:7880 for wss://#fluxer.domain#, with WebSocket upgrades and a read timeout of at least 120 seconds. ✓ Started voice server us-west-server-1. 2s ✓ Opened 7883/tcp, 7884/udp in firewalld. ✓ wss://#fluxer.domain# has a valid certificate. 0s ▄▀▀▀▀▀▀▄ ╭──────────────────────────────────────────────────────╮ ▀▀▀▀▀▀▀▀ ─┤ That didn't work. Here's what I saw and what to try. │ ▀▀▀▀▀▀ ╰──────────────────────────────────────────────────────╯ ▀▄ ▄▀▀▀▀▀▄ ▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀ ▀▀ ✗ The voice server rejected its own key. → Run rexctl voice remove us-west-server-1, then join again.

1 comment

Sign in with Fluxer to comment and vote.
Comment by Hampus
HampusStaff 1 vote
Thanks for the detailed report! "rejected its own key" means that the Fluxer instance connected to the endpoint you passed, found a working voice server (LiveKit) there, but that server doesn't have the key rexctl just set up. So your endpoint connects to a different LiveKit than the new one, for example the one bundled in your new single container, or one left from the old setup. Can you check two things on the voice machine?
  1. ss -ltnp | grep 7880 (which process listens on 7880)
  2. Where your reverse proxy sends the voice hostname (it should go to 127.0.0.1:7880 on the machine where you ran the join, with WebSocket upgrades)
Once the proxy reaches the new server: rexctl voice remove us-west-server-1, get a fresh token with rexctl voice token on the Fluxer machine, and run the join again. I'll also make rexctl explain this clearly instead of the key error.