toryo docs
Documentation navigation

Troubleshooting

Start with toryo doctor. Its 23 checks cover host tools, configuration, services, database access and migrations, models, licensing, and client registrations. Each failure includes a repair hint.

On Windows, run these commands inside Ubuntu on WSL2, not in PowerShell. If toryo is missing inside Ubuntu, follow the Linux CLI installation instructions in that same terminal, then open a new Ubuntu terminal so its PATH changes take effect. Entering Ubuntu or installing Board alone does not establish a working Linux CLI. If you selected another WSL2 distribution, use its terminal instead.

toryo doctor
toryo doctor --json

toryo will not start#

Run toryo license status. A never-activated install needs a trial or key; an expired trial needs a key; a revoked seat needs an administrator. Activation requires the email address bound to the key. See Licensing.

A job is queued, or a sequence is blocked#

toryo foreman check
toryo dispatch health
toryo sequence health
toryo sequence status <runId>

A queued dispatch job usually means Dispatch is not consuming. A sequence may also be waiting for an approval, a live question, or a dependency run. Board shows those questions on the run. A failed dependency does not release its dependents automatically.

Environment repair required on an older run means an acceptance command could not run at all: a missing tool (exit 127) or a timeout. Fix the tool so your login shell finds it, then Retry capability. The run's acceptance job is an ordinary dispatch job, so toryo dispatch list shows whether it is queued or running. Local acceptance explains consent and evidence.

A Claude or Codex job crashed with harness_lingered#

Claude or Codex ended its session but its process did not exit, so toryo stopped it after 30 seconds instead of waiting out the job's timeout. toryo dispatch status <id> shows the session's end reason and whether the model had produced any output. Retry the job; if it keeps happening, report it through Feedback.

Search is weak, or Ollama is unavailable#

Ollama is optional. When unavailable it does not make Foreman red, but semantic search falls back to keyword matching and global memory writes queue for review.

ollama list
ollama pull nomic-embed-text
ollama pull llama3.1

The embedding and judging models do different jobs; install both. Explicitly starting unavailable Ollama through Foreman fails with its installation remedy. When TORYO_OLLAMA_MODE is external, run the equivalent list or API check against TORYO_OLLAMA_HOST and confirm that host is reachable. Foreman only health-checks an external endpoint; model installation and service lifecycle remain with its operator.

An external host that is not answering is reported unavailable, not failed, and setup saves it with a warning instead of refusing.

A service or the supervisor is stale#

Stale code is not failed health. It means a healthy process predates the installed code. Restart it after active work drains. If Board shows a queued restart badge, Foreman will apply that service's restart once it is safe.

A restart that cannot reach quiescence changes nothing and exits 75. Retry later, or use --force only if interrupting the active work is intentional. An update uses the same safety principle but refuses a busy machine with exit 68.

A draining Dispatch is not killed even with --force; wait for its jobs to finish.

The supervisor can be stale too. toryo foreman check then says it is running code that changed since it started, and Board shows a supervisor: stale code chip. It normally restarts itself within a few minutes. If the chip stays, run toryo supervisor restart on macOS (not stop then start), or systemctl --user restart toryo-foreman-watch.service on Linux. The restart can bounce the services it launched, so pick a quiet moment.

An update did not finish installing#

If toryo update swapped the new release in but could not hand over to it, it exits 1 and prints:

toryo update: the new release is in place, but the update is not finished: <cause>
Finish it with: toryo update --complete --from <version>
If toryo itself will not start, re-run the installer's 'toryo setup'.

Run the command it names.

If the update got further but its last install step failed, it exits 1 with toryo update: finishing the install failed at <part>: <message>. The same state shows as Board's red install not finished chip, or as an install: line in toryo foreman check. Run toryo foreman restart to retry the step, and re-run toryo setup if that keeps failing. See Install not finished.

Upgrading pglite data to Postgres 18#

This applies to pglite installs only; Docker and external databases are unaffected. The embedded database engine in 1.4.0 is Postgres 18, which cannot open data that Postgres 17 wrote. So the first time the services start on 1.4.0, normally during the toryo update that installs it, each database is upgraded in place, one at a time. Each one prints:

pglite: <db> upgrading Postgres 17 → 18
pglite: <db> upgraded (<n> tables, <rows> rows; previous data kept at <path>)

