hack.foo

Troubleshooting

Run hack doctor using the same CLI, backend and home as the command that failed. Check the reported engine and its source. Read the named finding before using --fix; some problems need a decision or an original key, not an automatic repair.

hack doctor --json returns {ok:true,data:{schema:1,engine,engine_source,checks,summary,counts}}. Each check adds an area, machine/project scope and a fix category (safe, admin or manual), argv after hack, and a documentation URL. Empty argv means consult the docs. The audit remains read-only; ok:true means the audit ran, while error findings still exit 1. Unknown checks offer no runnable repair.

Run hack doctor --install-checks --json from the CLI you intend to use. It lists the first Hack on PATH, the selected executable, desktop flag support, hackd version and ownership, the home and global proxy versions, and stale daemon files. Desktop shows these checks in the Hack CLI setup step and in Doctor. If another Hack comes first on PATH, select the intended executable in Setup and use the reported PATH change for your shell.

Setup and Doctor show the selected executable, its version and its backend. A native machine Doctor reports native runtime setup, DNS and trust. Setup uses those results for native installations, including an empty project list. A registered Compose project still needs a Docker engine check. If hackd cannot list projects, recheck after it is available so Setup can confirm whether Docker is needed. Earlier v5 CLIs that support doctor --browser-url can perform runtime checks without the newer install audit.

Preview cleanup with hack doctor --fix --only install-leftovers. For an older hackd running the selected executable, preview hack doctor --fix --only install-daemon-version. Add --yes to apply and recheck. When another install owns hackd, select that install or give the two installs separate homes. For a v4 home, review hack upgrade check --json. Preview global host changes with hack global install --plan --json before running hack global install yourself. An older home without a version record can still be identified by its v4 global proxy files.

For a targeted repair, hack doctor --fix --only 'hack gitignore' --yes --json --path <repo> repairs only Hack's managed ignore block, keeping user lines. It needs a Git checkout and leaves adopted, unsafe or read-only inputs alone. It rechecks the result and exits 1 when unconfirmed. data.fix reports id, changed and confirmed; no other check is run or repaired. Other IDs, absent consent and combinations with other repair modes refuse before writes. Broad --fix --json still refuses.

hack doctor --fix --only 'polling watchers' --path <repo> shows a diff that removes only the CHOKIDAR_USEPOLLING: "true" and WATCHPACK_POLLING: "true" lines old hack init generated, and writes nothing. Add --yes to apply it. It refuses an adopted project and any change that would alter more than those lines. With --json, data.fix adds applied, removed and diff. Plain --fix never runs it.

Use hack doctor --machine --json for a machine-only audit. It returns the same checks, summary and counts in the envelope, tagged data.schema: "hack.doctor.machine.v1" (listed in the machine-readable output reference); plain hack doctor --json keeps schema: 1. It skips project discovery and project checks even from a broken project checkout, and inspects only global stores for secrets hygiene. Every finding has machine scope; failed or unavailable observations remain warnings/errors. It runs bounded read-only probes, including runtime status --json from the native executor for the native backend, never starts Docker, hackd or a native runtime, and accepts no project selection, browser observation or repair flags. The selected backend and home still come from the same environment as ordinary Doctor. Use hack doctor --disk to report allocated and logical file bytes for the selected native home without starting its pool. Add --json for the Doctor report envelope. An incomplete scan is marked as a warning and its totals cover only the files observed. Run this as a standalone audit. Repair flags such as --fix cannot be combined with it. See Local disk footprint.

