Skip to content

Troubleshooting

Randy Northrup edited this page Nov 19, 2026 · 1 revision

Troubleshooting

Problems by where they show up. Most commands print the reason on stderr and exit 1; read that line first.

The canvas

"The skill server isn't running"

The page loaded but can't reach its server. Start it with the shortcut or python playbook/launch.pyw. If it still doesn't start, look at playbook/server.log.

"Port 47321 is in use by another program, so the playbook canvas cannot start there"

launch.pyw first checks whether the playbook's own server answers on the port; if it does, it just opens the page. This message means some other program holds the port. Close it, or use another port: python playbook/launch.pyw --port 47400, or set AGENT_PLAYBOOK_PORT. (Run directly, server.py says "cannot listen on 127.0.0.1:47321 ... Is the playbook already open, or is another program using the port?")

When the launcher has no console (the shortcut on Windows), it shows these messages in a message box.

"The playbook server stopped at once" or "did not start on port N"

The server process exited, or didn't answer within 8 seconds. The message ends with the last line of playbook/server.log. Run the server in the foreground to see the whole error: python playbook/server.py.

The canvas opens a different playbook than the one I'm editing

A server already running on the port belongs to whichever copy started it, and launch.pyw reopens it. Stop that server (below), or start your copy on another port with --port.

Stopping the server

There is no stop command. Stop the server.py process: on Windows find pythonw.exe (or python.exe) running server.py in Task Manager; on macOS and Linux, pkill -f playbook/server.py. A server started with python playbook/server.py in a terminal stops with Ctrl+C.

"Not saved: reload the page"

The server didn't accept this window's token, usually because the server restarted. Reload the page and make the change again.

"“Name” was changed outside this window. The newer version is loaded; your last change to it was not saved."

An agent (or another browser window) saved the same document after you loaded it. Nothing was overwritten. Look at the newer version and make your change again. See The canvas.

"Not saved: needs a reason"

The change deletes steps or connections. Undo it, or make the change again and give a reason when asked.

"N documents have a problem. Run “python pb.py check” to see what."

A file in the store breaks the schema or can't be read (often after a hand edit or a bad merge). Run python playbook/pb.py check, fix what it names, or restore a version (pb.py versions, pb.py restore).

"Couldn't open that. Copy the path instead."

"Open in the file manager" only opens a path that exists on this machine, and never a network share. ~ means your home folder and a relative path is read from the skill folder, so check the path with python playbook/pb.py check --paths: it lists every folder that isn't there. Fix the folder's path, or create the folder.

History says "History needs the skill server"

You opened a read-only export (playbook.html with store.json). History reads the audit log through the server; open the canvas with launch.pyw instead.

The browser asks me to confirm when I close the tab

A change hasn't reached the server yet (it is saving, or the server isn't answering). Stay on the page until the status line says "Saved to the skill", or start the server again; the page sends the change when it's back.

pb.py

"not saved: flows/x changed since revision A; it is now B. Read it again and redo the change"

Someone saved the flow after you read it (often the owner, on the canvas), or you put the same show --json file twice: its rev is the revision you read, which is now out of date. Run pb.py show <flow> --json again, redo your change on the new version, and put that. Never work around this with an old or forged --base: you would overwrite the owner's edit.

"... is the output of show --json for flows/x, not accounts"

The show --json file you passed belongs to another collection. Put it with the collection it came from.

"A reason is required. It removes: ..."

The new version drops steps or connections. Run it again with --reason "why". pb.py delete always needs a reason.

"not saved: the playbook is busy (another process has held its lock ...); try again"

Another process (the canvas server or another agent) held the store's lock for too long. Run the command again.

"warning: N reference(s) left pointing at ..." after a delete, and dangling-ref in check

pb.py delete removes only the document, then names everything that still points at it. Edit or remove each reference it named (pb.py check lists them again as dangling-ref). Deleting a folder, a part or an account on the canvas cleans up its references for you.

check --strict fails on warnings I don't understand

python playbook/pb.py check -w lists every warning; --rule NAME shows one rule. Each rule and its fix is in Flows and nodes.

check reports qc-selftest errors after I edited lists.json

