Debug Environment Variables
bd supports several environment variables for debugging specific subsystems. Enable these when troubleshooting issues.| Variable | Purpose | Usage |
|---|---|---|
BD_DEBUG | General debug logging | Set to any value |
BD_DEBUG_RPC | RPC communication | Set to 1 or true |
BD_DEBUG_SYNC | Sync and timestamp protection | Set to any value |
BD_DEBUG_ROUTING | Issue routing (multi-repo) | Set to any value |
BD_DEBUG_FRESHNESS | Database reconnection | Set to any value |
Disable debug logging after troubleshooting:
unset BD_DEBUG BD_DEBUG_RPCInstallation Issues
bd: command not found
bd is not in your PATH. Either:Wrong version running
Ifbd version shows an unexpected version, you likely have multiple bd binaries in your PATH.
Diagnosis:
Crashes on macOS
Some users report crashes when runningbd init or other commands. This is typically caused by CGO/SQLite compatibility issues.
Workaround:
Antivirus False Positives
Antivirus software (Kaspersky, Windows Defender) may flag bd as malware. This is a false positive common with Go binaries. Solutions:- Add bd to antivirus exclusions (recommended)
- Verify file integrity before excluding:
Compare with checksums from the GitHub release page
- Report false positive to your antivirus vendor
For complete instructions, see the Antivirus Guide.
Database Issues
bd shows 0 issues but database has data
Symptom: Allbd commands return empty results.
Diagnosis:
- Upgrade bd to latest version
- Ensure Dolt server is running from correct directory
- Verify
metadata.jsonpoints to right server - Remove stale
.beads/dolt/directory if exists alongside server mode:
Database is locked
Another bd process is accessing the database.For high-concurrency scenarios (multiple agents), use Dolt server mode which handles concurrent access natively.
Import fails with missing parent errors
If you see errors likeparent issue bd-abc does not exist when importing hierarchical issues:
Quick fix using resurrection:
- Searches import data for missing parent issue
- Recreates it as tombstone (Status=Closed, Priority=4)
- Preserves parent’s original title and description
- Maintains referential integrity for children
Old data returns after reset
Symptom: Afterbd admin reset --force, old issues reappear.
Cause: Reset only removes local data. Old data can return from:
- Dolt remotes - Old data may exist there
- Remote sync branch - Old data on remote
- Other machines - Other clones may push old data
Database corruption
For physical database corruption:Git and Sync Issues
Merge conflicts
Dolt handles merge conflicts natively with cell-level merge.With hash-based IDs (v0.20.1+), ID collisions don’t occur. Different issues get different hash IDs.
”Branch already checked out” when switching branches
Symptom:Auto-sync not working
Ready Work and Dependencies
bd ready shows nothing but I have open issues
Those issues probably have open blockers.Only
blocks dependencies affect ready work.Circular dependency errors
bd prevents dependency cycles which break ready work detection.Dependencies not showing up
Check the dependency type:blocks- Hard blocker, affects ready workrelated- Soft relationship, doesn’t blockparent-child- Hierarchical (child depends on parent)discovered-from- Work discovered during another issue
Performance Issues
Export/import is slow
For large databases (10k+ issues):Commands are slow
Agent-Specific Issues
Agent creates duplicate issues
Prevention strategies:- Have agents search first:
bd list --json | grep "title" - Use labels to mark auto-created issues:
bd create "..." -l auto-generated - Review and deduplicate periodically
- Use
bd mergeto consolidate:bd merge bd-2 --into bd-1
Agent can’t find ready work
Sandboxed environments (Codex, Claude Code)
Issue: Sandboxed environments restrict permissions, causing “out of sync” errors. Quick fix: Sandbox mode (auto-detected in v0.21.1+)- Uses embedded database mode (no server needed)
- Disables auto-export/import
- Works in network-restricted environments
Platform-Specific Issues
Windows: Path issues
Windows: Controlled Folder Access blocks bd init
Symptom:bd init hangs indefinitely with high CPU.
Solution: Add bd.exe to Controlled Folder Access whitelist:
- Open Windows Security → Virus & threat protection
- Click “Ransomware protection” → “Manage ransomware protection”
- Under “Controlled folder access”, click “Allow an app”
- Add
bd.exe(typically in%USERPROFILE%\go\bin\bd.exe) - Retry
bd init
macOS: Gatekeeper blocking execution
Linux: Permission denied
Getting Help
If none of these solutions work:- Check existing issues: GitHub Issues
- Enable debug logging: Use the debug environment variables above
- File a bug report including:
- bd version:
bd version - OS and architecture:
uname -a - Error message and full command
- Steps to reproduce
- bd version:
- Join discussions: GitHub Discussions