condensate

Troubleshooting

Find the failing part and fix it, starting from read-only checks.

On this page

Find the part that is failing before you restart anything, because a restart ends every running turn and can hide the cause. Most checks below only read state, through the runtime's HTTP API on 127.0.0.1:4741.

PartDefault addressCheck first
Dexhttp://127.0.0.1:5189Dex is running, and its CONDENSATE_AGENTS_URL points at the runtime
Runtimehttp://127.0.0.1:4741GET /health
Review hub (gt-review)http://127.0.0.1:4700GET /api/health, and Dex's CONDENSATE_HUB_URL points at it
Dojohttp://127.0.0.1:4800Dojo is running
Model providerOutside CondensateThe provider's error, recorded in the thread

If Dex loads but a section is empty, its message names the service that did not answer, and Dex's Box section shows which services are up.

Nothing seems to run

curl -i 'http://127.0.0.1:4741/health'
curl -i 'http://127.0.0.1:4741/live'
curl -i 'http://127.0.0.1:4741/threads?limit=5'

/health returns the build commit and any open memory alert, and /live lists the threads that are running now.

A short thread list is often correct. GET /threads returns 50 threads at a time, so follow nextAfter while hasMore is true. Archived threads are hidden unless you pass archived=all, and finished reviewer and fixer agents unless you pass seats=all.

A turn fails

Read the thread's events with GET /threads/:id/tail. Each failure carries a class that says what went wrong.

ClassWhat it meansWhat to do
quotaThe account's allowance is spentWait for it to reset, or add an account
authThe login is missing, expired or revokedSign in again for that engine
model-not-foundNo catalog has that model idFix the id. The runtime doesn't try another model, because that would hide a typo
unsupported-modelThe provider refuses this model for this loginChoose another model
engine-unavailableThe engine can't run here, for example the Codex CLI is missing or is not version 0.160.0GET /accounts lists each engine with the version found and the version needed. Install that release, or point CONDENSATE_CODEX_BIN at it
toolA tool server would not connectFix the tool server
permissionA permission rule refused the actionAnswer the approval, or change the policy
sessionThe message reached a session in the wrong state, such as a closed oneCheck the thread's state before you resend
interruptedThe turn was stoppedSend the message again if you still want the work
stalledClaude Code ended a turn after a tool result without answering itThe runtime continues the session for you
unknownAnything else, including a real bugRead the error text and report it

Each failure also has a cause, failureCause on the failure message, which tells a real failure from one somebody meant. aborted-by-operator means a person or a program stopped it, replaced means its agent was swapped, timeout means the engine went silent too long, and model-error means the provider refused or failed. GET /incidents groups the last 24 hours of failed turns by class and message, so you can see what keeps repeating.

The credential proxy is on by default, so an auth failure can also mean the proxy can't reach the provider. Check CONDENSATE_PROXY_URL and CONDENSATE_PROXY_CA in the runtime's environment, and that the proxy is running.

Turns lost to a restart

A restart ends any turn that was running. When the runtime starts again it adds a message to each of those threads that begins This turn was lost to a host restart. Nothing retries the turn, so press Resume or send a new message to run it again.

Streaming pauses

GET /threads/:id/stream sends live text only and replays nothing, so a reader that falls behind loses frames. To fill a gap, read GET /threads/:id/tail?after=<last seq>, or use follow, which resumes from a cursor. A 429 stream-cap means the thread already has as many stream readers as it allows, so close idle tabs.

An idle stream sends a heartbeat every 15 seconds. A proxy in front of the runtime that buffers responses or closes idle connections looks like a stall, so make sure it keeps the cache-control: no-cache, no-transform and x-accel-buffering: no headers the runtime sends.

When a long thread keeps shrinking its context, or refuses to, the thread's log has a window event for each step and the reason for any refusal. Context windows and memory explains them.

Work is refused

Status and codeCauseWhat to do
503 drainingThe runtime is getting ready to restart. New spawns and messages are refused, while reads, interrupts and approvals still workRetry after retry-after. If a restart never happened, curl -X DELETE http://127.0.0.1:4741/drain cancels the drain. A 409 means a program owns it, and GET /drain names the owner
503 spawns-pausedThe data volume is nearly out of disk spaceFree disk, then POST /keeper/spawn-pause/clear
409 thread-degradedAn earlier event could not be saved, so the log has a gap and the thread refuses new turnsFix the cause, then POST /threads/:id/recover with {"acknowledgeHistoryGap": true, "reason": "..."}. The missing history stays missing
429 session-capThe runtime is running as many sessions as it allowsRetry after retry-after

Back up the runtime

The runtime keeps its state in CONDENSATE_AGENTS_DATA_DIR, by default ~/.condensate/agents-host. The main file is threads.db, a SQLite database in WAL mode, so copying the file alone while the runtime runs is not a complete backup. Use SQLite's own backup instead, and copy blobs/ beside it, which holds event bodies over 64 KiB.

sqlite3 ~/.condensate/agents-host/threads.db ".backup '/path/to/backup/threads.db'"