2025-12-09 17:51:05 +00:00
---
summary: "Quick troubleshooting guide for common Clawdis failures"
read_when:
- Investigating runtime issues or failures
---
2025-12-03 15:45:32 +00:00
# Troubleshooting 🔧
When your CLAWDIS misbehaves, here's how to fix it.
## Common Issues
### "Agent was aborted"
The agent was interrupted mid-response.
**Causes:**
- User sent `stop` , `abort` , `esc` , or `exit`
- Timeout exceeded
- Process crashed
**Fix:** Just send another message. The session continues.
### Messages Not Triggering
2025-12-24 00:22:57 +00:00
**Check 1:** Is the sender in `routing.allowFrom` ?
2025-12-03 15:45:32 +00:00
```bash
2025-12-24 00:22:57 +00:00
cat ~/.clawdis/clawdis.json | jq '.routing.allowFrom'
2025-12-03 15:45:32 +00:00
```
**Check 2:** For group chats, is mention required?
```bash
# The message must contain a pattern from mentionPatterns
2025-12-24 00:22:57 +00:00
cat ~/.clawdis/clawdis.json | jq '.routing.groupChat'
2025-12-03 15:45:32 +00:00
```
**Check 3:** Check the logs
```bash
2025-12-13 13:25:49 +00:00
tail -f "$(ls -t /tmp/clawdis/clawdis-*.log | head -1)" | grep "blocked\\|skip\\|unauthorized"
2025-12-03 15:45:32 +00:00
```
### Image + Mention Not Working
Known issue: When you send an image with ONLY a mention (no other text), WhatsApp sometimes doesn't include the mention metadata.
**Workaround:** Add some text with the mention:
- ❌ `@clawd` + image
- ✅ `@clawd check this` + image
### Session Not Resuming
**Check 1:** Is the session file there?
```bash
ls -la ~/.clawdis/sessions/
```
**Check 2:** Is `idleMinutes` too short?
```json
{
"session": {
"idleMinutes": 10080 // 7 days
}
}
```
2025-12-22 20:36:34 +01:00
**Check 3:** Did someone send `/new` , `/reset` , or a reset trigger?
2025-12-03 15:45:32 +00:00
### Agent Timing Out
Default timeout is 30 minutes. For long tasks:
```json
{
"reply": {
"timeoutSeconds": 3600 // 1 hour
}
}
```
Or use the `process` tool to background long commands.
### WhatsApp Disconnected
```bash
2025-12-13 13:25:49 +00:00
# Check local status (creds, sessions, queued events)
2025-12-03 15:45:32 +00:00
clawdis status
2025-12-15 10:11:18 -06:00
# Probe the running gateway + providers (WA connect + Telegram + Discord APIs)
2025-12-13 13:25:49 +00:00
clawdis status --deep
2025-12-03 15:45:32 +00:00
# View recent connection events
2025-12-13 13:25:49 +00:00
tail -100 /tmp/clawdis/clawdis-*.log | grep "connection\\|disconnect\\|logout"
2025-12-03 15:45:32 +00:00
```
2025-12-13 13:25:49 +00:00
**Fix:** Usually reconnects automatically once the Gateway is running. If you’ re stuck, restart the Gateway process (however you supervise it), or run it manually with verbose output:
2025-12-03 15:45:32 +00:00
```bash
2025-12-13 13:25:49 +00:00
clawdis gateway --verbose
2025-12-03 15:45:32 +00:00
```
2025-12-13 13:25:49 +00:00
If you’ re logged out / unlinked:
2025-12-03 15:45:32 +00:00
```bash
2025-12-13 13:25:49 +00:00
clawdis logout
rm -rf ~/.clawdis/credentials # if logout can't cleanly remove everything
clawdis login --verbose # re-scan QR
2025-12-03 15:45:32 +00:00
```
### Media Send Failing
**Check 1:** Is the file path valid?
```bash
ls -la /path/to/your/image.jpg
```
**Check 2:** Is it too large?
- Images: max 6MB
- Audio/Video: max 16MB
- Documents: max 100MB
**Check 3:** Check media logs
```bash
2025-12-13 13:25:49 +00:00
grep "media\\|fetch\\|download" "$(ls -t /tmp/clawdis/clawdis-*.log | head -1)" | tail -20
2025-12-03 15:45:32 +00:00
```
### High Memory Usage
CLAWDIS keeps conversation history in memory.
**Fix:** Restart periodically or set session limits:
```json
{
"session": {
"historyLimit": 100 // Max messages to keep
}
}
```
2026-01-01 15:38:27 +01:00
## macOS Specific Issues
### App Crashes when Granting Permissions (Speech/Mic)
If the app disappears or shows "Abort trap 6" when you click "Allow" on a privacy prompt:
**Fix 1: Reset TCC Cache**
```bash
tccutil reset All com.steipete.clawdis.debug
```
**Fix 2: Force New Bundle ID**
If resetting doesn't work, change the `BUNDLE_ID` in `scripts/package-mac-app.sh` (e.g., add a `.test` suffix) and rebuild. This forces macOS to treat it as a new app.
### Gateway stuck on "Starting..."
The app connects to a local gateway on port `18789` . If it stays stuck:
**Fix 1: Kill Zombie Processes**
Another process might be holding the port.
```bash
lsof -nP -i :18789
# Kill any matching PIDs
kill -9 < PID >
```
**Fix 2: Check embedded gateway**
Ensure the gateway relay was properly bundled. Run `./scripts/package-mac-app.sh` and ensure `bun` is installed.
2025-12-03 15:45:32 +00:00
## Debug Mode
Get verbose logging:
```bash
2025-12-13 13:25:49 +00:00
# Turn on trace logging in config:
# ~/.clawdis/clawdis.json -> { logging: { level: "trace" } }
#
# Then run verbose commands to mirror debug output to stdout:
clawdis gateway --verbose
clawdis login --verbose
2025-12-03 15:45:32 +00:00
```
## Log Locations
| Log | Location |
|-----|----------|
2025-12-13 13:25:49 +00:00
| Main logs (default) | `/tmp/clawdis/clawdis-YYYY-MM-DD.log` |
2025-12-03 15:45:32 +00:00
| Session files | `~/.clawdis/sessions/` |
| Media cache | `~/.clawdis/media/` |
| Credentials | `~/.clawdis/credentials/` |
## Health Check
```bash
2025-12-13 13:25:49 +00:00
# Is the gateway reachable?
clawdis health --json
2025-12-03 15:45:32 +00:00
2025-12-13 13:25:49 +00:00
# Is something listening on the default port?
lsof -nP -iTCP:18789 -sTCP:LISTEN
2025-12-03 15:45:32 +00:00
# Recent activity
2025-12-13 13:25:49 +00:00
tail -20 /tmp/clawdis/clawdis-*.log
2025-12-03 15:45:32 +00:00
```
## Reset Everything
Nuclear option:
```bash
rm -rf ~/.clawdis
2025-12-13 13:25:49 +00:00
clawdis login # re-pair WhatsApp
clawdis gateway # start the Gateway again
2025-12-03 15:45:32 +00:00
```
⚠️ This loses all sessions and requires re-pairing WhatsApp.
## Getting Help
2025-12-13 13:25:49 +00:00
1. Check logs first: `/tmp/clawdis/` (default: `clawdis-YYYY-MM-DD.log` , or your configured `logging.file` )
2025-12-03 15:45:32 +00:00
2. Search existing issues on GitHub
3. Open a new issue with:
- CLAWDIS version
- Relevant log snippets
- Steps to reproduce
- Your config (redact secrets!)
---
*"Have you tried turning it off and on again?"* — Every IT person ever
🦞🔧