Skip to content

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 Host header;
  • sends X-Forwarded-Proto: https;
  • passes WebSocket Upgrade and Connection headers;
  • 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.

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:

Passkeys also work on http://localhost for local testing.

  • HTTPS required: service workers and Web Push only work on https:// (or localhost).
  • 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.

If you have shell access to the server, you can recover without touching the database by hand:

Terminal window
# Remove a user's TOTP, passkeys, security keys and backup codes
hytte -d /var/lib/hytte --reset-mfa alice
# Promote a user to admin
hytte -d /var/lib/hytte --make-admin alice

File uploads fail with 413 or connection reset

Section titled “File uploads fail with 413 or connection reset”

Check both limits:

  1. hytte’s own --max-upload flag (default 50 MiB, 0 for unlimited).
  2. Your reverse proxy’s body size limit (for example, client_max_body_size in 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.

See the troubleshooting table on the Cloudflare tunnel page for cloudflared missing, error 1033, 502 Bad Gateway and 404.