Files
ROMFASTSQL/proxmox/lxc110-moltbot
Claude Agent ae325d33b6 Update LXC 110 MoltBot: OpenClaw v2026.2.9 și RAM 4GB
Modificări după upgrade MoltBot → OpenClaw:
- RAM crescut de la 2GB la 4GB (minim recomandat pentru OpenClaw)
- Versiune actualizată: OpenClaw v2026.2.9 (fost MoltBot v2026.1.24-3)
- Adăugat troubleshooting pentru OOM kill issues
- Curățate sesiuni vechi (85 → 80)

Problema rezolvată: Gateway-ul era omorât de OOM killer din cauza
memoriei insuficiente (975MB peak cu doar 2GB RAM total).

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-10 08:30:48 +00:00
..

LXC 110 - MoltBot (AI Chatbot)

Director: proxmox/lxc110-moltbot/ VMID: 110 IP: 10.0.20.173 (intern) | 100.120.119.70 (Tailscale) Host Proxmox: pveelite (10.0.20.202) Rol: Bot AI pentru Telegram și WhatsApp cu Claude Opus 4.5


Informații Container

Parametru Valoare
VMID 110
Hostname moltbot
IP intern 10.0.20.173
IP Tailscale 100.120.119.70
Host Proxmox pveelite (10.0.20.202)
User serviciu moltbot
Parola user Moltbot2026!
Storage local-zfs (8GB)
RAM 4GB
CPU 2 cores
OS Ubuntu 24.04 LTS

Componente Instalate

  • Ubuntu 24.04 LTS
  • OpenClaw v2026.2.9 (upgraded from MoltBot/clawdbot)
  • Node.js v22.22.0 (user-space)
  • Bun v1.3.7
  • Tailscale (pentru SSH, fără funnel)
  • UFW Firewall
  • Fail2ban

Canale Configurate

Canal Status Detalii
Telegram ON Bot token configurat
WhatsApp ON Linked la +40723197939

Model AI

  • Provider: Anthropic
  • Model: claude-opus-4-5
  • Context: 200k tokens

Securitate

Măsură Status
User dedicat (non-root) moltbot
SSH key-only auth Activat
UFW Firewall Activat
Fail2ban SSH Activat
Tailscale SSH Activat
Sudo limitat Doar systemctl
Linger enabled Da (serviciu persistent)

Reguli Firewall UFW

22/tcp                     ALLOW IN    Anywhere
18789                      ALLOW IN    10.0.20.0/24 (MoltBot Dashboard)
Anywhere                   ALLOW IN    10.0.20.0/24 (rețea locală)
Anywhere                   ALLOW IN    100.64.0.0/10 (Tailscale)

Configurare Sudo

User moltbot are sudo passwordless doar pentru:

  • systemctl status *
  • systemctl start *
  • systemctl stop *
  • systemctl restart *

Conectare

SSH (rețea internă)

ssh moltbot@10.0.20.173

SSH (Tailscale - de oriunde)

ssh moltbot@100.120.119.70

Acces root (pentru administrare)

ssh root@10.0.20.173

MoltBot - Comenzi

Terminal UI (TUI)

# Conectare și TUI într-o singură comandă
ssh -t moltbot@10.0.20.173 "clawdbot tui"

# Sau conectare separată
ssh moltbot@10.0.20.173
clawdbot tui

Web Dashboard (via SSH Tunnel)

# Pe calculatorul local, deschide tunnel
ssh -L 18789:127.0.0.1:18789 -N moltbot@10.0.20.173 &

# Apoi accesează în browser
# http://localhost:18789

Comenzi utile

# Status complet
clawdbot status

# Status detaliat
clawdbot status --deep

# Verificare versiune
clawdbot --version

# Restart gateway
clawdbot gateway restart

# Vezi loguri live
clawdbot logs --follow

# Verificare canale
clawdbot status --deep

# Gestionare dispozitive (pairing)
clawdbot devices list
clawdbot devices approve <request-id>

Configurare Gateway

Parametru Valoare
Port 18789
Bind loopback (doar local)
Auth token + password
Tailscale mode off

Fișiere configurare

Fișier Descriere
~/.clawdbot/clawdbot.json Configurare principală
~/.clawdbot/logs/gateway.log Loguri gateway
~/.clawdbot/agents/main/sessions/ Sesiuni agent
~/.clawdbot/credentials/ Credențiale (chmod 700)

