Health Check
Quick commands to verify your bridge is healthy and troubleshoot common issues.
Is it running?
bash
abtars status # shows bridge state, version, mode
abtars daemon status # shows systemd service state (daemon mode)Expected:
mode: supervised-daemon
bridge: ● running (pid 1234)Doctor
bash
abtars doctor # checks permissions, config, DB, services
abtars doctor --fix # auto-fix what it canDoctor checks:
- File permissions (secrets 600, config 600)
- Required dirs exist
- Config files present
- Memory DB accessible
- Ollama reachable
- Embedding model available
Logs
bash
# Live bridge log
tail -f ~/.abtars/logs/bridge-$(date +%F).log
# Last 20 errors
grep ERROR ~/.abtars/logs/bridge-$(date +%F).log | tail -20
# Systemd journal (daemon mode)
journalctl -u abtars --since "10 min ago"
# Watchdog log
tail -20 ~/.abtars/logs/launchd.logCommon checks
Telegram not responding
bash
# Is Telegram polling?
grep "Telegram polling started" ~/.abtars/logs/bridge-$(date +%F).log | tail -1
# Token loaded?
grep "overridden" ~/.abtars/logs/bridge-$(date +%F).log | tail -1
# Should show "N overridden" where N > 0 (secrets loaded)
# 409 conflict (another instance polling same token)?
grep "409" ~/.abtars/logs/bridge-$(date +%F).log | tail -3Memory not working
bash
# Memory enabled?
grep "Memory enabled" ~/.abtars/logs/bridge-$(date +%F).log | tail -1
# Symlink exists?
ls -la ~/.abtars/current/node_modules/abmind
# Key file exists?
ls ~/.abmind/secret/abmind.keyModel errors
bash
# Model health
grep "model-health" ~/.abtars/logs/bridge-$(date +%F).log | tail -5
# Demotions
grep "demote" ~/.abtars/logs/bridge-$(date +%F).log | tail -5
# Transport type
grep "Transport ready\|ACP transport\|Direct API" ~/.abtars/logs/bridge-$(date +%F).log | tail -3Bridge keeps restarting
bash
# Restart reasons
grep "restart\|SIGTERM\|exit" ~/.abtars/logs/bridge-$(date +%F).log | tail -10
# Circuit breaker (too many restarts)
grep "circuit" ~/.abtars/logs/bridge-$(date +%F).log | tail -3
# Watchdog state
grep "Suspend\|grace\|Killing" ~/.abtars/logs/launchd.log | tail -5Quick fixes
| Problem | Fix |
|---|---|
| Bridge dead, service active | sudo systemctl restart abtars |
| Stale PID / EADDRINUSE | abtars stop --force && sudo systemctl start abtars |
| Secrets not decrypting | Check ~/.abmind/secret/abmind.key exists (run abmind install) |
| Model 404 / demoted | abtars update (clears demotions) |
| Memory unavailable | abmind install then restart |
| Permissions wrong | abtars doctor --fix |
| Soul missing | Check ~/.abmind/memory/core/SOUL.md exists |
Full reset (nuclear option)
bash
sudo systemctl stop abtars
rm -rf ~/.abtars ~/.abmind
# Then re-install from scratch (see install page)