Skip to content

Health and troubleshooting

Terminal window
rookery healthcheck

This works identically on Linux, macOS and Windows. It reports the version and build, whether filesystem confinement is active, the coder mode, and which optional tools are present. Only booleans and names — never paths or secrets — so it is safe to paste when asking for help.

In a container:

Terminal window
docker exec rookery rookery healthcheck

The same information is served, without a login, at GET /healthz — useful for checking an installation from another machine:

Terminal window
curl -s http://localhost:8899/healthz

Optional tools, and what you lose without them

Section titled “Optional tools, and what you lose without them”
Tool Missing means
python3 The safety check on generated agent scripts silently switches off.
rg (ripgrep) Knowledge base search falls back to a slower pure-Go scan.
pdftotext (poppler-utils) PDF text extraction is poorer, and scanned PDFs cannot be read at all — the same package provides pdftoppm, which OCR needs to turn pages into images.
tesseract No text from images, and no OCR for scanned PDFs.

The container image ships all four, so a healthy container reports no warnings.

Agents stopped using the browser after an upgrade

Section titled “Agents stopped using the browser after an upgrade”

The browser is installed for the Rookery release that installed it, and a later release can need a different version. rookery upgrade updates it for you; an upgrade through dnf or apt cannot, because the server is not allowed to write to your home directory. The server tells you instead: a startup warning, "browser_outdated": true in /healthz, and an inbox notice.

Terminal window
rookery browser install
systemctl --user restart rookery.service # Linux; restart the foreground server elsewhere

Scheduled agents stop when I close my terminal

Section titled “Scheduled agents stop when I close my terminal”

On Linux, lingering is not enabled. A systemd user service ends with your session:

Terminal window
sudo loginctl enable-linger "$USER"

The symptom is silence rather than an error, which is why this catches people out. rookery onboard enables lingering for you; an install set up by hand may not have it.

macOS and Windows have their own equivalents, and rookery service install registers them. macOS gets a launchd user agent and Windows a Task Scheduler logon task. Both start Rookery when you sign in — so unlike Linux with lingering, a machine that reboots with nobody signed in does not bring Rookery back until someone logs in. Enable automatic login for that account if you need it to recover on its own, or run the always-on installation on Linux.

Almost always ROOKERY_PUBLIC_URL. The provider redirects back to Rookery after you approve, and it must be an address the provider will accept — publicly resolvable, and matching the redirect address registered with them exactly.

A .lan hostname fails validation outright.

The coder fails immediately with an authentication error

Section titled “The coder fails immediately with an authentication error”

If the workspace uses OpenCode, this is usually a missing model rather than a bad login. OpenCode has no default model of its own; with none set it targets a provider you may not be signed in to. Set the model on the workspace.

Check the run log on the agent’s page. Either it deliberately stayed silent — which is a valid design and often the right one — or it produced nothing to send, in which case Rookery sends you a warning rather than staying quiet.

It is probably not bound to that connection. Connecting an account does not expose it to every agent. Open the agent’s page and check the connections list.

During a build an agent sees all of the workspace’s connections; once running it sees only what it is bound to.

It cannot be recovered. It is not compared against anything stored — it derives the key that decrypts that workspace’s secrets. Without it those values are unreadable by anyone.

The owner password is different: rookery owner reset-password -p '<new>' works offline with no login.

Not while that agent is running — the run is writing to it. Wait for the run to finish.

Run logs are in the knowledge base under agents/<id>/logs/, one file per run, timestamped and readable. They are also on the agent’s page.

Server logs go wherever the server is running:

Terminal window
journalctl --user -u rookery -n 100 --no-pager # Linux, systemd user service
docker logs rookery --tail 100 # container

On macOS and Windows there is no service to ask, so the logs are whatever rookery serve printed in its terminal. To keep them, redirect:

Terminal window
rookery serve > rookery.log 2>&1 # macOS
Terminal window
rookery serve *> rookery.log # Windows PowerShell

Include the /healthz output. It answers most of the first questions anyone would ask — version, platform, whether confinement is on, which tools are missing — and contains nothing sensitive.