Troubleshooting
Quick fixes for the most common issues when installing, starting, or connecting Hya.
Startup & UI issues
Running hya prints a banner and exits instead of opening the UI
Bare hya opens the TUI and WebUI only when both stdin and stdout are real interactive terminals. If you ran hya inside a script, cron job, or pipe (echo hi | hya), use hya exec "..." instead.
WebUI unavailable: port 3250 is in use
Another process (often a second hya window!) is already using port 3250. Your terminal TUI still works fine. To get a WebUI for this window too, pick another port or let Hya pick a free one:
hya --web-port 3251hya --web-port 0 # Picks a free port; check /status to see the URLBun is required... or the TUI is not installed
- If you copied only the
hyabinary out of~/.local/binto another folder without~/.local/lib/hyaand~/.local/bundles, reinstall cleanly withhya update --force(or re-run thecurl ... | shinstaller). - If you are running from a Git source checkout (
./target/debug/hya), install frontend dependencies once first:Terminal window (cd packages/hya-tui && bun install --frozen-lockfile)(cd packages/hya-tui-web && bun install --frozen-lockfile)
Where do I find Hya’s crash or error logs?
Run hya doctor for a quick health check, or inspect the log files directly:
# Background server (daemon) loghya server logs -n 50 # Or: hya server logs -f
# TUI launcher & WebUI host logtail -n 50 ~/.local/state/hya/hya.logBackground server & database lock issues
database ... is already in use (Exit code 75)
Only one Hya server can own a .db file at a time (<db>.runtime-owner.lock).
- Starting a second
hya server runon the default DB? You don’t need to—just runhyaand it attaches to the running daemon automatically, or pass a separate--db ./test.db. - Running
hya --db ... exec --bareor--purewhile a daemon owns that DB? A running daemon already loaded its full config, so--bareand--purecannot piggyback on it. Pass--ephemeral(to run in memory), pass a different--db, or stop the daemon first withhya server stop. - Daemon hung during startup? Force-restart it:
(Never delete
Terminal window hya server stop --forcehya server start<db>.runtime-owner.lockby hand—the OS kernel releases the lock automatically as soon as the process exits.)
backend 0.x ≠ tui 0.y · hya server restart
You updated hya, and the old background server is still running from before the update. Restart it—any open TUI windows will reconnect automatically:
hya server restartBackend stopped (hya server stop) · /reconnect starts it again
Someone ran hya server stop in another terminal. Type /reconnect inside the TUI (or run hya server start) to bring the server back up.
Model & Provider issues
Hya is stuck on hya/offline and just echoes my messages
No live model was found! Check:
- Open
/keyin the TUI (or runhya provider list/hya doctor) to see whether any provider is configured and markedready. - If you edited
~/.config/hya/models.tomlby hand, check for a[providers.<id>]table and runhya config validate. Reopen/modelto reload the catalog (or runhya server restart). - If you used
api_key = "{env:ANTHROPIC_API_KEY}", verifyecho "$ANTHROPIC_API_KEY"is non-empty in the shell before starting the daemon (or save the key permanently withprintf '%s\n' "$ANTHROPIC_API_KEY" | hya auth login anthropic --api-key-stdin).
unknown provider for model
The model ID you asked for isn’t listed under any configured provider. Run hya model list --refresh to pull the latest remote model list, then check hya model list for the exact provider/model spelling.
Edits or shell commands immediately fail in hya exec, hya goal, or hya loop
In non-interactive headless runs, there is no human at the keyboard to answer "Allow this command?" prompts—so any "ask" prompt is denied automatically for safety.
To let headless scripts edit files or run specific commands:
- Add explicit
allowrules in your user-localpermissions.toml, or - Pass
--yoloonly when running inside an isolated container or disposable environment.
Network, LAN & Remote Relay issues
403 permission_denied: Host "..." is not an allowed name
To block malicious websites from attacking your local Hya server through your browser (DNS rebinding), Hya accepts only localhost, 127.0.0.1, and [::1] by default—even if you bound 0.0.0.0:8080.
If you intentionally reach Hya over a LAN IP, Tailscale hostname, or reverse proxy, allow that hostname explicitly:
hya server run --bind 0.0.0.0:8080 --allow-host 192.168.1.20 --allow-host my-box.ts.net# Or on the background daemon:hya server restart --allow-host my-box.ts.net503 unavailable: remote backend is offline, or the relay link was rotated or is wrong
Your laptop reached hya relay proxy, but couldn’t open a room to your workstation:
- On your workstation, check
hya relay status. If disconnected, runhya relay connect <proxy-url>. - Did you run
hya relay rotate? Old links look identical to an offline machine so strangers can’t probe rooms. Grab the fresh link on your workstation withhya relay link. - Putting nginx, Caddy, or Cloudflare Tunnel in front of
hya relay proxy? Run diagnostics to check whether HTTP/2 or WebSockets are being stripped:If your reverse proxy strips gRPC trailers, passTerminal window hya relay doctor https://relay.example.com--transport ws(WebSocket) and it will work right through standard HTTPS proxies.
WSL 2 specific issues (Windows)
- Everything feels slow: Your repo is under
/mnt/c/...on the Windows filesystem. Move it into your Linux home folder (~/code/...) for 10x faster file reads and searches. - Copying text in the TUI doesn’t reach the Windows clipboard: Use Windows Terminal (the old
conhost.exewindow doesn’t support OSC 52 clipboard copy), or openhttp://localhost:3250in your Windows browser.