Troubleshooting
“WebCrypto is not available” or login won’t load
Section titled ““WebCrypto is not available” or login won’t load”hytte encrypts everything in the browser with WebCrypto, which browsers only expose on a secure origin: https://, or http://localhost on the same machine.
Opening hytte via a plain http://192.168.x.x:8000 LAN IP will not work. Use --tls, a reverse proxy, or a tunnel.
Messages stuck on “🔒 Waiting for the key”
Section titled “Messages stuck on “🔒 Waiting for the key””When you join a channel, are added to a group, or reset your account without a recovery key, your browser sends a key request. Another member who already has the keys must be online so their browser can wrap and share them with you.
As soon as any member opens hytte, the keys arrive automatically and the messages unlock.
Login or WebSocket fails behind a reverse proxy
Section titled “Login or WebSocket fails behind a reverse proxy”hytte checks that the browser’s Origin header matches the Host header on login and WebSocket upgrades, and uses X-Forwarded-Proto to decide whether to set the Secure cookie flag.
Make sure your proxy:
- forwards the original
Hostheader; - sends
X-Forwarded-Proto: https; - passes WebSocket
UpgradeandConnectionheaders; - uses a generous WebSocket read timeout (e.g.
1h) so idle connections aren’t dropped every minute.
See Behind a reverse proxy for working Caddy, nginx and Traefik configs.
Passkeys / security keys aren’t offered
Section titled “Passkeys / security keys aren’t offered”WebAuthn is bound to a stable domain name. Passkeys and security keys are hidden when hytte runs on a random quick-tunnel URL or without --domain.
To enable them:
- pass
--domain chat.example.com(or use--le-domains, which sets it automatically); - use a stable address, such as a reverse proxy, Let’s Encrypt, or a named Cloudflare tunnel.
Passkeys also work on http://localhost for local testing.
Push notifications don’t arrive
Section titled “Push notifications don’t arrive”- HTTPS required: service workers and Web Push only work on
https://(orlocalhost). - iOS / iPadOS: Safari only supports Web Push when hytte is added to the Home Screen (Share → Add to Home Screen) and opened from there.
- Public computer sessions: devices where you ticked Public computer at login don’t keep keys in IndexedDB, so the service worker can’t decrypt push wake-ups and push is disabled for that session.
- Active desktop tab: hytte holds mobile push while a desktop tab is active, and only sends it if a message stays unread for 60 seconds.
Locked out of 2FA or admin
Section titled “Locked out of 2FA or admin”If you have shell access to the server, you can recover without touching the database by hand:
# Remove a user's TOTP, passkeys, security keys and backup codeshytte -d /var/lib/hytte --reset-mfa alice
# Promote a user to adminhytte -d /var/lib/hytte --make-admin aliceFile uploads fail with 413 or connection reset
Section titled “File uploads fail with 413 or connection reset”Check both limits:
- hytte’s own
--max-uploadflag (default 50 MiB,0for unlimited). - Your reverse proxy’s body size limit (for example,
client_max_body_sizein nginx).
Admin panel setting is greyed out (“set by flag”)
Section titled “Admin panel setting is greyed out (“set by flag”)”Passing -r / --open-registration or --require-mfa on the command line locks that setting in the admin panel. Remove the flag from your command or /etc/hytte/hytte.env and restart hytte to change it from the UI.
Cloudflare tunnel errors
Section titled “Cloudflare tunnel errors”See the troubleshooting table on the Cloudflare tunnel page for cloudflared missing, error 1033, 502 Bad Gateway and 404.