Skip to content

Troubleshooting

Problems with a self-hosted community server, by symptom. Start with the logs: docker compose logs -f shows every container, and docker compose logs -f community-server just the server.

  • Read docker compose logs community-server. The server names the missing or invalid variable in its last line before exiting: SERVER_TOKEN, COMMUNITY_PUBLIC_URL (it must be a full URL with scheme and host), the LiveKit key pair, or the S3 settings when STORAGE_BACKEND=s3.
  • required variable LIVEKIT_API_KEY is missing a value from Compose itself means .env has no LiveKit key pair. See set your LiveKit keys.
  • On Cloud, the server has to reach CORE_SERVER_URL at startup to fetch the sign-in key and register. Check the host has outbound HTTPS.
  • Check Postgres is healthy in docker compose ps.
  • If you overrode MIGRATIONS_PATH, remove it: the image ships its migrations at the default path.

Every variable is described in the configuration reference.

  • Forward and open every port in the port table, on the router and in the host firewall or cloud security group.
  • Confirm DNS points to the machine’s current public IP.
  • Cannot forward ports at all (CGNAT, a router you do not control)? Put a VPS in front with a WireGuard tunnel.
  • The hostname in the Caddyfile must match the host of COMMUNITY_PUBLIC_URL, in both site blocks.
  • Ports 80 and 443 must be reachable from the internet so Let’s Encrypt can issue the certificate.
  • Using your own certificates? Check the mounted file paths and restart Caddy.

This happens on Offgrid on a bare IP address, with no domain. Let’s Encrypt will not issue for an IP, so Caddy uses its own certificate authority. Desktop and mobile ask you to confirm the fingerprint on first connect and then pin it, so a certificate that rotates behind their back reads as an attack and the connection is blocked.

  • Do not use a bare tls internal. The internal CA’s default certificate lives only 12 hours, so the app blocks the connection after the first renewal.

  • Give both the API block and the :7880 LiveKit block a long-lived certificate, and raise the intermediate’s lifetime in a global block at the top of the Caddyfile. A certificate may not outlive its intermediate, so both lifetimes have to be raised together:

    {
    pki {
    ca local {
    intermediate_lifetime 8760h
    }
    }
    }
    192.168.1.50 {
    tls {
    issuer internal {
    lifetime 2160h
    }
    }
    reverse_proxy community-server:9090
    }

    Repeat the same tls stanza in the 192.168.1.50:7880 block that proxies to livekit:7880.

  • The setup scripts write all of this for you. It only bites a hand-written Caddyfile.

  • Already pinned the short-lived certificate? Fix the Caddyfile, restart Caddy, then remove and re-add the server in the app so it pins the new one.

The web app cannot do this at all: browsers do not let a page decide certificate trust. A self-signed Offgrid server needs a manual browser exception, or is for desktop and mobile only.

  • Requests need a valid token in Authorization: Bearer .... A Cloud server has no login of its own: people sign in with their Tusile account. Only an Offgrid server (OFFGRID_MODE=true) has local accounts.
  • On Cloud, check CORE_SERVER_URL is right and the server can fetch /auth/jwk from it.
  • If registration with Tusile fails, check SERVER_TOKEN and that the host can reach the internet.

The app calls https://localhost (wrong address)

Section titled “The app calls https://localhost (wrong address)”
  • Apps connect to the address your server registered with Tusile, which is COMMUNITY_PUBLIC_URL at the moment the server starts.
  • Set COMMUNITY_PUBLIC_URL in .env to your real public URL, restart the community-server container, then reopen the app (or switch servers) so it fetches the address again.
  • Voice comes up minutes after text on a first run. That is expected while LiveKit waits for its TURN certificate; see First run takes a few minutes.
  • LiveKit keeps restarting. Read docker compose logs livekit. A webhook: block in livekit.prod.yaml whose api_key is not your LIVEKIT_API_KEY stops LiveKit from starting; fix the key or comment the block out again.
  • Voice connects but nobody hears anything. The UDP range 50000-50060 is not reachable, or LiveKit is advertising the wrong IP. Behind a tunnel or NAT, set node_ip and use_external_ip: false in livekit.prod.yaml, as in the tunnel steps.
  • Some people cannot hear others, or audio is one-way on join. Open 5349/tcp (TURN/TLS) and 3478/udp (TURN/UDP). Setup turns TURN/TLS on, but without a reachable relay, people on UDP-blocked or symmetric-NAT networks connect without receiving some participants’ audio.
  • Check that wss://your-domain:7880 is reachable through Caddy.
  • LiveKit takes its keys from .env (LIVEKIT_API_KEY and LIVEKIT_API_SECRET, passed as LIVEKIT_KEYS), not from the keys: block of livekit.prod.yaml. Change them in .env and run docker compose up -d.

Still stuck? Ask in the official Tusile community at app.tusile.com/j/tusile, or see Support.