Engine reference — generated from the canonical engineering source. Do not edit this page by hand.
Troubleshooting
Common Issues
Connection Refused
Symptom: zerg status or any CLI command fails with connection refused.
Diagnosis:
# Check if Sol is running
pgrep -f "beam.smp" && echo "Erlang running" || echo "Erlang not running"
# Check if port 21434 is listening
ss -tlnp | grep 21434
Resolution:
- Start Sol:
cd server && rebar3 shell(dev). Production runs under the wild blueprint (runit + podman, container root/opt/sol) — see production-runbook.md; the oldsolctlscript was removed in - Verify config: check
http_portinsys.configmatches CLI expectations - Check firewall rules if connecting remotely
Model Not Found
Symptom: zerg start my-model returns “model not found”.
Diagnosis:
# List registered models
zerg list
# Check model directories
ls /fun/models/*.gguf # model_source_dir
ls /tmp/sol/models/*.gguf # model_store_dir
Resolution:
- Run
zerg discoverto scan for GGUF files - Verify
model_source_dirinsys.configpoints to your GGUF files - Model names are auto-generated from filenames. Use
zerg listto see available slugs. - Prefix matching is supported:
glmmatchesglm-4.7-flash-q4
Inference Start Fails
Symptom: zerg start returns error or model stays in loading state.
Diagnosis:
# Check llama.cpp binary exists
ls -la /usr/src/llama.cpp/llama-server
# Check GPU/CPU availability for inference
nvidia-smi # for CUDA
Resolution:
- Verify
llama_server_pathinsys.configpoints to a valid llama.cpp binary - Check available GPU memory (GGUF model must fit in VRAM)
- Check Sol logs for the specific error:
tail -f log/sol.log(production) or console output (dev)
Worker Spawn Fails
Symptom: zerg spawn returns error.
Diagnosis:
# Check worker binary
ls -la client/build/luna
# Check worker_path config
grep worker_path server/config/sys.config
Resolution:
- Build the Luna binary:
bash client/build/build.sh - Verify
worker_pathinsys.configpoints to the binary - Ensure the binary is executable:
chmod +x client/build/luna - Check
max_workerslimit (default: 16)
ZMQ Workers Not Connecting
Symptom: zerg zmq-workers shows empty list, but Luna workers are running.
Diagnosis:
# Check ZMQ gateway status
zerg zmq-status
# Check ZMQ config
grep zmq server/config/sys.config
# Check firewall for ports 5555/5556
ss -tlnp | grep 5555
Resolution:
- Verify
zmq_enabledistrueinsys.config - Check that Luna worker uses matching endpoint:
--connect tcp://127.0.0.1:5555(with--idfor the worker identity;--pub-endpointfor events) - If running across machines, check
zmq_bind_addris set to0.0.0.0or the correct interface - Install
libzmq:apt install libzmq3-dev
Cluster Join Fails
Symptom: zerg join sol@gpu-node-2 returns error.
Diagnosis:
# Check both nodes use the same cookie
grep setcookie server/config/vm.args
# Check node names are distinct
grep -- "-name" server/config/vm.args
# Check network connectivity
ping gpu-node-2
Resolution:
- Both nodes must have the same
-setcookievalue invm.args - Node names must be unique (
sol@node-1,sol@node-2) - Erlang distribution port (4369) and dynamic ports must be open
- Use FQDNs or IP addresses if DNS resolution is unreliable
TUI Not Rendering
Symptom: Luna TUI shows garbled output or blank screen.
Diagnosis:
# Check ncurses is installed
dpkg -l | grep ncurses
# Check terminal type
echo $TERM
Resolution:
- Install ncurses:
apt install libncurses-dev libtinfo-dev - Set
TERM=xterm-256colorfor color support - Use
--printmode for non-interactive testing:luajit client/main.lua --print "hello"(after--configureor with a--connectworker lane) - Some terminals may need
export COLORTERM=truecolor
Known Issues
All previously tracked issues have been resolved. As of there are 0 open bugs. 1161 archived phase plans (machine count plan_files=1225 in AGENTS.counts — plan/archive/*.md). See review/2026-08-01-deep-source-analysis.md and docs/archive/AGENTS-decisions-archive.md for the canonical reviews.
No active known issues at this time.
Log Locations
| Component | Location | Content |
|---|---|---|
| Sol (production) | /opt/sol/log/sol.log (legacy on-host model; wild production logs under podman at /opt/zerg) | Structured Erlang logger output |
| Sol (development) | Console stdout | Logger output + Cowboy request logs |
| Luna | ~/.luna/logs/ | Agent log files (leveled: debug/info/warn/error) |
Checking Sol Logs
# Production (legacy on-host model — wild runs under podman, see /opt/zerg)
tail -f /opt/sol/log/sol.log
# Development — visible in rebar3 shell console
cd server && rebar3 shell
Checking Luna Logs
ls ~/.luna/logs/
Agent Modes
Tab cycling doesn’t show my custom mode
Custom modes must have "category": "primary" to appear in Tab cycling. Secondary modes are accessible only via /mode <name>.
Mode badge not updating in status bar
The mode badge updates when app:_update_status is called. If it doesn’t update, trigger a redraw with any keystroke. This is a known cosmetic issue.
Unknown mode error when using /mode
Check that the mode is defined in ~/.luna/agents/*.json or .luna/agents/*.md with valid JSON/YAML frontmatter. Use /modes to list all registered modes.
Ollama
Ollama models not appearing in Sol
- Verify Ollama is running:
curl http://localhost:11434/api/tags - Check Sol model metadata refresh (every 5 minutes): restart Sol to force immediate discovery
- Ensure the Ollama provider is registered in
sol_provider_boot
Ollama connection refused
Default URL is http://localhost:11434. If Ollama is on a different host:
{
"classifier": {
"base_url": "http://192.168.1.100:11434"
}
}
AI Permission Classifier
Classifier always falls back to dialog
- Verify
permission_modeis set toauto - Verify
classifier.enabledistrue - Verify Ollama is running and the classifier model is pulled:
ollama pull qwen2.5-coder:7b - Check logs for classifier errors:
~/.luna/logs/
Classifier is too permissive / too restrictive
Adjust the confidence threshold:
More permissive: lower threshold (e.g., 0.7)
More restrictive: raise threshold (e.g., 0.95)
{
"classifier": {
"confidence_threshold": 0.95
}
}
Classifier adds latency to tool approval
The classifier has a 5-second timeout. If it’s consistently slow:
- Use a smaller/faster model (e.g.,
qwen2.5-coder:1.5b) - Reduce timeout:
"timeout": 3 - The LRU cache (64 entries) avoids re-classifying identical invocations
Sub-Agents
Sub-agent times out
Local sub-agents use the same provider timeout as the parent. Increase max_tokens and max_iterations in the mode config if sub-agents need more steps.
Sub-agent recursion blocked
The _no_recursion flag prevents sub-agents from spawning their own sub-agents. This is intentional — the recursion guard prevents unbounded agent spawning.
Getting Help
Check existing known issues above
Search review/*.md for phase-specific review findings
Search plan/*.md for planned fixes
Check the CHANGELOG for recent changes