Part M. Troubleshooting
| Symptom | Likely cause | What to do |
|---|---|---|
| Cloudflare shows error 1033 or 502 | The tunnel is not connected (1033), or the hub is not answering (502) | sudo systemctl status cloudflared-bideward bideward-hub; read the last log lines of each; a wrong or rotated token shows as an authentication error in the tunnel log |
| Tunnel Healthy but the dashboard says the receiver is unavailable | The hub is up but PostgreSQL is not, so durable calls return 503 | sudo systemctl status postgresql; sudo journalctl -u postgresql -n 50 |
| Hub exits at start with a lock message | A second copy is running, or an old process holds the advisory lock | ps aux with grep node; stop the extra copy; wait 10 seconds; start again |
| peer authentication failed | The pg_ident line for that Linux user is missing or misspelled | Check B.4 and J.2; sudo systemctl reload postgresql |
| Bots receive 403 from Cloudflare | Bot Fight Mode, Browser Integrity Check or the ingestion rule | Security → Events shows the rule that fired; switch the setting off or correct the rule (D.6, D.8) |
| A loader shows waiting for approval after the cutover | Expected: loader tokens are not part of the backup (G.4) | Approve it on the dashboard with the control password |
| Dashboard cards freeze but the bots run | WebSocket dropped or Realtime is off | Check the Realtime switch; journalctl for ws close storms; Cloudflare WebSockets On (D.5) |
| No Telegram messages | Wrong chat id or token in hub.env, or the bot was removed from the chat | Send a test from the dashboard; read the hub log for the Telegram error; fix the file; restart the hub |
| Memory keeps growing | A leak or too many loaders | systemd-cgtop; look at the hub’s queue and cache numbers on the health detail page; restart the hub as a stop-gap and send me the numbers |
| Disk filling | Dumps, logs or the round log | df -h; du -sh /var/lib/bideward-backup /var/log/journal /var/lib/postgresql; check partition retention (C.3.6) |
| Time looks wrong in logs | The clock drifted | chronyc tracking; sudo systemctl restart chrony; the server runs on UTC |
| Cannot SSH | Tailscale is not connected on your computer or on the server | Open the Tailscale app, check the machine list; if the server shows offline see the note in L.1 |
| Certificate or HTTPS error in the browser | The hostname is not proxied, or a second level of subdomain was used | DNS shows bideward as proxied (orange cloud); use only app.bideward.com (D.4) |
| A restore drill fails | The dump, key or decrypt step is wrong | Do not wait: tell me the same day, with the exact error line |
← Previous: Part L. If something goes wrong, and retiring the old Worker · Guide index · Next: Part N. Security verification checklist (run before cutover and after every big change) →