A large database can take several minutes between those two lines with no other output. Let it run.

How long it takes#

Most installs finish well within a couple of minutes. One large install, measured on 2026-10-18 with about 50,000 memories across 15 databases, took about 100 seconds, and its dump step peaked at about 3.2 GB of memory.

The upgrade needs free disk of at least twice the size of the data being upgraded. With less, it stops with exit 1 before changing anything, and the next start tries again once you have freed space. The previous data is kept beside each database as data.pg17-bak until a later release removes it, so each database uses about twice its usual disk meanwhile.

If you interrupted it#

Ctrl-C, or any stop signal, leaves the database being upgraded unchanged on Postgres 17 and records no failure. The next start resumes the upgrade.

If you re-run toryo update while the database is down, it refuses with exit 68:

An update restarts the services, but quiescence cannot be established while local PGlite storage is down, and an earlier pglite upgrade is unfinished (<databases>).
Run 'toryo pglite up' to finish it (it can run for several minutes without output), then retry 'toryo update'.

Do what it says:

toryo pglite up
toryo update

If toryo pglite up itself exits 68, another upgrade is already running, for example one the supervisor resumed. Wait for it, then retry.

A toryo update that gets past that check with nothing new to download, but finds an unfinished upgrade, prints • an earlier pglite upgrade is unfinished (<databases>); restarting the services finishes it and its restart finishes the upgrade.

If it failed#

A failed upgrade leaves that database on Postgres 17 and records the failure in ~/.toryo/pglite/upgrade-failed.json. Until that record is cleared, toryo pglite up refuses with exit 1 and prints it, so restarting the services alone will not help. The toryo update during which it failed exits 69 and names it:

toryo update: the update is applied, but the services did not restart:
upgrading the pglite '<db>' database from Postgres 17 to 18 failed: <error>
Recorded in <path> at <time>; 'toryo pglite up' refuses to start while that file exists, so restarting the services again will not help.
Fix the cause, run 'toryo pglite upgrade' to retry the upgrade, then 'toryo-foreman restart'.

Re-running toryo update while the failure is recorded refuses with exit 68 and prints the same three lines after An update restarts the services, but local PGlite storage cannot start:.

Fix the cause the error names, then:

toryo pglite upgrade
toryo foreman restart

toryo pglite upgrade clears the record and retries, and toryo foreman restart is the toryo-foreman restart the message names. If it keeps failing, capture toryo doctor --json and the output of toryo pglite upgrade, and follow Feedback.

Foreman is green but reports schema drift#

toryo foreman check can be healthy while its schema field reports ok: false: an app database is missing migrations the installed binaries expect. Run the command in its fix, usually toryo <app> migrate, or toryo update when the migration files are themselves stale. The field refreshes about once a minute, or when you next run toryo foreman up.

If services read red while maintenance.held is true in toryo foreman check, Foreman is in the middle of starting or restarting the stack. Wait for it to finish before restarting anything yourself.

The database is unavailable or slow#

With Docker, confirm the daemon is running and port 5433 is reachable. With pglite there is no Docker daemon, but each database serializes queries through one backend session, so heavy parallel work can queue behind a long transaction. With TORYO_DATABASE_MODE=external, check TORYO_DATABASE_URL, network and TLS reachability, credentials, database-creation privileges, and permission to install vector. Foreman reports the connection health but does not restart an external server.

If pglite fails to start, the error names the databases that never came up and prints the server log from that attempt, and toryo stops the server it started before exiting. If the message says it could not stop it, run toryo pglite down before retrying. A first start can take a minute or two; it gives up only after 150 seconds without progress or 10 minutes in total.

Board cannot reach a command or worker session#

A packaged Board resolves installed commands and its multiplexer launcher from the installed toryo root. If the installed binaries are missing, run toryo setup. Use the Foreman screen to distinguish a CLI-resolution problem from a down service. To attach without Board, run toryo-dispatch terminal <jobId>, which prints the attach command for that job's worker: tmux attach -t <session> under tmux, hc attach <name> under herdr. Board's open terminal button attaches the same way. A worker in the default print execution mode shows an empty pane; see Watching agents.

A pull request never opens#

The coding sequence requires an authenticated GitHub CLI:

gh auth status
gh auth login

Nothing here matches#

Capture toryo doctor --json and follow Feedback.