Structura Directoare

/home/moltbot/
├── .ssh/
│   └── authorized_keys      # Chei SSH pentru acces
├── .bun/                    # Bun runtime
├── .local/
│   └── share/moltbot/
│       └── node/            # Node.js user-space
├── .clawdbot/
│   ├── clawdbot.json        # Config MoltBot
│   ├── credentials/         # Credențiale (chmod 700)
│   ├── agents/
│   │   └── main/
│   │       └── sessions/    # Sesiuni chat
│   └── logs/
│       └── gateway.log      # Loguri
├── clawd/                   # Workspace pentru agent
└── .bashrc                  # PATH pentru node/bun

Servicii Systemd

Gateway Service

# Status
systemctl --user status clawdbot-gateway

# Restart
systemctl --user restart clawdbot-gateway

# Logs
journalctl --user -u clawdbot-gateway -f

Administrare via Proxmox

De pe pvemini (sau alt nod cluster)

# Status container
ssh root@10.0.20.202 "pct status 110"

# Exec comandă
ssh root@10.0.20.202 "pct exec 110 -- <comandă>"

# Stop/Start
ssh root@10.0.20.202 "pct stop 110"
ssh root@10.0.20.202 "pct start 110"

# Console
ssh root@10.0.20.202 "pct enter 110"

Troubleshooting

OpenClaw gateway se restartează continuu (OOM kill)

# Verifică dacă este omorât de OOM killer
journalctl --user -u openclaw-gateway | grep -i oom

# Verifică consumul de memorie
free -h
systemctl --user status openclaw-gateway

# Soluție: Crește RAM-ul containerului pe Proxmox
# ssh root@pveelite
# pct stop 110
# pct set 110 --memory 4096  # 4GB (minim recomandat pentru OpenClaw)
# pct start 110

# Curăță sesiunile vechi pentru a reduce consumul
openclaw sessions clean --older-than 7d

MoltBot gateway nu pornește

# Verifică logs
clawdbot logs --follow

# Verifică status
clawdbot status

# Restart
clawdbot gateway restart

# Rulare manuală pentru debug
/usr/bin/node /usr/lib/node_modules/clawdbot/dist/entry.js gateway --port 18789

Gateway unreachable

# Verifică dacă portul e ocupat
ss -tlnp | grep 18789

# Verifică serviciul systemd
systemctl --user status clawdbot-gateway

# Restart complet
systemctl --user restart clawdbot-gateway

Eroare "gateway not connected" în TUI

# Gateway-ul probabil s-a oprit, restartează-l
clawdbot gateway restart

Telegram/WhatsApp nu răspunde

# Verifică starea canalelor
clawdbot status --deep

# Pentru Telegram, verifică token-ul
grep botToken ~/.clawdbot/clawdbot.json

# Pentru WhatsApp, verifică link-ul
clawdbot status | grep WhatsApp

Probleme de permisiuni

# Setează permisiunile corecte
chmod 700 ~/.clawdbot
chmod 700 ~/.clawdbot/credentials
chmod 600 ~/.clawdbot/clawdbot.json

Tailscale nu funcționează

sudo systemctl status tailscaled
sudo tailscale status
tailscale ip

Backup

Backup configurare MoltBot

# De pe mașina locală
scp -r moltbot@10.0.20.173:~/.clawdbot ./backup-moltbot-$(date +%Y%m%d)/

Backup complet LXC (via Proxmox)

ssh root@10.0.20.202 "vzdump 110 --storage local --compress zstd"

Provider AI - Anthropic

MoltBot folosește Anthropic Claude prin API key configurat în:

  • Config: ~/.clawdbot/clawdbot.jsonauth.profiles.anthropic:default
  • Credențiale: ~/.clawdbot/credentials/

Monitorizare costuri

Reconfigurare (dacă e necesar)

Rulare wizard onboarding

clawdbot onboard

Resetare completă

# Oprește gateway
clawdbot gateway stop

# Backup config vechi
mv ~/.clawdbot ~/.clawdbot.backup

# Rulează onboarding fresh
clawdbot onboard

Legături Utile


Data setup: 2026-01-29 Ultima actualizare: 2026-01-29 Autor: Claude Code