Doctor's checks
jevlin doctor answers one question per line, and names the one thing to fix. -json gives the same checks as one envelope.
| check | OK when |
|---|---|
| search key | credentials.json holds a key for this installation's router. NO when there is none, or the file cannot be used (a link, or readable by others); a search would then need JEVLIN_API_KEY. The key's value is never shown. |
| registration | This agent is claimed on the platform, or not registered at all, since a key from jevlin login searches without one. NO for a registration that is not yet claimed, one that expired, or a record that cannot be read; the fix is jevlin connect. |
| trace key | The state directory holds trace.key, or does not hold it yet: the first search that can write the state directory makes it, so only a key that cannot be read is NO. |
| up to date | The daily release check found this copy current, has not run yet, is turned off, was rolled back by you, or finds a development build. NO when a newer release is available (a new minor included), when an upgrade could not rewrite the agent files, or when an upgrade could not put the old binary back; it names the newer release and the one command that applies it here. UNKNOWN when the last check failed, is still running, could not be read, is dated in the future, or ran more than three days ago, which says the hooks that start it may not be running. |
| binary on PATH | A bare jevlin runs this installation's own binary. NO names the copy that answers instead — an npm shim earlier on PATH is the common one — or says nothing on PATH answers at all. Checked when the installation keeps a binary at its bin; when it keeps none there and was not launched through npm, the running binary stands in. The agents' own files name the binary by full path and are unaffected either way. |
| npm command on PATH | An npm install only: a bare jevlin runs this package's npm command. NO when nothing answers, when npm's global bin directory is not on PATH, or when another copy stands earlier on it. |
| state access | Windows only: the state directory and its credentials have an access list and an owner, who is you, SYSTEM or Administrators. Anyone else the list names is shown, and is OK: an agent's sandbox is expected there. |
NO, UNKNOWN and the exit code
NO is a fact and a successful diagnosis; UNKNOWN is the absence of one. doctor exits 0 unless every check came back UNKNOWN (exit 1), the config cannot be loaded (exit 1), or a flag is wrong (exit 2). Every check but up to date is local, and that one reads the record the daily check left rather than asking anyone. It opens existing state only and creates nothing: no state directory, no key, no registration.
The checks that most often read UNKNOWN, and what each means, are on Troubleshooting.