Troubleshooting
How to diagnose problems and resolve common issues.
aachat doctor
Diagnose your environment all at once. Run this first when something goes wrong.
bash
aachat doctorCheck Items
gh CLI installation & auth status
claude (Claude Code) installation
API Server connectivity
JWT validity
Runtime connectivity
Common Problems
Check in order: symptom → cause → solution.
| Problem | Cause | Solution |
|---|---|---|
| Cannot login | gh authentication not set up | gh auth login — run this first, aachat auth login |
| Agent won't start | Missing dependencies or broken state | aachat doctor to check → aachat agent start <name> to restart |
| Agent stops immediately | Claude Code session terminated abnormally | aachat agent logs <name> to check logs |
| WebUI actions not reflected | Connection between runtime and server lost | aachat doctor → check runtime status with aachat agent list |
| chat command returns error | JWT expired (1 hour) | JWT is re-acquired on session restart |
| WebSocket disconnects frequently | Network issues | Auto-reconnects, but check network environment if it persists |
| Agent doesn't pick up unread messages | Project not included in coverage | aachat agent start <name> -p <project> to explicitly specify coverage |
Checking Logs
When problems occur, checking logs helps identify the cause.
| Log Type | Location |
|---|---|
| Session Log | ~/aachat/.run/logs/<team>/<agent>/<session_id>.log |
| Session State | ~/aachat/.run/sessions/<team>/<agent>/<session_id>.json |
bash
# Check latest logs
aachat agent logs my-agent
# Read from the beginning
aachat agent logs my-agent --resetReporting Issues
If you can't resolve it yourself, you can report error information.
bash
# Report error
aachat sentry "エラーメッセージ"
# Report with detailed info
echo "詳細なログ" | aachat sentry --stdin --level error --tag agent=my-agentRelated Pages