Troubleshoot doctor#

ljos doctor prints the rows that need action, then a summary line. Each row is no, warn or info, then the name, then the state. Exit 1 when a no row is a required part, the pack, the note queue, or a tracker root that is missing or not writable. A warn row does not change the exit code. These blocks copy the lines that command printed. The home in them is /tmp/seat, except the Model Context Protocol (MCP) blocks, which used /tmp/seat-probe. When the registry answers, a missing program that install.sh does not install names that version. These blocks do not pin one.

The pack writer#

A checkout that had only ljos and ljos-mcp on PATH printed these pack rows and this summary. The other missing siblings, vissue, deedar and claimdag, used the same shape, not on PATH, then the release install command. Any other missing program names cargo install --locked and the crate name, and when the registry answers, that row also names that version. Exit 1.

$ ljos doctor
no  packset not on PATH, so run `curl -fsSLO https://github.com/leidarljos/ljos/releases/latest/download/install.sh && sh install.sh`.
no  packsetd    not on PATH, so run `curl -fsSLO https://github.com/leidarljos/ljos/releases/latest/download/install.sh && sh install.sh`.
no  memory  http://127.0.0.1:8761 does not answer. no pack writer is answering and packset is not on PATH, so run `cargo install --locked packset`.
ljos is not ready: ljos-policyd, vissue, deedar, claimdag, packset, packsetd and memory do not answer. Optional extras: `ljos doctor --all`.

The next command is curl -fsSLO https://github.com/leidarljos/ljos/releases/latest/download/install.sh && sh install.sh. That installs packset and packsetd with the other siblings. The memory row still names cargo install --locked packset.

With packset on PATH and nothing listening, a home that is not a temporary directory printed:

no  memory  http://127.0.0.1:8761 does not answer. no pack writer is answering on 127.0.0.1:8761, so run `ljos doctor --fix`.

That one command starts the writer. ljos doctor --fix runs packset ensure itself, and prints one line that says it did.

Under a temporary home the command guard is off. Memory is off there unless PACKSET_URL names a writer or a writer port is set, and ljos doctor --fix does not start one. The home was /tmp/seat. The printed row is one line, and ljos search and ljos consensus print that same line and exit 1:

no  memory  memory and the command guard are off because the home is under /tmp (/tmp/seat); set HOME to a directory outside /tmp

The first-run tests in crates/ljos-cli/tests/first_run.rs build a seat home, so they hit this row when the seat sits in a temporary directory. A checkout under /tmp or /var/tmp used to put the seat next to it, and the three tests that run a whole seat failed on that row. The seat now goes beside the checkout when that place is outside every temporary root and has no git checkout above it. Otherwise it goes under ~/.cache/ljos-test-seats. When neither place fits, the test prints one line that says so and stops, or fails with that line when LJOS_TEST_REQUIRE_TOOLS=1.

A packsetd already listening on the asked port for another home, or with another token, is not this seat’s writer. A writer whose pack home is the directory PACKSET_HOME names is this seat’s, even when its process home is that directory. /health can still answer, and a later ljos send or ljos consensus is refused. The memory row is no and ljos doctor exits 1. The row names set PACKSET_PORT for another home, or packset stop && packset ensure for another token.

No seat#

With no LJOS_SEAT, no --seat, and no seat record, the short doctor prints:

warn    seat source no seat is set; reads use every seat, so run `export LJOS_SEAT=NAME`.

The row is a warning. It does not by itself exit 1. ljos seat prints seat and holder as none, names LJOS_SEAT and exits 0.

The tracker#

With vissue installed and no tracker configured, the row is info and this failure does not by itself exit 1:

info    tickets no tracker at /tmp/seat/.local/share/vissue/tracker, so run `ljos onboard`.

The row names the directory ljos onboard makes, the way the deeds row names its store. It does not print vissue’s refusal, which names the directory you were in. Ticket reads such as ljos show ID print the same one-line ljos onboard fix when no tracker is configured.

VISSUE_ROOT pointing at a directory that is not there fails the doctor. The summary names the tracker, and the row is:

no  tickets vissue 0.24.1 root=/tmp/seat/no-such-tracker prefix=Software from VISSUE_ROOT=/tmp/seat/no-such-tracker; root is not a directory. `mkdir -p /tmp/seat/no-such-tracker/Software` creates it

A tracker directory this account cannot write fails the same way:

no  tickets vissue 0.24.1 root=/tmp/seat/tracker prefix=Software from VISSUE_ROOT=/tmp/seat/tracker; /tmp/seat/tracker is not writable. `chmod u+w /tmp/seat/tracker` lets this account file tickets

A stale config is a vissue/config.toml that names a missing directory. The printed row is:

no  tickets vissue 0.24.1 root=/tmp/seat/old-tracker prefix=Software from seat config or working directory; /tmp/seat/.config/vissue/config.toml names /tmp/seat/old-tracker, which is not a directory. `mkdir -p /tmp/seat/old-tracker/Software` creates it

A tracker write waits for another seat’s commit lock, which a push keeps until git exits, for LJOS_TRACKER_LOCK_WAIT seconds (20 when unset). A wall budget, such as a hook’s, a sitting’s or a claim’s, or a tool budget that ends sooner cuts that wait short. Only a lock that is still taken after that wait leaves the write on disk, with a line that says how long the write waited and that the commit is deferred to the next write or push. When a budget cut the wait short, the line names that budget and the LJOS_TRACKER_LOCK_WAIT it fell short of.

