In this section
On this page

This guide is for a capdag command that stopped with an error. Every error has the same three parts:

error: people.csv is not what this machine takes
  its inputs: doc (pdf)
hint: see what it can become: capdag plan people.csv
  • error: is the problem, in one sentence, naming the file, the step or the flag.
  • The indented lines say what was expected and what was found. A cartridge’s own message is shown here, as the cartridge said it.
  • hint: is the next command to type, or what to change.

The exit status says what kind of failure it was: 2 the command was not asked properly (an unknown command or flag, a missing value, a choice not made), 1 it could not do what it was asked, 3 a run completed but a step’s policy tolerated a failure, 130 a person stopped or aborted the run.

Under --json the same error is the last record on stdout: {"type":"error","problem":…,"context":[…],"hint":…,"exit":…}.

A name capdag does not know

error: there is no capability or machine file named 'pdf2text'
  did you mean pdf2png?
hint: find capabilities with: capdag caps pdf2text

Search by what the cap works on: capdag caps pdf, or by what it takes and gives: capdag caps --in pdf --out txt. A cap’s name typed as a command (capdag csv2json) is answered with how to run it: capdag run csv2json.

A cap given an option it does not have, or missing one it needs

error: 'summarize-en' needs an option it was not given
  --for <value> — The purpose the summary serves
hint: its options: capdag run summarize-en --help

capdag run <cap> --help lists the cap’s own options, with their defaults. An option the command line itself uses (-o, --force) can be given to the cap as --arg <name>=<value>.

A file the cap or machine does not take

error: disbind-pdf refused its input
  Failed to load PDF: format error
hint: see what disbind-pdf takes: capdag info disbind-pdf

The file is not the kind the step takes. capdag info <cap> says what it takes; capdag plan <file> says what the file can become, and which machines make it. When a machine has several inputs of one kind, say which a file is for: --input <name>=@<path>.

A file capdag cannot identify

error: capdag does not know what kind of file 'notes.xyz' is
  the fabric defines no media type for the extension .xyz
hint: name its input explicitly with --input <name>=@<path>, or report the missing type

capdag identifies a file by its extension and its content. Give the file its usual extension, or bind it to an input by name.

A cartridge that is not installed, or not reachable

A cap is provided by a cartridge. Bundled cartridges come with capdag; others are downloaded the first time a run needs them. That includes a cartridge that another cartridge calls: summarize-en, which is bundled, calls ggufcartridge to run its model, and the first run downloads ggufcartridge too. When that download cannot be made, the step that called it fails naming the cartridge:

error: summarize-en failed
  … ggufcartridge provides cap:…;llm-inference-constrained;… and is not installed, and installing it failed: …; install it with: capdag cartridge install ggufcartridge
hint: see which cartridge provides summarize-en, and whether it is installed: capdag info summarize-en
  • capdag info <cap> says which cartridge provides the cap and whether it is here.
  • capdag cartridge install <cap or id> downloads and verifies it now.
  • capdag cartridge list says what is bundled and installed, and any cartridge capdag refused, with the reason.
  • A run never uses an installed cartridge list refuses: it stops, naming the cartridge and why. One installed for another fabric manifest than this capdag reads is replaced with capdag cartridge remove <id> && capdag cartridge install <id>.

A model that is missing, or a spec that is wrong

A cap that runs a model downloads its default model the first time. To choose another, find one and download it before the run:

capdag model search qwen gguf
capdag model pull 'hf:unsloth/Qwen3-4B-Instruct-2507-GGUF?include=Qwen3-4B-Instruct-2507-Q4_K_M.gguf'

A spec is hf:<owner>/<repo>, optionally ?include=<file>; anything else is refused before anything runs.

No network

error: cannot reach fabric.capdag.com, and the fabric is not cached yet
hint: check the connection; once the fabric is cached, `capdag --offline` works without one

capdag reads its capabilities from the fabric and keeps a copy. Once it has one, --offline runs what is cached and bundled, and a command that needs the network says so rather than waiting for it.

A corrupt entry in the fabric cache

error: the fabric at fabric.capdag.com could not be opened
  Cache error: the cached cap ~/.cache/capdag/fabric.capdag.com/v13/caps/3f2a…/2.json is corrupt: EOF while parsing an object at line 40 column 0; remove the file, or run `capdag cache clear`
hint: try `capdag cache clear`, then run the command again

A file in the fabric cache is there but is not the entry its path names: cut short, edited, or holding another definition. capdag stops rather than treat it as missing. capdag cache clear empties the cache of the manifest version this capdag reads, without reading it first, and the next command fetches what it needs; removing the one file named does the same for that entry. The cache is described in the fabric cache on disk.

Results that could not be written

report.output.0.txt, not saved:
Quarterly report. Revenue rose by a tenth over the quarter.
✗ report.pdf  1 step · 1.5 s · failed
error: the run's results could not be written
  refusing to overwrite existing file "out/report.output.0.txt" (pass --force to allow)
  written to stdout instead: report.output.0.txt
hint: pass --force to overwrite them, or -o <dir> to write them elsewhere

A run made its results, and they could not be written where they were asked to be: a file of the same name is there and --force was not given, or the directory could not be written. Nothing the run made is thrown away, and the error says where each result went instead:

  • Text is written to stdout — under its name, on a terminal — so it is read there or piped on.
  • Anything else (an image, audio) is written to stdout when stdout is a pipe or a file; on a terminal, where its bytes would be noise, it is kept in a directory of its own and the error names it (kept instead: …).
  • Under --json every result is kept, and each kept file is named in an unsaved record.

What was written before the refusal stays written, and is listed as usual. The command exits 1.

error: the output directory 'notes.txt' is a file
hint: give -o a directory, or a path where one can be made

-o is checked before anything runs, so no run’s work is done for a directory its results cannot be written to. The command exits 2.

A choice that was not made

Without a terminal — in a script, a pipe or CI, or with --no-input — capdag asks nothing. A choice it would have offered is an error that names the flag and the values it takes:

error: 32 options for the machine, and none was chosen
  --pick 1  2 steps
  --pick 2  2 steps · runs a model
  …
hint: choose with --pick <value>

A failure that says nothing more

Run the command again with -v: capdag then shows what each cartridge said while it ran, and every URN behind the names. With -vv it shows the cartridges’ debug logs. If it fails the same way, report it with that output.