Installation Issues
bd: command not found
Wrong version of bd running
Ifbd version shows an unexpected version (e.g., older than what you just
installed), you likely have multiple bd binaries in your PATH:
go install sits in ~/go/bin/
ahead of a newer package-manager install. Choose one installation method
(Homebrew recommended) and stick with it.
zsh: killed bd on macOS
CGO/SQLite compatibility issue:
Permission denied
Antivirus flags bd as malware
Kaspersky, Windows Defender, and others sometimes flagbd as a generic
trojan. This is a false positive — Go binaries commonly trigger antivirus
heuristics. Verify the binary’s SHA256 checksum against the
GitHub release page before
adding an exclusion. See Antivirus False Positives for
per-vendor instructions.
Database Issues
Database not found
Missing metadata.json: bd refuses to open, or picked the wrong database
In releases after v1.3.4, an embedded workspace without.beads/metadata.json selects its database as described in
Configuration: it uses the
sole existing database, honors BEADS_DOLT_SERVER_DATABASE, and refuses when
several databases exist and none is selected. The selection itself renames no
database directory and writes no metadata.json.
bd init over the existing databases: the refusal is a safety
stop, and reinitializing cannot recover which database the workspace meant.
Database locked
bd init --server) handles concurrent access natively via dolt sql-server.
bd init refuses to run
bd init and bd dolt refuse operations that could destroy local or remote
history, printing a pattern code such as init-local-exists or
pk-fork-refused. Each code has a runbook — see
Recovery Playbooks. Export first
(bd export -o backup.jsonl) if you intend to re-initialize over existing
data.
Corrupted database
Distinguish logical consistency issues (ID collisions, wrong prefixes) from physical database corruption (disk failures, power loss, filesystem errors). Logical consistency issues are not corruption. In server mode, repair them with:bd doctor --check=artifacts, --check=conventions
and --check=pollution.
Physical corruption needs recovery, not repair: bd doctor --fix does not
rebuild a damaged store. Follow
Engine won’t open: preserve
the damaged store and its configuration first, then recover into a fresh store
from a Dolt remote, a Dolt-native backup, or a JSONL export.
In releases after v1.3.2, the bd doctor --fix repairs that replace a
database (automatic integrity recovery and the repo fingerprint fix’s
“Reinitialize database” choice) accept only a database path from
metadata.json that lies under the workspace’s .beads directory as written,
or the location BEADS_DOLT_DATA_DIR selects. A dolt_data_dir or database
outside .beads, at .beads itself, a symlinked database, or a path that
escapes through a symlinked directory is refused before anything is backed up
or deleted. To repair such a workspace, point the metadata back under .beads
or select the real store explicitly with BEADS_DOLT_DATA_DIR, or recover by
hand as above. A .beads that is itself a symlink to external storage stays
supported and needs no workaround.
Dolt journal corruption after restart
Symptom (server mode): After a system restart,bd reports that the Dolt
server started but is not accepting connections, and .beads/dolt-server.log
contains:
bd
command fails while opening the database with the same corrupted journal
error, even with no other bd process running. Bare bd doctor is not
supported in embedded mode, so do not wait for it to diagnose this.
Cause: Dolt detected damaged journal blocks after an unclean shutdown or an
interrupted write. This is not the same as a stale PID, stale port, or stale
lock file. bd will not run Dolt’s data-loss repair mode automatically, and
bd doctor --fix does not rebuild the journal.
Safe recovery: follow
Engine won’t open. Preserve
the damaged store and its configuration first, then recover into a fresh store
from a current remote (bd bootstrap --dry-run), a Dolt-native backup, or a
JSONL export. For example, when your server-mode remote is current:
dolt fsck before considering
dolt fsck --revive-journal-with-data-loss. Only use the revive path after
reviewing Dolt’s data-loss warning.
failed to import: issue already exists
You’re trying to bootstrap a database with issues that conflict with existing
ones. Clear the local database and re-initialize from an export:
Imported children whose parent is gone
Bootstrapping from JSONL or pulling hierarchical issues (e.g.,bd-abc.1) can
land children whose parent bd-abc no longer exists — typically after
bd delete on a parent, a branch merge where one side deleted it, or an
incomplete import.
Import accepts these orphans rather than failing, so the children still arrive
and stay usable. Recreate the parent (or close out the orphaned children) once
the import finishes.
Prevention: use bd delete --cascade to also delete children, and review
children first with bd children <parent-id>.
Old data returns after reset
bd admin reset --force only removes local beads data. Old issues can
return from configured Dolt remotes or from other machines that push after
you reset. For a complete clean slate, reset every clone (or clear the
remote’s beads data) before re-running bd init.
If you previously used the removed legacy sync-branch feature, also delete
its branch and worktrees — see
Worktrees: Legacy Cleanup.
bd shows 0 issues but the database has data
Symptom (server mode): All bd commands return empty results even though
your data exists.
Cause: bd is connecting to a different Dolt server or database than
expected — an empty “shadow” database on the wrong server.
Diagnosis:
metadata.json points at the right server and port. If a stale
.beads/dolt/ directory exists alongside an external-server configuration,
it can shadow the real database — confirm your real data lives on the server
before removing the stale directory.
Configured server unreachable (auto-start disabled)
Symptom (server mode): commands fail with “Dolt server unreachable at 127.0.0.1:3307”, and bd says thatdolt_server_port (or
BEADS_DOLT_SERVER_PORT, or the legacy BEADS_DOLT_PORT) declares that
server externally managed, so it did not start one.
Cause: When metadata.json has an explicit dolt_server_port, or the
environment sets BEADS_DOLT_SERVER_PORT or BEADS_DOLT_PORT, bd treats the
server as externally managed and intentionally disables auto-start — spawning a different server
would create a shadow database. A dolt_server_port does so even when
config.yaml’s dolt.port chose the port; bd then says the setting declares
this workspace’s server externally managed without claiming it names the
endpoint. After a command reaches the server, bd records its port in
.beads/dolt-server.port, which outranks dolt_server_port. bd dolt set port leaves that file alone, so when the file chose the port bd names it:
remove it and bd falls back to the next configured port: dolt_server_port,
unless config.yaml’s dolt.port or the data directory’s listener.port
names another. When one of those names the file’s own port, removing the
file changes nothing, so bd does not name it.
Fix: start the server that should be listening there, with its own data
directory. Unless that server is bd’s own over .beads/dolt (for example one
you started with bd dolt start after bd dolt set port), bd dolt start is
not it: it would start one of bd’s own over .beads/dolt on the same port.
dolt_server_port from
.beads/metadata.json, and unset BEADS_DOLT_SERVER_MODE or a port variable
if one also declares the server externally managed.
Port conflicts with multiple projects
Symptom (server mode): Commands in a second project fail or connect to the wrong database, and multipledolt sql-server processes are running.
Cause: Each server-mode project starts its own Dolt server by default,
which can conflict on machines with many projects.
Fix: Enable shared server mode so all projects use a single Dolt server:
bd init --reinit-local -q to
create their database on the shared server.
Verify: bd dolt status from any project should show the same server,
port 3308, and ~/.beads/shared-server/ as the data directory.
Multiple databases detected warning
bd warns when it finds more than one.beads directory in your directory
hierarchy, marking the one in use with ▶ (usually the closest to your
current directory). Multiple databases risk working in the wrong one or
tracking the same work twice.
- Nested projects (intentional): this is supported — just note which database is active, or pin it explicitly.
-
Accidental duplicates: export from the unwanted database
(
bd export -o issue-export.jsonl), then remove its.beadsdirectory. -
Override selection:
Circuit breaker: “server appears down, failing fast”
Symptom (server mode): Everybd command fails with
dolt circuit breaker is open: server appears down, failing fast (cooldown 30s),
persisting across repeated invocations.
Cause: The circuit breaker tripped after repeated connection failures.
Its state lives in a file under /tmp/beads-circuit/ (named
beads-dolt-circuit-<host>-<port>[-<db>].json, keyed on host:port) and is
shared across all bd processes. Once tripped, all commands to that host:port
are rejected until a successful probe resets it.
For beads-managed local servers, bd dolt status reports from the server’s
PID file — a “running” status does not guarantee the server is actually
accepting connections on the expected port.
Diagnosis:
/tmp is a symlink to /private/tmp, which is not always cleared
on restart — the state file can persist across reboots.
Dolt Server Issues
Server not starting
Version mismatch
After upgrading bd:“bd requires dolt 2.6.0 or newer” error
bd refuses to run against Dolt older than 2.6.0 outside embedded mode.
The error names what it checked and the version it found, for example:
dolt binary "<path>":bd dolt start, server-mode auto-start, managed proxied-server mode, a CLI clone (bd bootstrap,bd init --remote), a push, pull or fetch through thedoltCLI (prefixeddolt push:and so on) or the remote-repo cache (bd create --repo <url>,bd repo sync) found an olddoltCLI. Managed proxied-server mode finds it viaBEADS_DOLT_BINor PATH (in that order — see Environment Variables); the others use PATH. Install the pinned version and update PATH, or pointBEADS_DOLT_BINat the new binary.dolt sql-server at <address>(or behind the bd proxy): the serverbdconnected to is old, whetherbdstarted it or not. Upgrade thedoltbinary that server runs and restart it:bd dolt stopthenbd dolt startfor a serverbdmanages, orbd dolt stopalone in a managed proxied-server workspace, whose proxy starts its server again on the next command (bd dolt startis refused there). For an external or shared server, whoever runs it has to upgrade it; back it up first, and treat the upgrade as one-way.
latest: the pin is the release measured clean for a
separate data-operation defect,
and releases/latest can move to an unmeasured release. There is no
override. bd doctor --server reports the server’s version against the
same minimum. bd doctor, bd doctor --fix included, is exempt from it:
its checks and repairs that use their own connection still run against an
older server. Its checks that open the workspace’s store fail: the
✖ Database and Permissions errors only point at bd dolt status (which
shows a healthy server), and this error itself appears in the ⚠ checks
further down (Peer Connectivity, Sync Staleness, Federation Conflicts,
Dolt Mode).
Releases before 2.6.0 also have known defects, which that page measures:
- Dolt 2.4.0 through 2.4.2 return no row for an ungrouped
MAXorMINover an unmatched primary-key prefix (dolthub/dolt#12093). - Dolt before 2.4.0 has a join bug that returns wrong results (dolthub/dolt#11886).
- Dolt before 2.3.3 cannot write to a database holding a descending index
column (dolthub/dolt#11746). Every database
bdcreates in embedded mode holds one, and so does any database whose schema adolt sql-server2.3.3 or newer created. On such a database anUPDATEorDELETEonissues, whichbd createandbd updateboth run, fails withcannot add or update a child row: a foreign key constraint failsonfk_comp_snap_issue. Other writes andinformation_schemaqueries fail withtable has unknown fields.
bd use
does not fork dolt version on every command. A refusal is never cached:
while the binary is refused, every command runs dolt version again, so the
first command after an upgrade runs. That includes an upgrade behind a
version manager’s shim or a BEADS_DOLT_BIN wrapper script, whose own file
does not change.
A version bd cannot determine is not refused. If the probe can’t parse
dolt version’s output at all (most commonly a dev/custom build with
non-standard version output), proxied-server mode warns
(could not verify dolt version, at most once a day) and still starts, and
bd dolt start launches it; a server whose dolt_version() does not answer
with a version is used without the check (logged under BD_DEBUG). In
proxied-server mode a genuinely missing or broken dolt binary (not found,
not executable, or the probe itself fails/times out) is a hard error.
Prefix routing: “proxy server store needs to be uow provider”
A lookup routed through the orchestrator’sroutes.jsonl prefix routes
fails with this error when the rig that owns the prefix is itself running in
proxied-server mode — routed reads cannot open a proxied-server rig. In an
all-proxied shared-server topology that applies to every routed target, so
cross-rig bead gates and a plain bd show <routed-id> both dead-end here.
Run the command from the owning rig’s own workspace instead, where the ID
resolves locally rather than through a route. Tracked in
#5861.
Sync Issues
Changes not syncing
Recovery from backup
Merge conflicts
Dolt merges at the cell level, so concurrent changes conflict only when they touch the same field of the same issue. Hash-based IDs mean different issues never collide on ID.Push logs “conjoin of database failed” over SSH
Symptom:bd dolt push to a git+ssh:// remote prints this error and then
reports the push complete:
bd dolt pull gets slower with every push.
Cause: after a push, Dolt compacts (conjoins) the remote’s table files.
Older Dolt opened a separate SSH connection for each table file it conjoined,
all at once. A burst larger than the SSH server’s MaxStartups limit gets its
excess connections dropped before authentication, so the compaction fails
while the push itself succeeds, and the next compaction has even more files
to merge. This is a known cause in affected Dolt versions, not an explanation
for every SSH connection reset. Tracked in beads
#6359 and upstream
dolthub/dolt#11739; fixed by
dolthub/dolt#11742 and
dolthub/dolt#11745.
Fix: upgrade the Dolt engine that runs the push. Both fixes shipped in
Dolt 2.3.3. Which engine that is depends on how bd runs Dolt:
- Embedded mode: the push runs on the Dolt engine linked into
bditself, so only abdbuild linking a fixed engine fixes it. The engine in beads v1.3.4 predates the fix and is affected; beadsmainalready links Dolt 2.6.0, which carries it. Upgrading a standalonedoltbinary does not replace the embedded engine. - Server mode or an external Dolt: git-protocol pushes and pulls run
through the
doltCLI and thedolt sql-server, not the engine insidebd. Install the supported version from Which Dolt version to install for both, then restart the server on the new binary. Adoltalready at 2.3.3 or newer is not affected, whatever thebdversion. The 2.6.0 minimum in the"bd requires dolt 2.6.0 or newer"entry above does not catch adoltwhose versionbdcannot determine, so checkdolt versionyourself.
MaxStartups in its sshd_config and reload the SSH
service. The reporter of #6359 got compaction working again with
MaxStartups 100:30:200; treat that as one reported example, not a setting
guaranteed to be enough, since a larger burst can still exceed it. A Git host
you do not administer cannot be tuned this way. Upgrading remains the
permanent fix.
Git Hook Issues
Hooks not running
Hook errors
Hook timeout kills chained pre-commit hooks
Symptom: Afterbd hooks install, chained pre-commit hooks (eslint,
prettier, ruff, etc.) stop running, with:
beads: hook 'pre-commit' timed out after 300s -- continuing without beads.
Cause: The beads hook shim wraps bd hooks run with an OS-level timeout.
Since bd hooks run chains to your original hook internally, the timeout
covers both beads’ own work and your entire hook pipeline.
Fix: Increase the timeout (default 300 seconds):
timeout or gtimeout only
when a successful version probe identifies GNU coreutils or uutils coreutils;
native Windows timeout.exe is not compatible. If neither a coreutils timeout
nor Perl is available, the hook warns that it is running directly without a
deadline.
Both helpers send TERM to bd and its process group, so the deadline also
stops your chained hook. The Perl fallback runs bd in a process group of its
own and sends the group KILL if bd is still running two seconds after the
TERM. On Git for Windows a coreutils timeout (GNU or uutils) is preferred.
A process that ignores TERM can outlive the hook. Both helpers run bd
outside the terminal’s foreground process group, so a chained hook that reads
from the terminal is stopped until the deadline ends it.
Already-installed hook sections are not refreshed automatically. After upgrading
to a version that changed the timeout probe — the name-only check, the uutils
coreutils banner, or the Perl fallback that could not stop bd
(#7753) — run
bd hooks install once to refresh existing canonical sections.
Permission denied on git hooks
Git hooks need execute permissions:Corrupted symlinked CLAUDE.md
Symptom: Git reports CLAUDE.md as a symlink entry (mode 120000), but
the indexed blob contains multi-line Markdown instead of a one-line symlink
target. On macOS this can make clones or checkouts fail.
This affects repositories corrupted by older setup behavior (fixed in
#4192). To repair an
existing bad index entry:
”Branch already checked out” or unexpected .git/beads-worktrees/
Older beads versions created hidden git worktrees for a removed sync-branch
feature; leftovers can lock branches (fatal: 'main' is already checked out at .../beads-worktrees/...). Remove them:
Dependency Issues
bd ready shows nothing but I have open issues
Those issues probably have open blockers:
blocks dependencies affect ready work.
Circular dependencies
bd prevents dependency cycles, which break ready work detection:Dependencies not showing up
blocks gates
ready work. See Dependencies.
Performance Issues
Slow queries
High memory usage
bd flatten stops with Error 1105 (HY000): context canceled,
see Storage reclaim fails with “context canceled”
below.
Storage reclaim fails with “context canceled”
In older releasesbd flatten finishes by hard-resetting main onto a
temporary branch, as does the Dolt-history compaction, bd compact, in v1.3.2
and earlier (builds with the fixes listed in the CHANGELOG use a soft reset,
which this does not affect); the merge-settle path behind bd dolt pull / bd sync falls back
to a hard reset when it abandons a merge. On Dolt 2.3.x a few percent of freshly created databases come up with
CALL DOLT_RESET('--hard') broken for the life of the server process, so on
an affected database those commands stop with:
CALL DOLT_CLEAN() and CALL DOLT_CHECKOUT('.') all still work — so the
problem only shows up when something needs a hard reset. Confirm with the
check in
Which Dolt version to install,
which also covers the fix: restarting dolt sql-server clears it for now,
and installing the pinned Dolt version keeps it clear.
This applies to server and proxied-server mode, which use the standalone
dolt CLI. Embedded mode links its own Dolt engine at the version pinned in
go.mod and is not affected by which dolt CLI is on your PATH.
Agent Issues
Agent creates duplicate issues
Agents may not realize an issue already exists. Prevention strategies:- Have agents search first:
bd list --json | grep "title" - Label auto-created issues:
bd create "..." -l auto-generated - Consolidate duplicates:
bd duplicate <dup-id> --of <canonical-id>closes the duplicate with a reference to the canonical issue
Agent gets confused by complex dependencies
Simplify the dependency structure:MCP server not working
Sandboxed environments (Codex, Claude Code, etc.)
Sandboxes that restrict process and network permissions can prevent bd from controlling a Dolt server, causing persistent “database out of sync” errors orbd dolt stop failing with “operation not permitted”.
bd auto-detects sandboxed environments and prints
Sandbox detected, using direct mode. If auto-detection fails, pass the
global --sandbox flag explicitly:
bd doctor --fix forces a metadata refresh
(low risk — it updates tracking metadata, not issues). Background:
GH#353.
Platform-Specific Issues
Windows: Path issues
Windows: Firewall blocking the Dolt server
In server mode, the Dolt server listens on loopback TCP. Allowbd.exe
through Windows Firewall: Windows Security → Firewall & network protection →
“Allow an app through firewall” → add bd.exe for Private networks.
Windows: Controlled Folder Access blocks bd init
Symptom: bd init hangs indefinitely with high CPU usage, and CTRL+C
doesn’t work. Controlled Folder Access may block bd without showing a
notification, making this hard to diagnose without the -v flag:
bd.exe: Windows Security → Virus & threat
protection → Ransomware protection → Controlled folder access → “Allow an
app through Controlled folder access” → browse to bd.exe (typically
%USERPROFILE%\go\bin\bd.exe). Then retry bd init.
Windows: ENOENT when a Node program spawns bd
Symptom: An editor extension, MCP server, or script that shells out to
bd fails on Windows with spawn bd ENOENT, even though bd runs fine in
the same terminal.
The npm package installs bd as a generated bd.cmd shim, not as an
executable named bd. Node’s execFile() and spawn() run their target
directly instead of through a shell, so they never apply the PATHEXT
resolution that finds bd.cmd — and a batch file is not directly executable
in the first place.
Solution: Name the shim explicitly and give it a shell:
node_modules/@beads/bd/bin/bd.exe.
Windows: /tmp paths silently land in the drive root
Symptom: A bd command given a /tmp/... path reports success, but
the file is not where you look for it — it was written to C:\tmp\....
bd.exe is a native Windows binary and does not share Git Bash’s emulated
POSIX filesystem. When a literal /tmp/... string reaches bd, it resolves
against the current drive root.
In a default interactive Git Bash this usually does not happen — Git for
Windows converts standalone POSIX-path arguments to Windows paths before
bd.exe sees them. The trap appears when that conversion is out of play:
MSYS_NO_PATHCONV=1orMSYS2_ARG_CONV_EXCLis set (common in Docker-heavy environments)- the path comes from a config value or a file, not a command-line argument
bdis spawned by a non-MSYS parent — a Node script, editor extension, or MCP server — which passes the string through verbatim:
bd a Windows path — os.tmpdir() from Node,
"$(cygpath -w /tmp)\issues.jsonl" from Git Bash scripts. This applies to
any path argument, including --db and config values.
macOS: Gatekeeper blocking execution
- Verify the downloaded binary checksum matches the release
checksums.txt. - If you used
scripts/install.sh, note that macOS ad-hoc re-signing is opt-in (BEADS_INSTALL_RESIGN_MACOS=1). - Approve the binary:
Debug Environment Variables
bd supports environment variables for debugging specific subsystems. Enable them when troubleshooting or when requested by maintainers.
Set any of them to
1 to enable; unset to disable.