{
"id": "20260910015945-2ccf303c",
"kind": "doc",
"target": "10-systems/bots/mardisbot.md",
"summary": "MardisBot is ACTIVE on VM tg_bots (192.168.1.254); correct host and status",
"reason": "Live verification 2026-09-10: MardisBot is running on VM tg_bots (192.168.1.254), not on the tgbots VPS (192.168.1.178). Previous 'missing' status was wrong — the bot was redeployed to the VM after the VPS rebuild.",
"payload": {
"content": "---\ntitle: MardisBot\ndescription: Telegram bot for Mardis group\nhost: tg_bots-vm\nstatus: active\nlast_reviewed: 2026-09-10\nowner: gmikcon\nconfidence: 100\nreview_interval: 90\nsource_of_truth: live_system\n---\n\n# MardisBot\n\nTelegram bot for the Mardis group.\n\n> **STATUS 2026-09-10: ACTIVE** on VM `tg_bots` (192.168.1.254, libvirt VM on\n> hypervisor bserv 192.168.1.130). Verified live via SSH: process running\n> since 2026-08-13, systemd service active.\n>\n> **Naming warning:** there are TWO similarly named hosts. The bot lives on\n> the **VM `tg_bots` (192.168.1.254, hostname `tgbots`)** — NOT on the\n> external VPS `tgbots` (192.168.1.178, hostname `vmk`), which hosts only the\n> marginator web stack. Earlier documentation wrongly placed the bot on the\n> VPS; after the VPS was rebuilt ~2026-08-27 the bot was believed missing,\n> but it had actually been (re)deployed to the VM.\n\n## Live deployment (verified 2026-09-10)\n- **Host**: VM `tg_bots`, 192.168.1.254 (libvirt on bserv, disk\n /mnt/main/vm_main/tg_bots, bridge br0, MAC 52:54:00:94:4b:e0)\n- **User**: `ubuntu` (password in gnexus-creds secret \"tgbots\")\n- **Project Path**: `/home/ubuntu/bots/MardisBot`\n- **Main Script**: `bot.py` (venv: `/home/ubuntu/bots/MardisBot/venv`,\n Python 3.10)\n- **Config**: `.env` in project dir (bot token, not documented here)\n- **Dependencies**: python-telegram-bot[job-queue], python-dotenv\n (requirements.txt)\n\n## systemd service\n- **Service Name**: `mardisbot.service` — active (running), enabled\n- **Unit File**: `/etc/systemd/system/mardisbot.service`\n- **Running since**: 2026-08-13 08:51:30 UTC\n- **Memory**: ~40 MB\n\n### Service management\n```bash\nsudo systemctl status mardisbot.service\nsudo journalctl -u mardisbot.service -f\nsudo systemctl restart mardisbot.service\n```\n\n## Health notes (2026-09-10)\n- Occasional `telegram.error.NetworkError: Bad Gateway` in journal\n (transient Telegram API/network blips; network_retry_loop recovers\n automatically). No error handlers registered in bot.py — cosmetic only."
},
"status": "applied",
"created_at": "2026-09-10T01:59:45Z",
"updated_at": "2026-09-10T01:59:46Z",
"applied_at": "2026-09-10T01:59:46Z",
"validation": {
"status": "ok",
"issue_count": 0,
"issues": []
}
}