Finding or messageCauseWhat to do
“Global proxy is stopped” (Compose)Docker reports a stopped global Caddy or CoreDNS container.Run hack global up, then retry. On an existing installation, run hack global install to refresh the managed proxy and logging files with the unless-stopped restart policy.
Compose down, restart or up: “Could not verify the Docker daemon”Hack could not read the daemon ID after two attempts, each with a 1500 ms timeout.Run docker info --format '{{.ID}}' with the same Docker settings. Once it returns the original daemon’s ID, retry the original command. A “different Docker daemon” refusal shows both fingerprints and requires restoring the original daemon.
Compose open warns about DNS; open --json adds dns: "unresolved" or, on macOS, "unconfigured"The resolver confirmed no address, or a Mac's lookup did not answer and the Hack-managed suffix lacks its resolver file. A v4 machine may know only the older suffix.The URL is kept. Run hack doctor and hack global install, or choose a resolving suffix with hack config set dev_host <name>.<suffix>. Review host changes. A failed or timed-out lookup alone is not reported as unresolved. Saved native origins use their own DNS path.
Native project on Compose: “Project folder … is writable by other users”, “Hack directory … is writable by other users” or “Hack's private state directory … must be 700”Hack's native Compose state needs the project folder, .hack and .hack/.internal writable only by you. A folder created under a umask of 002 (the default on Ubuntu) is group-writable (mode 775). Group write is not accepted, because another user who can write the project folder could redirect Hack's private writes. Hack never creates its own folders group- or world-writable (.hack is 755, its state folders 700), so this affects only folders that existed before.Run the chmod command the message prints (chmod go-w <folder>, or chmod 700 for a Hack state directory), then retry. It only removes write access for other users and changes no content. To avoid it for new checkouts, use umask 022 in your shell.
init --auto: “No runnable service was found”Discovery recognised no runnable app, so the generated app service is a placeholder using a Bun image and bun run dev.Edit .hack/docker-compose.yml with the app's real image and command before up. This warning does not widen discovery support. Explicit --manual / --no-discovery and discovered services keep their previous output.
emulated services, polling watchers, shared volume architectures or a dev image tags note (Compose)Settings that make a project slow: an image of another architecture than the host runs emulated, file watchers poll, one shared volume holds dependencies installed by two architectures, or a mutable :latest image is older than the repository's Node or Bun version.Follow My Mac is slow. Each finding names the service, file and line. Doctor only reports platform pins and images; it can remove generated polling lines with the selected repair above.
env override coverage: “has no entry for running service …” (Compose)An older Hack rewrote .hack/.internal/compose.env.override.yml for the services one targeted command named (hack restart api, up api, run, exec). A later Compose command can then recreate another service without its managed variables.Run hack up once in that checkout; current Hack writes the file for every service. The check expects an entry only for a running Compose service whose effective env for the default selection is non-empty (host lifecycle processes and services that remove every key with null need none), and it reads key names only, never values. It judges by the selection each running instance recorded, so a one-off hack run --env <other> or exec --env <other>, which rewrites the file without recording, can make it warn; run hack up with the instance's own --env to settle it.
native pool idle: “The native VM pool is running and nothing uses it …” (machine check)The pool kept running after its last retained graph was removed or archived, or after an up failed before it recorded a graph. hack down keeps a project's graph retained, so the runtime still counts the graph. When the live-run list is empty, plain doctor shows the pool-stop command on its own line after an ordinary down. The pool belongs to the native home, so the check runs once per doctor run, in project runs too, marked as a machine check.Run the stop command the message prints (<native executor> --candidate-root <native home> runtime down --json). The check warns only when runtime status --json reports pool_idle: true: running with a live provider and no graph (Compose or native-authored, running or retained), environment allocation or exec session. A stopped pool is OK. Unavailable runtime status or an unknown pool state instead warns that idleness could not be checked, with nativePool.state: "unknown"; this does not claim the pool is idle or suggest stopping it. runtime down refuses while an image build runs. Doctor never stops the pool, and --fix does not either.
global install, global up or doctor --fix: “The proxy cannot publish ports 80 and 443 … already in use by” or “The proxy could not start on ports 80 and 443 …”Another program already listens on port 80 or 443 on some address, for example a VPN client's serve feature. The command exits non-zero; install stops before DNS and trust setup.Stop that listener, or publish the proxy on one address: hack config set --global proxy.bind_address 127.0.0.1 && hack global install. Install rewrites Hack's proxy compose file without a prompt, also without a terminal, and keeps a copy that differs from Hack's current rendering as .bak-<UTC time>. See global settings.
global install or global up: E_DOCKER_UNAVAILABLE “Docker is running, but docker compose version failed: Hack needs the Docker Compose v2 plugin”; doctor: docker compose errorDocker's CLI and engine work, but the Compose v2 plugin is not installed, common on a fresh Linux host with the distribution's docker.io package. Install and up stop before they create networks or start the proxy.Install the plugin (docker-compose-v2 or docker-compose-plugin on Ubuntu and Debian), check with docker compose version, then rerun hack global install.
global install, global up or doctor --fix: “The proxy did not start, and Docker did not report a problem with ports 80 or 443”The proxy's docker compose up failed for another reason, such as an image pull or a missing network; Docker named no port it could not publish.Read Docker's error printed above it, fix that, and rerun hack global install. hack doctor checks Docker, the Compose plugin and the shared networks.
proxy ports: “port 443 on loopback is not reaching the Hack proxy”A hostname resolves to loopback, but its published port does not reach Hack's proxy. Another listener, a VPN's serve feature or the container runtime's HTTPS setting may own the port. Doctor checks only where the proxy's schemas name resolves on this machine, so a name that resolves straight to the proxy container is not warned about.Review visible listeners, proxy.bind_address and local DNS overrides. Change the conflicting setting deliberately, then rerun Doctor. Port 80 working does not prove 443 works. Doctor applies no automatic fix. Routing details.
secret integrity: encrypted store has entries, but its key is missing or does not open itAn old global store remains, but the original key is unavailable. It is an error where the project reads it and a warning elsewhere.Choose restore the original key or retire the store if the key is gone for good. Never create a replacement key to open old ciphertext. Retirement keeps the encrypted file and prints how to put it back. See the steps below.
secret integrity: env layer “could not be read or parsed”The layer is unreadable, invalid, or outside an allowed path.Fix its access, syntax or location, then rerun Doctor. Keep the file and original key. If encrypted entries cannot be opened, recover that key; a hidden value in env list is not proof of decryption. Env and keys.
daemon start: “Started hackd process but it did not report ready yet”, or “hackd exited before it was ready (exit code N)”With no service manager (containers, CI runners, cloud sandboxes), daemon start starts hackd itself and waits up to 20 seconds for it to be ready, returning as soon as it is. “Not ready yet” means hackd was still running but not ready after that time. “Exited” means the process it started ended first; that is reported at once.Run hack daemon status: if it is running and compatible, hackd finished starting and nothing more is needed. Otherwise read hack daemon logs --tail 200, or run hack daemon start --foreground to see the error.
global install or global up: “… started, but these containers are not running: hack-dev-proxy-coredns-1 (exited, exit code 1) …”A global container started and then stopped. On Linux the usual cause is a config it cannot read: docker logs for it shows permission denied. CoreDNS, Loki and Grafana do not run as root, so the configs they read under ~/.hack must be readable by others. Hack sets those files to 0644 (and the Grafana dashboards directory to 0755) whatever your umask, but only while they still hold Hack's own content: a config you customised keeps the permissions you gave it, and the message names it with the chmod to run if you want the container to read it.Run hack global install again: it resets those modes even when no file changed. For a customised config, run the chmod the message prints, or leave it private and expect that container to stay down. For any other cause, read docker logs --tail 50 <container>.
global install or global up: E_GLOBAL_NOT_READY “… started, but this container was not ready within N s: …” or “… this container is unhealthy: …”A global container is running but its healthcheck did not pass (Caddy's admin API, Loki's /ready, Grafana's /api/health, Alloy's /-/ready). hack global up waits for these instead of a fixed time, up to 30 s for the proxy and 120 s for the logging stack.Run the docker inspect and docker logs commands the message prints. On a first start Grafana migrates its database; on a slow disk rerun hack global up.
global install or global up: E_GLOBAL_NOT_READY “The global proxy's containers are running, but within 15 s CoreDNS answered …, not only the proxy's address”, “… did not resolve the name”, “port 443 on … refused the connection” or “… answered with a certificate this home's proxy did not issue”hack global up waits until routing works end to end: a .hack name resolved by CoreDNS (asked from inside the Caddy container) to the Caddy container's own address, and an HTTPS request for that name sent where this machine resolves it (the OS resolver; the proxy's live loopback bindings only when the machine has no answer yet), answered on a connection verified against the running proxy's CA. A wrong DNS answer or another server answering on 443 fails here.Run the docker logs commands the message prints, then hack doctor. A firewall, a DNS override or another program on port 443 of the bind address shows up here.
global up waits about 2 s longer on Docker Engine 24 or older than on 25+The global stack's healthchecks use start_interval (probe every half second while starting) only on Docker Engine 25+, because Compose refuses the key on older engines. There they probe every 2 s.Nothing to fix; upgrade Docker Engine to 25+ for the faster start. hack global install renders the files for the engine it finds.
doctor: “the global stack files predate readiness checks”The global compose files were written by an older hack global install, so they have no healthchecks and hack global up keeps its old fixed waits (2 s for the proxy, 10 s for logging).Run hack global install to rewrite them.
hack global up: E_GLOBAL_NOT_READY or E_GLOBAL_STOPPEDA global proxy or logging container did not become healthy within its bound, stopped right after starting, or DNS (CoreDNS) or HTTPS (port 443) through the proxy refused or answered wrongly at the end of the 15 s probe. hack global up --json returns the code in its error envelope, with error.detail in the hack.global-up.v1 shape (failedStage, logging, routes).Read the named container's docker logs --tail 50, then hack doctor.
hack global up: “Not checked: …” and successThe route probe could not check a step: this machine has no address for the schemas name yet (Hack's DNS is not set up, so HTTPS was tried only at the proxy's published loopback, where a refusal is not counted); the proxy image has no nslookup (a v4 proxy file); the Caddy container's address or the running proxy's CA could not be read; TLS on loopback 443 did not complete (a timeout or a reset: some container runtimes do not forward it; doctor reports this path); the proxy does not publish 443 on a loopback address; or the Docker engine is remote (SSH, TCP given by host name, or TCP with the proxy on one address). These never fail up.Nothing is required. hack global install rewrites a v4 proxy file; hack doctor checks the HTTPS path.
Compose logs report “configured logging driver does not support reading”The Docker log driver cannot return the requested output.Plain hack logs tries Loki for the same project and services. If Loki is down, run hack global up. To enable a disabled logging stack, use hack global up --logging. Explicit --compose reads Docker directly.
hack logs --loki, --query or hack open logs: E_LOGGING_OFF “… cannot run: the global logging stack (Loki, Alloy, Grafana) is off”The logging stack is opt-in and off for this home (logging.enabled is false, or unset in a home without ~/.hack/logging/).Run hack global up --logging once. Plain hack logs, with or without --since/--until, keeps reading container logs without it.
daemon start, daemon status or doctor's daemon check: “hackd cannot start: hackd state directory … is not safe from other users”A directory above ~/.hack/daemon, often the home directory itself, is writable by other users (for example mode 775 under umask 002). hackd's local API is unauthenticated, so it refuses to serve from there.Run the chmod go-w <dir> the message names, then hack daemon start. hack daemon status --json reports the same text as start_refusal.
native setup: “The native runtime supports Apple Silicon macOS only; this host is …” (E_UNSUPPORTED_PLATFORM)The native backend ships only for Apple Silicon macOS.Use the Compose backend: leave HACK_RUNTIME_BACKEND unset or set it to compose.
env-key-weak-permissionsAn old project key has group or other access.Keep a private backup, then apply the reported chmod 600 remedy to the named key. Do not move it to an unignored .old file in the checkout. The hygiene report below covers other loose modes.
secrets hygiene: loose modes, staging leftovers or stale terminal payloadsOlder writes or interrupted work left files exposed or unused Hack artifacts on disk.Review the named files, then use hack doctor --fix. It tightens eligible own files' modes, adds missing project ignore entries and removes Hack artifacts older than ten minutes. Removal protects live keys/stores/config/env layers and retired stores, rechecks configuration, and leaves files it cannot prove removable. It never untracks a file.
A script, agent or app that polls routing/DNS status starts DockerPlain hack global status offers to start a stopped Docker backend and accepts in non-interactive runs.Poll hack global status --json --observe instead: it starts nothing, bounds every probe, and reports each part, including host DNS on macOS and Linux, as true, false or "unknown". Read summary.ok rather than the exit code. The shape and probe list are in docs/reference/global-status-observe.md.
local ca trust: not trusted, or "could not tell"The system trust store (macOS System keychain; Linux system bundle and browser NSS databases) does not trust the current Caddy Local CA, or Hack could not read a store.Run hack global trust, then rerun Doctor. The check only reads; "could not tell" names the store it could not read (no exported CA, unknown distribution, no certutil, a failed query, or an NSS read-safety refusal). Unsafe, missing, unreadable or unsupported NSS database/module metadata returns Unknown without running certutil. Review ownership and module configuration deliberately; Doctor never initializes or repairs a database. Its caTrust field in --json lists each store. The field list is in docs/reference/local-ca-trust.md.
Native up (registry_image): “Registry layer download from failed after N attempt(s): …”A layer body failed while it streamed from the registry, often under heavy host or network load. Each layer downloads to a private temporary file next to the image archive, is checked against its digest and size, and is retried up to 3 times within what remains of the image's 360-second deadline, which is never extended. The reason is the last attempt's: the transfer timed out, the connection ended before the whole layer arrived, the layer did not match its digest or size, the registry answered an HTTP error status, or the deadline was reached. --json carries the same sentence; the runtime's network_request diagnostic has version: 2, host, attempts, reason and, for an HTTP status, status, never a URL, query or credential.Retry up once the host is less loaded; temporary layer files are removed on every path, and a completed layer is fetched again. A digest or size mismatch that repeats means the registry or a proxy between serves different bytes for that digest: check the named host rather than retrying. Access refusals (401, 403, 404) keep their own message about credentials or a missing image.
Native up --detach or up --json fails before the VM startsA detached native start runs in a background owner with no terminal.Hack reports a failure before VM work exactly as foreground up does, in text and --json: a failed up.before hook gives E_LIFECYCLE_FAILED (“Lifecycle (native up before) failed (exit N); values omitted.”), and, when stderr is a terminal, the hook's step line, the last 40 lines of its output and its failure line are written to stderr (never into the --json envelope). A captured stderr, such as an agent tool's result, gets the refusal and any retry guidance without the hook output, because that output may contain values: run hack up without -d in a terminal to see the hook's output; a source-size refusal gives E_NATIVE_PROJECT_UNSUPPORTED with its largest paths; settings and other closed refusals keep their own code and message. Compose prints a lifecycle blocker with the hook phase and exit code. Its JSON keeps E_LIFECYCLE_FAILED with “Lifecycle (up before) failed (exit N)”. Compose exits with the hook's status; native exits 1. A failure after VM work starts still reports E_STARTUP_INCOMPLETE with the runtime's detail; inspect hack ps before retrying.
Native up --detach / up --json: E_STARTUP_TIMEOUT “Native detached startup did not finish: it was … when its … budget/ceiling ran out”, or down: E_DOWN_INCOMPLETE “A native start of this instance is still running or unwinding”A detached start waits for its background start. Image builds and loads in progress do not count against its 15-minute budget; everything else does, and a 60-minute ceiling bounds the whole start.Run down for that instance: it waits up to two minutes for a start that is still unwinding and stops what it published, or refuses without claiming success. Then up --detach again. For a project whose builds or start legitimately take longer, raise HACK_NATIVE_DETACHED_START_TIMEOUT_MS or HACK_NATIVE_DETACHED_START_CEILING_MS (milliseconds). See Try native.
Native up: graph_timeout “Not ready after N s of the N s graph start budget: (wanted healthy; running, starting), …”After images are ready, every service must reach its readiness goal (started, healthy or completed) within one graph start budget, 300 seconds by default. A large project, a loaded host or a guest too small for the project (heavy paging) can miss it. The message names each service that missed its goal and what it was doing.Check the named services with hack logs <service>. If they were still starting, raise native.startTimeoutSeconds in .hack/hack.config.json or HACK_NATIVE_START_TIMEOUT_SECONDS (whole seconds, 60 to 600, the runtime's own bound). The states shown come from the last graph status read while the start was still starting (polled every 5 seconds); the message says how old it was, and without one from the last 30 seconds only the runtime's generic message appears. The error does not report guest memory pressure yet; hack doctor shows the memory the native pool reserves for its guest, and a longer budget does not help a guest that is paging.
Native runtime files are missing or setup is incompleteThe native runtime home is not prepared.Run the explicit native setup step for that selected version and home. up does not download runtime files. For setup_existing_invalid, keep existing state and follow setup recovery; do not delete the home.
Native up: “cannot build service …: the image builder is not installed in this native home” (builder_not_prepared), or Doctor's native image builder warningThe native home has no image builder: an earlier build set it up, or it was set up offline without --builder. Everything except image builds works.Run native setup --accept-downloads with the same launcher. On a home that is already set up it downloads the image builder only and leaves the rest in place. Offline, add --builder with the pinned file. The image builder
native setup: “WARN: Setup found that the image builder in this native home does not match the pinned release …” (builder: "changed" in JSON), Doctor's native image builder warning with the same words, or native up: “BuildKit client prepared tree changed; refusing execution.” (artifact_digest_mismatch)The image builder's files in the native home were changed after setup installed them. Setup still succeeds and never deletes or overwrites them; image builds are refused.Remove the two paths the warning names, relative to the native home (.hack-local/providers/buildx-<version>-darwin-arm64 and .hack-local/providers/buildx.json), then run native setup --accept-downloads with the same launcher. The image builder
Preflight has blockers or reports runtime review: skipped / unavailableThe Compose project uses an unsupported field, the wrong backend is selected, or the CLI/runtime pair cannot complete review.Use the native launcher, fix the reported fields and rerun doctor --native-preflight. Check ready and the runtime review, not just the exit code. Stay on Compose when the feature is required. Preflight details.
E_LIFECYCLE_FAILEDA project hook failed before startup could finish; its own credentials or command may need repair.Read the hook's message, fix that project dependency, then retry. Do not bypass the hook just to get a green start. A failed native host.up.after hook also needs a recovery stop first; see the next row.
Native-authored up or restart: ! lifecycle hook failed (after, exit N) with a hack down … --recover line; --json gives E_LIFECYCLE_FAILED “Native host after hook failed; startup remains incomplete …”The services started, then an authored host.up.after hook exited nonzero. Later after hooks did not run, and the command exits with the hook's status. The start is still pending, so a plain hack down has no saved run to stop and a new hack up refuses.Run the printed hack down … --recover line. It keeps the --path, --project and --branch you used, stops the retained services, and skips your host.down hooks, because recovery never runs authored down hooks; do any cleanup they would do yourself. Then fix the failing hook and run hack up again.
Native-authored up or restart: ! project startup incomplete · pending start retained with a hack down … --recover line; --json gives E_STARTUP_INCOMPLETE “Native Compose execution is incomplete …”Hack could not confirm what the engine start did, for example because Compose exited with an error. No service may be running, but the pending start and its ownership are kept.Run the printed hack down … --recover line (it also skips host.down hooks), check hack ps, then retry the start.
Native-authored project using Compose reports E_RECOVERY_REQUIRED with compose-readiness (probe-timeout)Compose may have started containers, and Hack could not finish a fresh ownership and readiness check within its budget. The generation is still pending. For a stalled Docker read, the JSON refusal names the read, its duration_ms, the startup budget’s remaining_ms, and the retry attempt (0 or 1). Inspect reads also report targets and target_count.Inspect the saved generation with hack ps --json. Run hack down --recover for the same project and instance to stop its owned resources, then retry startup after the stop is confirmed.
Native-authored Compose startup reports E_STARTUP_INCOMPLETE after an initializer exits nonzeroHack verified an owned job with restart disabled that exited unsuccessfully. The generation is still pending.Inspect the job with hack ps --json and hack logs <job> --compose. Run hack down --recover for the same project and instance before retrying with the job fixed.
Native up: E_RECOVERY_REQUIRED “This project's last native run has no confirmed shutdown …”A recovery stopped the run with data kept but did not finish its shutdown, usually the shared HTTPS lease after the pool was stopped under a running project; or another start of this instance replaced it.Run hack down --recover. It starts a stopped native runtime when it needs to, finishes the shutdown with data kept, and leaves the runtime running (run runtime down to stop it). Then run hack up.

If native shutdown was interrupted during guest relay removal, repeat the same shutdown or recovery command. An empty relay allocation can be removed on retry when its recorded slot generation is stopped or discarded and its socket is gone.

If a hack down was cut off while it recovered a project (its terminal closed, or it was killed), the next hack down refuses once and names hack down --recover, which finishes the recovery with the data kept. A plain runtime down refuses while such a recovery is unfinished and names the project; runtime down --force stops the pool anyway, and hack down --recover then starts it and finishes the recovery.

After the native VM dies under two HTTPS-routed instances (for example main and a --branch instance), run hack up -d or hack down for each instance, in either order. The first one archives the dead shared HTTPS owner with both leases; the other one then releases its own lease from that archive. Data is kept.

When recovery archives a previous-boot shared HTTPS owner, it checks the frontend invocation for this Hack home. Other users' processes and different executables do not need readable arguments. If a possible owner still has unreadable arguments, recovery keeps the retained state and reports stop_uncertain.

A store whose key is lost

Doctor's finding names the selected store and registered projects that read it.

  1. Prefer restoring the same original key from a private backup or another machine, at the path Doctor names with mode 600.

  2. If the key is gone for good, select the diagnosed project and retire the store:

    hack secrets retire-store --path /absolute/project --allow-unchecked

    Pass --allow-unchecked only after confirming no shell for a project selecting the store holds its key in HACK_SECRETS_FILE_KEY; Hack cannot inspect another shell. The flag also acknowledges registered projects it could not check. A store a configured key still opens is refused. Without a terminal, --yes is also needed to confirm the move.

Retirement moves the file to a timestamped directory beside it. It deletes no entries, leaves the key file alone and prints the restore command. It does not recover the values. Keep the moved file if you might recover the key later. Store details cover the refusal and recovery rules.

If a report needs help, share the version, finding name and the action that failed. Remove secret values and private paths from logs before sharing them.

Current-source details: first-run DNS and placeholder messages, placeholder implementation, hygiene removal rules.


Source: v5 (next.34) · docs/site/troubleshooting.md.

On this page