A filter's bad example relied on a name you removed (the demo app, a competitor, an ignored handle). Update that filter's examples in qc/filters.json. See QC gate.

check counts folders "not on this machine"

Informational only; it never fails the check. --paths lists them. ~ is your home folder and a relative path is read from the skill folder; the demo's ~/AcmeNotes/... folders don't exist until you point them at real ones.

qc.py

"a reply needs --target (the link it answers) and its author"

Give the link being answered with --target. On X, Bluesky, Threads and Instagram the author is read from the link; elsewhere add --target-author "Name".

"--ok X: no filter has that id"

The id before = must be a filter id exactly as qc.py filters prints it. Exit 2.

"give the draft with --text-file (or --text), once"

Give exactly one of --text-file and --text.

audit.py

"no QC receipt for this text on X @handle in the last 72 hours"

The words you're logging don't match any passing check for that platform and account. Common causes: the text changed after the check (even one word), a different spelling of the account (@Handle vs handle) or platform, or the check was more than 72 hours ago. Check the exact text you sent, then log it with --text-file pointing at the same file.

"QC blocked this text (qc-...)"

The newest receipt for these words is a block. Fix the draft and check again, or answer its ASKs with --ok. --override "why" logs it anyway and the run report lists it.

"--account '@x' isn't in the accounts registry for X"

Use the handle exactly as python playbook/pb.py accounts X prints it (handles and labels both work). If the account really is yours and new, add it to the registry first.

"--account '@x' is marked retired in the accounts registry for X: nothing goes out from it"

The account's status is retired or skip, so audit.py add, audit.py gap and the QC account-registry filter refuse it. Use another account, or change its status on the canvas if it is back in use. add --force logs a send that really did go out from it.

"already logged as ..."

The same platform, account and action already has this link, or the same text within 24 hours. Use --force only if it really is a different send.

"a reason is required to ..."

Marking an entry deleted or removed, or logging --action delete, needs --reason "why".

"pace flag: sent 12 s after the previous reply"

Not an error: the send came sooner than the spacing rules allow, and it is recorded on the entry. Explain it in the report. If you are logging a batch after the fact, pass --at with each real send time.

"the audit log is busy (another process holds its lock); try again"

Another process held the log's lock for more than 20 seconds. Run the command again. Lock files left behind by a crashed process are harmless: the operating system releases the lock when the process ends.

run.py

"a reply run is still open (...): finish or abandon it first"

Only one run is open at a time. python scripts/run.py status shows it; finish it, or python scripts/run.py abandon --reason "why".

"no open run: start one with run.py start --recipe "

status, done, skip, finish and abandon need an open run.

"not finished: N step(s) still todo"

Close each remaining step with done --note or skip --reason, then finish again.

The agent won't stop: the Stop hook keeps blocking

run.py check exits 2 while a run has open steps. The agent should finish the steps, skip them with reasons, or abandon the run with a reason. See Recipes and run checklists.

Scripts and media tools

doctor.py fails "Bluesky public API"

The machine can't reach the internet, or a proxy blocks it. On an offline machine, python scripts/doctor.py --no-network.

A script fails on a network error

Scripts that read public APIs retry a rate limit (HTTP 429), a server error (5xx), a timeout or a dropped connection up to twice, waiting a few seconds or the server's Retry-After when it asks for 15 seconds or less. If it still fails, the service is down or limiting you: wait and run it again. li_search.py exits 1 when LinkedIn answers with a login page instead of results.

"Google Chrome ... not found"

Install Chrome or Chromium, or point AGENT_PLAYBOOK_CHROME at the binary.

Exit 3: "needs PIL: pip install Pillow"

The tool needs an optional module: python -m pip install Pillow numpy.

image_gen.py or quota.py exits 1 about the quota

The weekly Codex limit is too high, or there is no recent reading. Run any codex command once to refresh the reading, wait for the limit to reset, or pass --no-quota for a single image if you accept the cost.

"can't read .../bank.tsv"

The post bank file is missing. Create playbook/state/bank.tsv, or point --bank or AGENT_PLAYBOOK_BANK at yours.

Still stuck

Open an issue on the repository with the command you ran, its full output, your OS and Python version, and the output of python scripts/doctor.py. Remove handles and post text you don't want public first.

Clone this wiki locally