Repository navigation
Troubleshooting
Problems by where they show up. Most commands print the reason on stderr and exit 1; read that line first.
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.
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 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.
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.
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.
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.
The change deletes steps or connections. Undo it, or make the change again and give a reason when asked.
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).
"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.
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.
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.
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.
The show --json file you passed belongs to another collection. Put it with the collection it came from.
The new version drops steps or connections. Run it again with --reason "why". pb.py delete always needs a
reason.
Another process (the canvas server or another agent) held the store's lock for too long. Run the command again.
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.
python playbook/pb.py check -w lists every warning; --rule NAME shows one rule. Each rule and its fix is in
Flows and nodes.
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.
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.
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".
The id before = must be a filter id exactly as qc.py filters prints it. Exit 2.
Give exactly one of --text-file and --text.
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.
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.
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.
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.
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.
Marking an entry deleted or removed, or logging --action delete, needs --reason "why".
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.
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.
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".
status, done, skip, finish and abandon need an open run.
Close each remaining step with done --note or skip --reason, then finish again.
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.
The machine can't reach the internet, or a proxy blocks it. On an offline machine, python scripts/doctor.py --no-network.
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.
Install Chrome or Chromium, or point AGENT_PLAYBOOK_CHROME at the binary.
The tool needs an optional module: python -m pip install Pillow numpy.
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.
The post bank file is missing. Create playbook/state/bank.tsv, or point --bank or AGENT_PLAYBOOK_BANK at
yours.
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.
Agent Playbook is released under the MIT licence. Source: github.com/RandyNorthrup/agent-playbook