Operations

Troubleshooting

Run Loom Doctor checks, export redacted diagnostic bundles, and resolve authentication, GPU engine, node pairing, and voice issues.

When something stops responding as expected, inspect Loom's built-in diagnostics before digging through system logs.

Loom Doctor and redacted diagnostic bundles

Open Settings → About (or query the authenticated Doctor endpoints directly) to run non-destructive checks with a 5-second deadline per check:

  • GET /api/doctor / POST /api/doctor/run: Observes core (core.version, core.data_writable, core.disk_space), security (security.password, security.lan, security.push_https, security.vault, security.tokens_age), engine.reachable, machine.<id>, mcp.<server>, brain.primary_writable, voice.*, and notifications.* without ever starting engines, loading models, or sending prompts.
  • Degraded capability badges: When a backend or node fails health checks, Loom records {capability, reason, since} and emits capability.degraded / capability.restored events without breaking unrelated workspaces.
  • Redacted support bundle (POST /api/doctor/bundle): Downloads loom-diagnostics.zip containing versions.json, doctor.json, compatibility.json, failed-probes.json, sanitized config.json, event types, and severity-only tails of logs/engine.log, logs/node.log, logs/build.log, and logs/agents.log along with manifest.json. Databases, prompts, Brain notes, environment variables, and secrets are strictly excluded.

Inspect resolved paths and live service logs locally with:

loom where
loom status
loom logs

Authentication, reverse proxy, and HTTPS

  • Forgot password or locked out: Run loom password on the Loom host to set a new 12+ character password and revoke old browser cookies without restarting loom-ui.
  • 401 or 403 behind Caddy or Nginx: Confirm the reverse proxy preserves the original Host header, set LOOM_TRUST_PROXY=1 and LOOM_COOKIE_SECURE=1 in the loom-ui environment if TLS terminates at a loopback proxy, and reload loom-ui.
  • Microphone or Web Push blocked in browser: Browsers block getUserMedia and Push APIs on plain HTTP origins other than localhost. Enable Loom's HTTPS listener on port 2543 (POST /api/https) or serve Loom behind a TLS reverse proxy.

Local engines (llama.cpp and vLLM)

  • GPU not detected after driver update or directory move: Loom verifies hardware directly via llama-server --list-devices. Trigger a clean rebuild from Settings → Engines → Rebuild (POST /api/llamacpp/update with {"clean":true}) or run loom llamacpp update.
  • llama-server fails to start immediately: Run loom status and loom logs (or journalctl -u loom-engine -n 100) to check whether the model path exists, VRAM is already occupied, or an unsupported flag is set in the active preset.
  • vLLM installation fails on Linux: Confirm host NVIDIA CUDA or AMD ROCm drivers work (nvidia-smi or rocminfo), and verify uv is installed in PATH when targeting AMD ROCm.

Paired nodes, Codeman, and voice

  • Node pairing code expired or rejected: Pairing codes expire after 10 minutes or 5 failed attempts. Generate a fresh code on the node host without restarting it:
~/.local/lib/loom-node/loom node pair
  • Main Loom cannot reach paired node: Verify systemctl --user status loom-node on the node host, confirm port 2511/tcp (and 2512/udp for LAN discovery) is allowed through the firewall (sudo ufw allow 2511/tcp), and enable linger (loginctl enable-linger <user>) if the node stops after SSH logout.
  • Remote Codeman returns host or origin errors: Add Loom's reverse-proxy or host name to CODEMAN_ALLOWED_HOSTS on the Codeman server and verify codeman is reachable on its configured port.
  • Local voice install refuses or fails: Voice requires Python 3 on the target host and refuses any sherpa-onnx asset lacking a pinned SHA-256 digest. Check voice.* rows in Doctor for missing models or stopped worker status.

Before opening a public issue on GitHub, attach only a freshly generated loom-diagnostics.zip bundle and never paste raw .env files, API keys, cookie headers, or Second Brain contents.