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.
The server does not start
Section titled “The server does not start”- 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 whenSTORAGE_BACKEND=s3. required variable LIVEKIT_API_KEY is missing a valuefrom Compose itself means.envhas no LiveKit key pair. See set your LiveKit keys.- On Cloud, the server has to reach
CORE_SERVER_URLat 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.
Cannot connect from the internet
Section titled “Cannot connect from the internet”- 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.
TLS or domain errors
Section titled “TLS or domain errors”- The hostname in the
Caddyfilemust match the host ofCOMMUNITY_PUBLIC_URL, in both site blocks. - Ports
80and443must 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.
App says the certificate changed
Section titled “App says the certificate changed”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
:7880LiveKit block a long-lived certificate, and raise the intermediate’s lifetime in a global block at the top of theCaddyfile. 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
tlsstanza in the192.168.1.50:7880block that proxies tolivekit: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.
Sign-in fails
Section titled “Sign-in fails”- 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_URLis right and the server can fetch/auth/jwkfrom it. - If registration with Tusile fails, check
SERVER_TOKENand 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_URLat the moment the server starts. - Set
COMMUNITY_PUBLIC_URLin.envto your real public URL, restart the community-server container, then reopen the app (or switch servers) so it fetches the address again.
Voice or video does not work
Section titled “Voice or video does not work”- 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. Awebhook:block inlivekit.prod.yamlwhoseapi_keyis not yourLIVEKIT_API_KEYstops LiveKit from starting; fix the key or comment the block out again. - Voice connects but nobody hears anything. The UDP range
50000-50060is not reachable, or LiveKit is advertising the wrong IP. Behind a tunnel or NAT, setnode_ipanduse_external_ip: falseinlivekit.prod.yaml, as in the tunnel steps. - Some people cannot hear others, or audio is one-way on join. Open
5349/tcp(TURN/TLS) and3478/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:7880is reachable through Caddy. - LiveKit takes its keys from
.env(LIVEKIT_API_KEYandLIVEKIT_API_SECRET, passed asLIVEKIT_KEYS), not from thekeys:block oflivekit.prod.yaml. Change them in.envand rundocker compose up -d.
Still stuck? Ask in the official Tusile community at app.tusile.com/j/tusile, or see Support.