Troubleshooting¶
First steps¶
Before diving into specific issues:
# Run the health check
missy doctor
# Check provider availability
missy providers
# Review recent errors in the audit log
missy audit recent --limit 20
Provider issues¶
"Provider not available"¶
Symptoms: missy providers shows a provider as unavailable.
Causes and fixes:
- Check that the API key is set:
- Verify the key format -- must start with
sk-ant-api(notsk-ant-oat, which is a setup token). - Check network policy allows
api.anthropic.com:
"Request timeout"¶
Increase the timeout in provider config:
Large local models (70B+) may need 60-120 seconds for first inference.
Rate limit errors¶
If you hit rate limits:
- Configure API key rotation with multiple keys:
- Use the
ModelRouterto route simple queries to cheaper/faster models.
Policy denials¶
"Policy denied execution of tool"¶
The policy engine blocked a tool because the required permission is not granted.
Check the audit log for details:
Common fixes:
"Network policy denied"¶
All outbound HTTP passes through PolicyHTTPClient. If a request is blocked:
- Check which host was denied in the audit log.
- Add it to the appropriate allow list:
network:
allowed_domains:
- "example.com" # General
provider_allowed_hosts:
- "api.anthropic.com" # Provider-specific
tool_allowed_hosts:
- "api.weather.com" # Tool-specific
discord_allowed_hosts:
- "discord.com" # Discord-specific
Voice channel issues¶
Edge node cannot connect¶
-
Verify the server is running:
-
Check the server is listening on the correct interface:
-
Test connectivity from the Pi:
-
Check firewall rules on the server.
"auth_fail" in edge node logs¶
-
Verify the device is paired:
-
Check the token is correct and properly provisioned:
-
If the token is lost, re-pair:
No audio response (STT/TTS issues)¶
-
Check STT engine is loaded:
-
Verify faster-whisper is installed:
-
Verify Piper binary is available:
-
Check the voice model exists:
Wake word not triggering¶
See the Wake Word troubleshooting section.
Discord issues¶
Bot not responding¶
-
Check the bot token is valid:
-
Verify Discord is enabled in config:
-
Check guild policies allow the channel:
-
Check network policy allows Discord hosts:
Slash commands not showing¶
-
Register commands:
-
For global commands, wait up to 1 hour for propagation.
-
Verify the bot has
applications.commandsscope in the invite URL.
Config issues¶
Config not loading¶
-
Validate YAML syntax:
-
Check file permissions:
-
Roll back to a working config:
Hot-reload not working¶
The ConfigWatcher polls the config file every 1 second with a 2-second debounce. If changes are not being picked up:
- Verify the file was actually modified (check
stat). - Check for YAML syntax errors in the updated file.
- Review logs at
debuglevel for reload messages.
Memory and performance¶
High memory usage¶
-
Clean up old sessions:
-
Reduce the context window:
Slow responses¶
-
Check if you are hitting the circuit breaker:
The circuit breaker opens after 5 consecutive failures with exponential backoff (60s base, 300s max). -
Switch to a faster provider or model:
Getting help¶
If you are stuck:
- Run
missy doctorand note any failures. - Check
~/.missy/audit.jsonlfor recent error events. - Set
log_level: "debug"temporarily for detailed logs. - Open an issue at github.com/MissyLabs/missy/issues with the doctor output and relevant audit log entries.