Troubleshooting
| Symptom | Fix |
|---|---|
adb devices shows offline, or adb commands hang |
adb kill-server && adb connect <phone>:5555 (scripts/adb-reconnect.sh). Always wrap adb in timeout 20. |
unauthorized |
Accept the RSA prompt on the phone; tick "Always allow". |
failed to connect ... 5555 after a reboot |
Wireless debugging is off / tcpip reset. Turn it on, adb connect <lan-ip>:<port>, adb tcpip 5555. |
tailscale ping times out |
Phone left Tailscale or Wi-Fi. Open Tailscale on the phone; enable Always-on VPN. If the controller's own Tailscale is stuck: sudo tailscale down && sudo tailscale up. Restart tailscaled if the control plane times out. |
| Tailscale shows "DNS unavailable" on the phone | The phone's Wi-Fi/DNS is bad. Restart the router / extender, check the phone is on the main router, not a weak extender. |
| Works via DERP only (slow) | Normal behind CGNAT. Optional: allow UDP 41641 outbound, or ignore it, it works. |
| Lamps / TV "not found" | Their IPs changed (power cut, router reboot). ./scripts/lamps.py discover (ping sweep + ip neigh, match MAC). If a device is missing from ip neigh, it's off Wi-Fi: restart the Wi-Fi extender. Use DHCP reservations to stop IP shuffling. |
| Scheduled lamp change missed | Phone was unreachable at that time, or the bulb dropped off Wi-Fi. The scheduler deliberately doesn't catch up; run it manually. The WiZ app schedules (on-bulb) are a good backup. |
| Termux sshd gone | Android killed Termux: set battery to Unrestricted, keep termux-wake-lock, add Termux:Boot. |
| Screen-off network drops | Run keepawake.sh (wakes only while charging), dumpsys deviceidle disable. |
uiautomator dump error |
Retry; it fails during animations/video. |
nc hangs |
Use timeout 4 nc -w 2 .... |