Operational Troubleshooting Guide

This guide indexes exact diagnostic messages printed by hale dna, hale habitat, and hale node, grouped by subsystem, along with their root cause and…

This guide indexes exact diagnostic messages printed by hale dna, hale habitat, and hale node, grouped by subsystem, along with their root cause and remediation steps.

Four read-only commands work offline (even when no organism body is running) and are the primary starting point for diagnosing state:

Terminal window
hale dna status # status projection: organism lease, journal chain, reviews, body, memory
hale dna board # items awaiting Board action, missing vault secrets, and recent violations
hale dna history t1 # causal event chain for a specific Task, Work, attempt, or Review
hale dna secrets # required vault secret slots and whether each is populated

The Record

Section titled “The Record”

Nothing is running here

Section titled “Nothing is running here”
organism: not running — reading the Journal
requested intent …, but the organism journaled no answer in time (record revision …)

No record, or a toolchain that moved

Section titled “No record, or a toolchain that moved”
no record in memory for … (run `hale habitat graft`)
this clone holds a record an earlier toolchain kept on git (refs/dna/journal), and records are not carried forward: re-init a fresh record — delete the old refs (…), remove the `[dna] record` line from hale.toml if it has one, and run `hale habitat graft . --attach`
… holds the head's DSN and is readable by others (mode …): `chmod 600 …`, or remove it and run `hale habitat migrate …`
embedded dna: … (hale …); vendor/dna was materialized from … — run `hale dna upgrade`

The chain does not verify

Section titled “The chain does not verify”
journal: … event(s), chain BROKEN at …

A connection that cannot be made

Section titled “A connection that cannot be made”
connect: … could not be read (…); nothing was changed

Memory (Postgres)

Section titled “Memory (Postgres)”

Working memory and the record reside in Postgres (Memory and the record).

The ledger does not answer

Section titled “The ledger does not answer”
memory: record + ledger (operations and leases live in memory; THE LEDGER IS UNREACHABLE (…): what is read here is the last projection, and nothing is admitted until it answers)

The body has no memory

Section titled “The body has no memory”
hale dna run: no memory: HALE_DNA_MEMORY_DSN_SPINE is not set (`hale dna dev` hands the host the spine's DSN of memory that `hale habitat migrate` migrated, from HALE_DNA_MEMORY_DSN_OWNER or the organism's allocation in the local habitat); nothing is projected or admitted
hale dna dev: the organism's memory allocation in the local habitat (memory-…) is not up: `hale habitat migrate …` brings it up and migrates it; or set HALE_DNA_MEMORY_DSN_OWNER to a Postgres of your own
hale dna dev: the organism has no record identity yet: its memory is the local habitat's allocation named for it (`hale habitat graft` pins one)
…/.hale/dna/memory.env held a DSN derived from …, not from the organism's memory in the local habitat (…), and is removed: run `hale habitat migrate …`, which brings the organism's memory up and migrates it
hale dna run: this record's operations live in the ledger (adopted at …), and no memory is named here (HALE_DNA_MEMORY_DSN_SPINE); a body without its memory admits nothing — set it, or run under `hale dna dev`

The schema is another toolchain’s

Section titled “The schema is another toolchain’s”
hale dna run: memory: memory schema … is at version …; this toolchain needs version …; run `hale habitat migrate <organism>` (with HALE_DNA_MEMORY_DSN_OWNER for a Postgres of your own)
… memory schema … is at version …, newer than this toolchain's …; it is not migrated back

A context package would be stale

Section titled “A context package would be stale”
memory's projection is at row …, before the record's knowledge row …; the spine applies it on its tick
hale dna run: memory: projection waits for the record to be shared (the sync did not complete)

A write the ledger refused

Section titled “A write the ledger refused”
hale dna: `… …` was not written to the ledger: …

Protected evidence

Section titled “Protected evidence”
no receipt key: memory keeps no protected evidence until hale dna memory migrate with HALE_DNA_RECEIPT_KEY
memory already seals protected evidence under another receipt key; bodies sealed under it would no longer open, so it is not replaced
receipt file: … was redacted; a redacted body is not filed again
… was redacted …; a redacted body is not kept again

The nerves

Section titled “The nerves”

The nerves are backed by NATS JetStream (The nerves).

The body hears nothing

Section titled “The body hears nothing”
hale dna run: no nerves: HALE_DNA_NATS_URL_SPINE and HALE_DNA_NATS_ORG are not set (`hale dna dev` hands the host the spine's URL of nerves whose stream `hale habitat migrate` created, on HALE_DNA_NATS_URL_OWNER or the organism's allocation in the local habitat); the organization hears nothing the record asks
hale dna dev: the organism's nerves allocation in the local habitat is not up (`hale habitat migrate …` brings it up and creates the stream)
nerves migrate: the server does not run JetStream (start it with -js)

The organization does not come to read

Section titled “The organization does not come to read”
hale dna run: the organization did not come to read the nerves within 20s; the facts wait in the stream

A publish the stream did not take

Section titled “A publish the stream did not take”
hale dna run: nerves: …; stopping for the unit to start this node again

The heart’s pull is refused

Section titled “The heart’s pull is refused”
hale dna run: the heart's pull on its durable … was refused … time(s) while the connection held: the durable, or its stream, is gone; it is made again

The Spine

Section titled “The Spine”

See The spine for budgets, workflows, and leases.

The budget is spent

Section titled “The budget is spent”
… budget exhausted (spent … of … micro-dollars this day in … call(s))

An intent noted and never re-offered

Section titled “An intent noted and never re-offered”
offered before a restart and no Task was born; not re-admitted — ask again

An effect whose outcome is unknown

Section titled “An effect whose outcome is unknown”

The Heart and the Body

