Troubleshooting
Common issues and solutions when running Lattice.
Quick Diagnostics#
Run the built-in diagnostics tool:
ada doctor
This checks:
- Daemon status
- Provider connectivity
- Configuration validity
- System requirements
Daemon Issues#
Daemon Not Running#
Symptom: Commands fail with "connection refused" or "daemon not running"
Solution:
# Check daemon status
lattice-ctl ping
# Start the daemon
lattice-ctl daemon start
# Or start the service
lattice-ctl service start
Daemon Won't Start#
Symptom: lattice-ctl daemon start fails
Check the logs:
# macOS (launchd service)
cat ~/.lovelace/lattice/daemon.log
# Linux (systemd user service)
journalctl --user -u com.lovelace.lattice-daemon -n 50
# Any platform: run in the foreground to see output directly
lattice-ctl daemon start --foreground
Common causes:
- Port already in use – Another process is using the socket
- Permission denied – Check file permissions on config directory
- Invalid configuration – Validate config:
lattice-ctl config validate
Daemon Crashes#
Symptom: Daemon starts but crashes shortly after
Solution:
- Check logs for error messages
- Reset configuration:
lattice-ctl config reset -f - Restart:
lattice-ctl daemon start
Provider Issues#
Provider Connection Failed#
Symptom: ada chat fails with connection errors
Test the provider:
ada config provider test
Common causes:
-
Invalid API key – Check your API key:
ada config provider show <provider> --show-secrets -
Network issues – Check internet connection for cloud providers
-
Ollama not running – For local models:
# Start Ollama ollama serve # Test connection ada config provider test ollama
Wrong Model#
Symptom: Getting unexpected model responses
Check active provider and model:
ada config provider list
ada config provider show <active_provider>
Switch models:
ada config provider set <provider> --model <model_name>
Rate Limiting#
Symptom: Requests fail with rate limit errors
Solutions:
- Wait and retry
- Switch to a different provider
- Use a local model (Ollama) for unlimited requests
Agent Issues#
Agent Won't Start#
Symptom: ada agents start fails
Check:
-
Daemon is running:
lattice-ctl ping -
Provider is configured:
ada config provider list -
Active provider works:
ada config provider test
Agent Stuck#
Symptom: Agent shows as "running" but not making progress
Solutions:
-
Check agent status:
ada agents status <agent_id> -
Force stop and restart:
ada agents stop <agent_id> --force ada agents start "your task"
Can't Find Agent#
Symptom: Agent ID not found
List all agents:
ada agents list --verbose
Agents may have completed or been stopped. Check if it's in a different workspace:
ada agents list --workspace <workspace_id>
Session Issues#
Session Not Saving#
Symptom: Chat history not persisting
Check daemon is running:
lattice-ctl ping
Sessions are stored in the daemon's SQLite database. If the daemon isn't running, sessions won't persist.
Can't Resume Session#
Symptom: ada sessions resume fails
List available sessions:
ada sessions list
Check session exists:
ada sessions info <session_id>
Configuration Issues#
Invalid Configuration#
Symptom: Commands fail with config errors
Validate configuration:
lattice-ctl config validate
Reset to defaults:
lattice-ctl config reset -f
Config Changes Not Applied#
Symptom: Changed config but behavior unchanged
Apply changes:
lattice-ctl config set <key> <value> --apply
Or restart the daemon:
lattice-ctl daemon stop
lattice-ctl daemon start
Installation Issues#
Command Not Found#
Symptom: lattice-ctl: command not found or ada: command not found
Solutions:
-
Reinstall: re-download and install the Lattice package for your platform from the downloads page (see the installation guides).
-
Check PATH:
echo $PATH which lattice-ctl which ada -
Reload shell:
source ~/.bashrc # or ~/.zshrc
Permission Denied#
Symptom: Commands fail with permission errors
Solutions:
-
Fix ownership:
# macOS/Linux sudo chown -R $USER ~/.lovelace -
Check service permissions:
lattice-ctl service status
Network Issues#
A Paired Device Does Not Appear Online#
Symptom: A device you paired is missing or offline in ada devices list
Check:
- The Lattice daemon is running on that device (
lattice-ctl daemon status) - The device has an internet connection, because paired devices connect through the Lovelace relay
- The device is still paired. Run
ada devices listand pair it again withada pairif it is gone
Cloud Sync Failed#
Symptom: Hybrid mode sync not working
Check authentication:
ada auth status
Re-authenticate:
ada auth logout
ada auth login
Performance Issues#
Slow Response Times#
Possible causes:
-
Cloud provider latency – Try a local model:
ada config provider activate ollama -
Large context – Start a fresh session:
ada chat -
System resources – Check CPU/memory usage
High Memory Usage#
Solutions:
-
Stop unused agents:
ada agents list ada agents stop <agent_id> -
Clear old sessions:
ada sessions list ada sessions delete <old_session_id> -
Restart daemon:
lattice-ctl daemon stop lattice-ctl daemon start
Getting Help#
Collect Diagnostics#
ada doctor > diagnostics.txt
lattice-ctl status >> diagnostics.txt
lattice-ctl config show >> diagnostics.txt
Check Logs#
macOS (launchd service):
cat ~/.lovelace/lattice/daemon.log
Linux (systemd user service):
journalctl --user -u com.lovelace.lattice-daemon -n 100
Any platform: run the daemon in the foreground to see its output:
lattice-ctl daemon start --foreground
Report Issues#
If you're still stuck, collect the diagnostics above and report the issue with:
- What you were trying to do
- The exact error message
- Output of
ada doctor - Relevant log entries