Reproduction steps
- Establish existing voice server using rexctl in multi-container self-hosted environment
- Upgrade to single-container environment
- Following prompts, remove existing Livekit container
- Attempt to deploy a new voice server using rexctl voice token command
- 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
Comment by Hampus
- 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:ss -ltnp | grep 7880(which process listens on 7880)rexctl voice remove us-west-server-1, get a fresh token withrexctl voice tokenon the Fluxer machine, and run the join again. I'll also make rexctl explain this clearly instead of the key error.