Troubleshooting
Disk space
Symptom: The container stops working, logs show disk-related errors, or WeChat becomes unresponsive.
Cause: WeChat accumulates messages, media, and cache files over time. The Docker volume can fill up.
Fix:
-
Check disk usage:
Terminal window docker system df -v | grep agent-wechat -
If the volume is full, you can:
- Increase disk space on the host
- Wipe WeChat data and start fresh (you’ll need to re-scan the QR code):
Terminal window wx downdocker volume rm agent-wechat-homewx upwx auth login
Prevention: Monitor disk usage and provision enough storage. 10 GB is a minimum; active accounts may need 20 GB+.
”No action selected” errors
Symptom: The logs show “no action selected” repeatedly. The bot may stop responding.
Cause: The FSM engine couldn’t find a matching action for the current UI state. This can happen when WeChat shows an unexpected dialog, popup, or update prompt.
Fix:
- Check the VNC viewer at
http://localhost:6174/vnc/to see what’s on screen - If there’s an unexpected dialog, you may need to dismiss it manually via VNC
- Restart the container:
Terminal window wx down && wx up
Not receiving new messages
Symptom: The bot is logged in but doesn’t see new messages.
Cause: This can happen if:
- The WeChat UI is in an unexpected state
- The polling loop is stuck
- The WeChat session has silently expired
Fix:
-
Check login status:
Terminal window wx auth status -
Check the VNC viewer to see the UI state
-
Restart the container:
Terminal window wx down && wx up -
If restarting doesn’t help, wipe WeChat data and re-login:
Terminal window wx downdocker volume rm agent-wechat-homewx upwx auth login
Container won’t start
Symptom: wx up or docker compose up fails.
Cause: Usually missing capabilities or Docker configuration issues.
Fix:
- Ensure Docker is running
- Check that your Docker setup supports
SYS_PTRACEandseccomp=unconfined:Terminal window docker run --rm --security-opt seccomp=unconfined --cap-add SYS_PTRACE alpine echo "OK" - On macOS with Colima, ensure Colima is started:
colima start
QR code won’t scan
Symptom: The QR code appears but WeChat won’t scan it.
Fix:
- Make sure you’re using WeChat’s built-in scanner (tap + > Scan), not a generic QR scanner
- The QR code must be displayed on a separate screen from the phone running WeChat — WeChat’s scanner uses the camera only, it cannot scan from the phone’s gallery
- QR codes expire after a few minutes. If it doesn’t work, run
wx auth loginagain to get a fresh one - Try
wx auth login --newto force a new account login instead of reusing an existing session
WeChat session disconnects
Symptom: The bot was working but suddenly stops. Login status shows logged out.
Cause: WeChat sessions can disconnect when:
- The server or container restarts
- The WeChat account is logged in on another desktop
- WeChat’s servers force a re-authentication
Fix:
Run wx auth login — if the disconnection was brief, you may not need a new QR scan. If a QR code appears, scan it again.