Before you start
- First locate which side the symptom is on: a message on the phone/browser, or a server startup failure / API error.
- Exact error strings (like
https is required for api requests) make the best search keywords — more precise than describing the symptom. - For server problems, read the container log first: the first line of
docker compose logs novara-syncis often the answer.
Phone / browser side
| Symptom | Cause | Fix |
|---|---|---|
| "this browser does not support the required encryption capability" | Not a secure context: plain HTTP, or a self-signed certificate the phone does not trust | Use HTTPS; self-signed requires installing the CA and enabling full trust (most often missed on iOS) |
| "incomplete link" | The URL has no #s=<spaceId> fragment | Use the full link copied by the desktop; launching from a home-screen icon also shows this — a known limitation |
| "token invalid or revoked" | Copied wrong, regenerated, or revoked | Copy it again; I/L→1 and O→0 fold automatically — no manual fixing needed |
| "incorrect passphrase" | What you typed is not that password | It is the Novara unlock password that wraps the space key — the same one "view space key" on the desktop asks for |
| Unlock keeps hitting 429 rate limiting | Too many failures for this space within the window (1 minute, threshold 10) | Wait a minute and retry; it is rate limiting, not a credential error — do not hammer retries |
The link opens onto 127.0.0.1 | The proxy did not forward X-Forwarded-Proto/Host | Use the repo's Caddyfile; for a cross-machine proxy, add its IP to NOVARA_SYNC_TRUSTED_PROXIES |
| The phone opens but spins forever | Server down / tunnel broken / DNS changed | Confirm the server process first, then the tunnel |
| Cannot install the PWA / manifest errors | The proxy rewrote the application/manifest+json MIME type | Use the repo's Caddyfile; or run python Tools/web_selfcheck.py to locate it |
| Service Worker not registered | sw.js MIME is not JavaScript, or a missing viewer.js makes cache.addAll fail as a whole | Same as above |
Server / API side
| Symptom | Cause | Fix |
|---|---|---|
/api always 403, exact error https is required for api requests | The request does not look like HTTPS to the server: the proxy did not send X-Forwarded-Proto, a cross-machine proxy is not in NOVARA_SYNC_TRUSTED_PROXIES, or the plaintext port is exposed to the network | Add the protocol header / register the proxy IP / never expose the plaintext port |
Exits at startup with refusing to start + the data directory cannot be written | Wrong owner on the bind-mounted ./data (the container runs as uid 1654) | Run sudo chown -R 1654:1654 ./data as the error says, or switch to a named volume |
Exits at startup with refusing to start + the web root | NOVARA_SYNC_WEB_ROOT points at a location containing the data directory, or the site tree has junctions / symlinks — static serving would expose the ciphertext vault | Point the web root at a pure site directory, or move the data directory out of it; bring external content into the site directory instead of linking |
409 version_conflict | Both sides edited; the upload's base version is stale | Normal mechanism: export both versions / take the cloud / explicit force overwrite as prompted. Not an error state — do not rush to "fix" it |
507 quota_exceeded | The space quota (500 MiB by default) is used up | The body carries usedBytes / limitBytes; delete old versions or raise NOVARA_SYNC_QUOTA_BYTES |
413 payload_too_large | A single upload exceeded the 64 MiB cap | Raise NOVARA_SYNC_MAX_PAYLOAD_BYTES if the data is legitimately that large |
401 unauthenticated | The token is invalid or revoked | Reissue the device or read-only token; distinguish from 429 — 429 is rate limiting, 401 is a credential problem |
Direct http://host:5180/healthz returns 400 | Host filtering is working: Host: host:5180 is not on the allow list | Expected behavior. Health checks run inside the container; from the host, probe with -H "Host: your-domain" |
docker compose up says Address already in use | The fixed IP is taken (dynamic allocation walks upward from low addresses) | docker compose down then retry; if it recurs, change the subnet and update Caddy's ipv4_address and NOVARA_SYNC_TRUSTED_PROXIES together |
Container stuck starting / unhealthy | The data directory is unwritable or the port is taken; a multi-entry custom ALLOWED_HOSTS must list the hostname first | docker compose logs novara-sync — read the first line |
| Caddy cannot obtain certificates | Port 80 does not reach this machine, or the domain's A record is wrong | docker compose logs caddy; confirm both 80/443 are reachable |
docker compose up says set NOVARA_DOMAIN in .env | .env missing or unfilled | cp .env.example .env and fill NOVARA_DOMAIN |
Desktop side
| Symptom | Cause | Fix |
|---|---|---|
| Paired but sync does not move | The sync master switch is off | Turn it on; or click "Sync now" for a manual round |
| Forgot the space key | The server holds only ciphertext | "View space key" on the device that created it, or import a .novakey backup |
| A device was lost | — | Revoke it in the device center; revocation immediately cuts its sync and read access |
| Sync paused while locked | No network while locked is a hard rule | Normal; it resumes automatically after unlocking |