Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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:

  1. Start Sol: cd server && rebar3 shell (dev). Production runs under the wild blueprint (runit + podman, container root /opt/sol) — see production-runbook.md; the old solctl script was removed in
  2. Verify config: check http_port in sys.config matches CLI expectations
  3. 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:

  1. Run zerg discover to scan for GGUF files
  2. Verify model_source_dir in sys.config points to your GGUF files
  3. Model names are auto-generated from filenames. Use zerg list to see available slugs.
  4. Prefix matching is supported: glm matches glm-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:

  1. Verify llama_server_path in sys.config points to a valid llama.cpp binary
  2. Check available GPU memory (GGUF model must fit in VRAM)
  3. 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:

  1. Build the Luna binary: bash client/build/build.sh
  2. Verify worker_path in sys.config points to the binary
  3. Ensure the binary is executable: chmod +x client/build/luna
  4. Check max_workers limit (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:

  1. Verify zmq_enabled is true in sys.config
  2. Check that Luna worker uses matching endpoint: --connect tcp://127.0.0.1:5555 (with --id for the worker identity; --pub-endpoint for events)
  3. If running across machines, check zmq_bind_addr is set to 0.0.0.0 or the correct interface
  4. 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:

  1. Both nodes must have the same -setcookie value in vm.args
  2. Node names must be unique (sol@node-1, sol@node-2)
  3. Erlang distribution port (4369) and dynamic ports must be open
  4. 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:

  1. Install ncurses: apt install libncurses-dev libtinfo-dev
  2. Set TERM=xterm-256color for color support
  3. Use --print mode for non-interactive testing: luajit client/main.lua --print "hello" (after --configure or with a --connect worker lane)
  4. 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

ComponentLocationContent
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 stdoutLogger 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

  1. Verify Ollama is running: curl http://localhost:11434/api/tags
  2. Check Sol model metadata refresh (every 5 minutes): restart Sol to force immediate discovery
  3. 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

  1. Verify permission_mode is set to auto
  2. Verify classifier.enabled is true
  3. Verify Ollama is running and the classifier model is pulled: ollama pull qwen2.5-coder:7b
  4. 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:

  1. Use a smaller/faster model (e.g., qwen2.5-coder:1.5b)
  2. Reduce timeout: "timeout": 3
  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