A missing habitat binary#

deedar, vissue and claimdag not on PATH printed:

no  deedar  not on PATH, so run `curl -fsSLO https://github.com/leidarljos/ljos/releases/latest/download/install.sh && sh install.sh`.
info    tickets vissue not on PATH, so run `curl -fsSLO https://github.com/leidarljos/ljos/releases/latest/download/install.sh && sh install.sh`.
no  claim graph claimdag not on PATH, so run `curl -fsSLO https://github.com/leidarljos/ljos/releases/latest/download/install.sh && sh install.sh`.

ljos doctor --all also prints the deeds row, which names the same install:

info    deeds   deedar not on PATH, so run `curl -fsSLO https://github.com/leidarljos/ljos/releases/latest/download/install.sh && sh install.sh`.

The vissue and claimdag rows are the same shape. A missing sibling names the release install command, not a crates.io version. A required binary exits 1. The tickets and deeds rows are info when the program is the thing that is missing.

Model context protocol registration#

On a machine that is not a cloud VM, a missing command in ~/.cursor/mcp.json printed:

no  mcp ljos-mcp: /no/such/ljos-mcp does not exist (/tmp/seat-probe/.cursor/mcp.json) and the MCP client has no tools, so run `ljos onboard --harness cursor`.

Exit 1. A command that exists and is not this install’s ljos-mcp is a warning, and the exit stays 0 when nothing else failed:

warn    mcp warning: ljos-mcp: /tmp/seat-probe/other/ljos-mcp is not this install's /home/you/.cargo/bin/ljos-mcp (/tmp/seat-probe/.cursor/mcp.json), so run `ljos onboard --harness cursor`.

On a cloud VM, a codespace, or CI the same rows say to run ljos cloud up instead of ljos onboard --harness cursor.

Secret variables#

ljos doctor and ljos_doctor name a secret variable and say whether it is set. They do not print its value. LJOS_CLOUD_AGE_SECRET names another variable, and a token pasted into it can read like a name, so the cloud age row says the variable is unset without repeating the name:

no  cloud age   LJOS_CLOUD_AGE_SECRET names a variable that is unset, and /home/you/.config/ljos/cloud.age is missing

A value that is not an age identity, or an age identity pasted into the setting, is named by the problem and never printed. The signing key row prints DEEDAR_HOST_SIGNING_KEY only when its value is a path:

no  signing key DEEDAR_HOST_SIGNING_KEY is set, but its value is not the path of a key file; set it to that path, or to off for no signing

The config rows show set for LJOS_TRACKER_TOKEN, LJOS_WAKE_LAUNCHER_KEY and any other variable whose name has TOKEN, SECRET or PASSPHRASE in it or ends in _KEY. LJOS_SEAT_KEY shows its value when the value is a path, and set otherwise.

The registry#

With curl unable to reach crates.io, doctor printed:

warn    crates.io   did not answer, so the version check was skipped; run `ljos doctor` again once it answers.

A missing binary then has no version in parentheses: not on PATH, so run curl -fsSLO https://github.com/leidarljos/ljos/releases/latest/download/install.sh && sh install.sh. The warning does not by itself exit 1. A copy already in the day cache is still used, and the row says crates.io (cached).

Mistyped ticket id#

When a ticket id is close to one in the tracker, show, note and finish print one line with the closest id and a command to run:

issue demo-kln not found, and the closest is demo-kiln, so run `ljos show demo-kiln`.

File without a project#

ljos file needs a project when there is no sitting and no seat default. The refusal names the exact command shape:

no project: name one with -p NAME, so run `ljos file "TITLE" -p NAME`.

Corrupt tracker config#

When vissue.toml is damaged, commands that read tickets stop with one line and a fix command:

the tracker config does not parse, so run `ljos doctor`.

Empty search query#

ljos search with no query prints one usage line with the exact command shape, even when old queued lessons exist:

search: the query is empty, so run `ljos search "QUERY"`.

Free text on recall#

ljos recall takes one ticket id, including a 32-hex tracker id. Text with spaces, or a word that is not an id, exits 2 and points at the search command:

recall: that text is not a ticket id, so run `ljos search "<words>"`.

Words typed without quotes are several arguments, and recall takes one id. The line says so and prints the search shape. It does not repeat the words, which may be private:

$ ljos recall some words
ljos: recall takes one ticket id, so run `ljos search "<words>"` to look up words.

ljos search takes the same words without quotes as one query, beside -p, -n and its other flags, so ljos search lexical default and ljos search "lexical default" are the same search.

A word that is not a command#

lessons is a natural guess, and it is not a command. The line exits 2 and names the three verbs that work with lessons, each as a command that runs:

ljos: no command lessons. To find lessons run `ljos search "<words>"`, to save one run `ljos remember "The lexical default is BM25+."`, and to review the ones waiting run `ljos proposals`.

The words typed after it are not repeated. Any other word that is near a verb names that verb. A name with an ending, the start of one verb and a name with a verb as a part are all near:

ljos: no command prop, and the closest is proposals, so run `ljos proposals`.

A start that two verbs share, such as mem, is not guessed. The line then does not repeat the word, and names ljos help.

An error line names a flag or a command word. It does not repeat a value you typed. A value, such as the text after --limit or a word after a command, is written <value> in the command the line prints. A word is repeated only when it is letters alone, short, and close to a real command or shell name.