Section titled “The Heart and the Body”

See The heart and the body.

The body lease is held elsewhere

Section titled “The body lease is held elsewhere”
hale dna run: a body for this record is live on … (ticked …, lease expires in …s); a record admits one body — `hale dna body claim --force` takes it over when that body is gone
hale dna: body: live on …, ticked … ago; a record admits one body. `hale dna body claim --force` takes the lease from a body that is gone (it stops itself when it next asserts the lease)
hale dna run: the body lease is no longer mine: held by …; a record admits one body — stopping
hale dna: body: the lease is held by …, not this clone (…); `hale dna body release --force` releases another's
hale dna run: memory cannot be reached, so the body lease cannot be taken; a body runs only under a lease it can prove

A change that did not survive

Section titled “A change that did not survive”

No fleet

Section titled “No fleet”
no `[dna] fleet = "<name>"` in hale.toml: the DNA expresses no fleet here

Senses and Reflexes

Section titled “Senses and Reflexes”

See Senses and reflexes.

hale dna senses up: the local habitat's senses' store runs under docker compose, which is not on PATH
hale dna senses url: the organism's senses' store in the local habitat is not up (`hale habitat migrate …` brings it up)
reflexes: HALE_DNA_NATS_URL_REFLEXES, HALE_DNA_NATS_VAULT_REFLEXES and HALE_DNA_NATS_ORG name the nerves this program fires onto
reflexes: no store (HALE_DNA_SENSES_URL); nothing to read
reflexes: the vault holds no credential … (`hale dna upgrade` provisions the organism's secrets)

The Skin (Vault and Secrets)

Section titled “The Skin (Vault and Secrets)”

See The skin.

A secret is missing

Section titled “A secret is missing”
MISSING forge-token the forge's token — a person supplies it: `hale dna secret set FORGE_TOKEN`
MISSING model-OPENAI_API_KEY the model's key OPENAI_API_KEY — a person supplies it: `hale dna secret set OPENAI_API_KEY`
body: no credential for the model (none of … is in the vault where the body runs); `hale dna secret set <NAME> [--body <user@host>]` puts one there
secret: the forge's token is not in the vault (forge-token); `hale dna secret set FORGE_TOKEN` fills it

A secret the verb will not take

Section titled “A secret the verb will not take”
secret set: `…` is no slot of the organism's (FORGE_TOKEN, OIDC_CLIENT_SECRET, or a credential dna/org/models.hl names: …); `hale dna secrets` lists them
secret set: the value never goes on the command line (it would sit in every shell history and process list); name the variable alone and give the value on stdin
secret rotate: … was never set (`hale dna secret set …` first)

A drawn secret is gone

Section titled “A drawn secret is gone”
nerves migrate: the vault holds no credential for the nerves' … (`hale dna upgrade` provisions the organism's secrets; `hale dna secrets` lists them)
the memory allocation's password is not provisioned (postgres-owner-… in the vault, and its file beside the allocation; `hale dna upgrade` provisions them, `hale dna secrets` lists them)

Violations

Section titled “Violations”
violations: … recorded, each absorbed by its owner (the latest last)

Legs

Section titled “Legs”

See Legs, hands and voice.

A performer with no effect class

Section titled “A performer with no effect class”
hale dna work: dna/org/work.hl: the … performer declares no effect class; every performer declares one: effect_free, idempotent or uncertain

Nothing to claim

Section titled “Nothing to claim”
no admitted attempt awaits a … leg with capabilities `…`: … of that kind outstanding, …

The lease is gone

Section titled “The lease is gone”
stale: the lease on attempt … expired at …
stale: the lease on attempt … is …'s at token …, not …'s at token …
the lease on attempt … was taken as a performer of effect class `…`; an outcome under it names that class, not `…`
the lease … held at token … expired at … with no outcome; the attempt is asked again

No allowance

Section titled “No allowance”
the call would cost … micro-dollars, past what is left of the attempt's allowance (… of …): no call was made
the attempt's allowance of … micro-dollars is spent (…); the budget gate admits no further call

Schedules

Section titled “Schedules”

See Schedules.

hale dna: schedule declare: refused: schedule …: …
hale dna: schedule declare: --every … is no interval (a number and ms, s, m, h or d)
hale dna: schedule pause: no schedule `…` is declared in the record

The Head and the Face

Section titled “The Head and the Face”

See The head and the face.

The head will not start

Section titled “The head will not start”
hale dna ui: trusted-local is a fixture's mode (HALE_DNA_TRUSTED_LOCAL=1); a project serves its head under OIDC: `git config dna.principal oidc` with dna.oidc.issuer, dna.oidc.client and dna.oidc.member (dna/face/start.sh sets them up with the stub provider, dna/oidc)
hale dna ui: dna.principal is oidc, so dna.oidc.issuer, dna.oidc.client and dna.oidc.redirect must be set
hale dna ui: the issuer must be https (plain http only on this machine): …
hale dna ui: the issuer … is not usable: …

A verdict refused

Section titled “A verdict refused”
review … refused the verdict: …

Every Review needs the Board

Section titled “Every Review needs the Board”

A person’s task that never settles

Section titled “A person’s task that never settles”

Starting Over with a Fresh Record

Section titled “Starting Over with a Fresh Record”

Because the record lives in a dedicated Postgres schema (dna_<record-identity>) while applied code changes remain in git log, you can reset a project to a clean record without losing its source code:

  1. Remove the record = "…" line under [dna] in hale.toml.
  2. (If the clone still has legacy refs/dna/ Git refs, delete them—see No record, or a toolchain that moved.)
  3. Re-graft the existing directory to provision a fresh record identity and Postgres schema:
    Terminal window
    hale habitat graft . --attach

See Reference: Where things live for a complete map of all state locations.