Skip to content

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:

Terminal window
hya --web-port 3251
hya --web-port 0 # Picks a free port; check /status to see the URL

Bun is required... or the TUI is not installed

  • If you copied only the hya binary out of ~/.local/bin to another folder without ~/.local/lib/hya and ~/.local/bundles, reinstall cleanly with hya update --force (or re-run the curl ... | sh installer).
  • 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:

Terminal window
# Background server (daemon) log
hya server logs -n 50 # Or: hya server logs -f
# TUI launcher & WebUI host log
tail -n 50 ~/.local/state/hya/hya.log

Background 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 run on the default DB? You don’t need to—just run hya and it attaches to the running daemon automatically, or pass a separate --db ./test.db.
  • Running hya --db ... exec --bare or --pure while a daemon owns that DB? A running daemon already loaded its full config, so --bare and --pure cannot piggyback on it. Pass --ephemeral (to run in memory), pass a different --db, or stop the daemon first with hya server stop.
  • Daemon hung during startup? Force-restart it:
    Terminal window
    hya server stop --force
    hya server start
    (Never delete <db>.runtime-owner.lock by 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:

Terminal window
hya server restart

Backend 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:

  1. Open /key in the TUI (or run hya provider list / hya doctor) to see whether any provider is configured and marked ready.
  2. If you edited ~/.config/hya/models.toml by hand, check for a [providers.<id>] table and run hya config validate. Reopen /model to reload the catalog (or run hya server restart).
  3. If you used api_key = "{env:ANTHROPIC_API_KEY}", verify echo "$ANTHROPIC_API_KEY" is non-empty in the shell before starting the daemon (or save the key permanently with printf '%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 allow rules in your user-local permissions.toml, or
  • Pass --yolo only 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:

Terminal window
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.net

Your laptop reached hya relay proxy, but couldn’t open a room to your workstation:

  1. On your workstation, check hya relay status. If disconnected, run hya relay connect <proxy-url>.
  2. 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 with hya relay link.
  3. Putting nginx, Caddy, or Cloudflare Tunnel in front of hya relay proxy? Run diagnostics to check whether HTTP/2 or WebSockets are being stripped:
    Terminal window
    hya relay doctor https://relay.example.com
    If your reverse proxy strips gRPC trailers, pass --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.exe window doesn’t support OSC 52 clipboard copy), or open http://localhost:3250 in your Windows browser.