Troubleshooting Installation
Solutions to common installation, permission, and environment issues.
Diagnostic Command: m31a doctor
Whenever encountering startup or installation issues, run:
m31a doctor --verbose
To emit machine-readable JSON for automated verification:
m31a doctor --json
Common Issues & Remediation
1. m31a: command not found
- Cause:
~/.local/binis not in your shell'sPATH. - Fix: Add
export PATH="$HOME/.local/bin:$PATH"to~/.bashrcor~/.zshrc, then restart your terminal.
2. Only NVIDIA NIM models are supported in this release
- Cause: An outdated configuration or environment variable references
openai,anthropic, orollama. - Fix: Clear
OPENAI_API_KEYand setNVIDIA_API_KEY. Update.m31a/config.tomlto remove non-NVIDIA provider blocks.
3. workspace configuration is invalid: ... (startup on fallback defaults was refused)
- Cause: A
.m31a/config.tomlfile exists but contains syntax errors or unrecognized fields. - Fix: M31A fails closed on invalid configs to prevent accidental data loss. Run
m31a config validateto see the exact syntax error, or delete.m31a/config.tomlto regenerate safe defaults withm31a init.
4. sqlite pool initialization failed: database is locked
- Cause: Another M31A process is holding an exclusive transaction on
~/.local/share/m31a/m31a.db. - Fix: Check running processes via
ps aux | grep m31aand terminate stalled instances. SQLite WAL mode handles concurrent readers, but schema migrations require brief exclusive locks.