Troubleshooting

Diagnose common installation, Cloudflare Tunnel, QR pairing, encryption passphrase, and sync conflict issues.

1. Bootstrap Installer Errors

  • "Root privileges are required": Pipe into sudo bash, not plain bash: curl -fsSL https://synora.codesec.me/install.sh | sudo bash.
  • "Unsupported operating system": Synora targets Ubuntu 22.04 LTS and 24.04 LTS. If testing on another Ubuntu/Debian derivative at your own risk, pass --allow-unsupported-os.
  • "Existing installation detected": By default install.sh refuses to overwrite /opt/synora without confirmation. Confirm interactively or pass --confirm-existing to update repository code while preserving .env and data/.

2. Server & Cloudflare Tunnel Issues

Check Container Health and Logs

# For Lite Mode (or replace lite with standard)
cd /opt/synora/deployment/lite
sudo docker compose ps
sudo docker compose logs --tail=100 api
sudo docker compose logs --tail=100 cloudflared-quick

Quick Tunnel URL Missing or Changed

If installer/install.sh timed out waiting for Quick Tunnel, wait 15–30 seconds and run:

sudo docker compose -f /opt/synora/deployment/lite/docker-compose.yml logs cloudflared-quick | grep trycloudflare.com

Remember that Quick Tunnel URLs change if the container is recreated. For a permanent URL, configure a Permanent Cloudflare Tunnel.

Port 80/443 Conflicts (Caddy Profile)

Caddy requires ports 80 and 443 to be free on the VPS. Check listeners with sudo ss -ltnp | grep -E ':(80|443)' and stop conflicting web servers before starting the caddy profile.

3. Recovering Your Setup Key

To inspect your SYNORA_API_KEY on the server:

sudo grep SYNORA_API_KEY /opt/synora/deployment/lite/.env
# or for Standard Mode:
sudo grep SYNORA_API_KEY /opt/synora/deployment/standard/.env

4. QR Pairing & E2EE Passphrase Errors

  • Expired or used code: Pairing codes expire after 5 minutes (300s) and are single-use. Generate a fresh QR code in Obsidian or with sudo bash /opt/synora/installer/pair.sh.
  • "Too many failed setup attempts" (HTTP 429): Rate limiting blocks after 15 failed attempts in 60 seconds; wait 60 seconds and try again.
  • "Incorrect vault encryption passphrase": The passphrase failed local verification against keyCheck. Double-check keyboard layout/caps lock; passphrases are case-sensitive and cannot be reset server-side.

5. Sync Status, Diagnostics & Conflicts

  • Inspect sanitized diagnostics: Open Settings → Synora → Sync diagnostics in Obsidian to view recent sync phases, queue depth, and errors (tokens and note contents are never logged).
  • Device shows "Revoked": Another device revoked this device's token (WS close code 4001). Disconnect and pair again as a new device.
  • Resolving .conflict- files: When two devices modify the same file concurrently, Synora saves the local version as <name>.conflict-<timestamp>-<device>.<ext>. Run Synora: Review sync conflicts from the command palette to compare, keep, or discard conflict copies.