Repository navigation
19 Troubleshooting
Start with croft doctor — it validates config, checks backend
availability, probes service status commands, and reports per-issue
guidance. Most problems below have a doctor message that points you
straight at the cause.
croft doctorcroft uses deny_unknown_fields on every TOML section. Typo or a
removed field. Cross-check the
Configuration Reference.
A name appears in two of:
[[services.custom]], [[services.systemd]],
or the compose project. Rename one. Errors at config-load time, not
at runtime.
[[agents.sources]] name field must be unique. Rename one.
The install plan has two steps with the same name. Resume can't
disambiguate, so the loader rejects it. Rename one (or remove the
duplicate from [install].steps).
Install Docker, or set [runtime].backend = "none" if you only
use [[services.custom]] /
[[services.systemd]] declarations.
The compose service isn't defined in docker-compose.yml. Check
docker compose config --services against the recipe.
Either [runtime].service_passthrough = false is set, or the
name resolved to something earlier in the resolution
order (a recipe or
script with the same name). Use croft which <svc> to see how it
resolves.
Tools invoked outside croft don't see the resolved [env]. Set
[worktrees].dotenv = ".env"
to materialise the resolved env into .env automatically.
[env.<KEY>] has required = true but no source produced a value.
Either drop required, set default, define value, or supply
the key via the process environment / dotenv.
Use base + offset arithmetic with CROFT_WORKTREE_OFFSET:
[env]
APP_PORT = { base = "8080", offset = "CROFT_WORKTREE_OFFSET" }croft worktree list shows every worktree's computed offset and
warns on collisions. Pin a slug explicitly with croft worktree assign <slug> <n> if needed. See Worktrees.
.git/hooks/<stage> exists and isn't a croft-managed shim. Move
it aside (e.g. .git/hooks/pre-commit.bak) and rerun
croft hooks install. See Hooks.
croft runs only language: system and language: script hooks
natively. Wrap the tool with a shell script and use language: script, or use a repo: local hook calling the tool already on
PATH with language: system.
croft doesn't implement the meta repo. Remove the entry or
replace it with an equivalent repo: local hook.
When an upstream pre-commit repo moves a tag, the cached SHA goes
stale. --update-hooks clears the cache entry and re-clones at the
same rev. See Hooks.
A previous croft install failed mid-flight and left state. Press
Enter (or --resume non-interactively) to pick up where it
stopped, or --restart to wipe state and start over. See
Install Flow.
croft install <step-name> runs that step in isolation and updates
only its record. Recommended pattern when a maintainer adds one new
step that every teammate needs (e.g. croft install rebuild-search-index).
A local file in a [[dir]] target has the same name as an upstream
file. Rename the local file (e.g. foo.local.md) so the conflict
is unambiguous. See Agents.
You hand-edited a croft-owned file. By default croft leaves it
alone (warning only); --force-overwrite-drift overwrites it from
upstream. See Agents.
croft agents install reuses cache for floating refs too — only
croft agents update (or install --force) re-fetches them. See
Agents.
Compose detection failed. Run docker compose config --services
manually. If output is fine but croft still doesn't show rows,
declare them explicitly via [[ui.pane]] type = "service" so they
appear regardless of detection. See TUI.
croft picks trunk via origin/HEAD → main → master →
develop → trunk. Override with [diff] base = "release/stable"
in croft.toml. See Diff View.
Open an issue at
github.com/nsrosenqvist/croft/issues
with the output of croft doctor and the relevant section of
croft.toml.
croft is dual-licensed under MIT or Apache 2.0. Source: github.com/nsrosenqvist/croft. Back to Home.