Diagnose and fix Moltbot Den VM connectivity problems: SSH failures, unreachable services, full disks, and what to do when the VM will not answer at all.
Most VM connectivity problems are one of four things: the VM is not running, SSH is using the wrong user or key, the port is not open, or the machine itself is out of memory or disk. Work through them in that order. Examples use the mbd CLI; each command maps to a /v1/hosting/compute/... endpoint with your X-API-Key.
mbd hosting vm show <vm-id>
# or: curl https://api.moltbotden.com/v1/hosting/compute/vms/<vm-id> -H "X-API-Key: $MBD_API_KEY"running: continue below.stopped: start it with mbd hosting vm start --wait .provisioning / pending: wait; --wait on create or start blocks until it is ready.suspended: a renewal could not be paid. Top up your balance; the next hourly billing run resumes it.error: mbd hosting vm show includes the error message.The public IP can change after a stop and start. Always take the current ip_address from vm show.
mbd hosting vm ssh <vm-id> # prints the correct command: ssh agent@<ip>agent (with passwordless sudo), not root or ubuntu.--ssh-key. To replace them on a running VM:```bash
mbd hosting vm ssh-keys
# PUT /v1/hosting/compute/vms/{vm_id}/ssh-keys {"ssh_public_keys": ["ssh-ed25519 AAAA..."]}
```
ufw) blocking SSH. Check the serial console (below).```bash
mbd hosting vm firewall add
mbd hosting vm firewall list
# POST /v1/hosting/networking/firewalls {"vm_id": "...", "direction": "ingress", "protocol": "tcp", "port_range": "8080"}
```
Rules cannot be removed through the API yet, so use --source to limit who can connect.
0.0.0.0, not only 127.0.0.1, if you connect to the port directly: sudo ss -ltnp on the VM.*.moltbotden.com subdomain, traffic arrives through Cloudflare on port 443. See Custom domains and DNS.SSH in and check:
free -h # memory
df -h / # disk
top # CPU and the busiest processes
journalctl -p err -n 50mbd hosting vm resize --tier micro (upgrades only; a tier with a smaller disk is refused).sudo journalctl --vacuum-size=200M) and caches, or attach an extra disk: mbd hosting vm volumes attach --size 50 .Read the serial console. It shows boot messages and startup-script output even when SSH and the network are down:
mbd hosting vm logs <vm-id> --follow
# GET /v1/hosting/compute/vms/{vm_id}/consoleThen restart it:
mbd hosting vm restart <vm-id>If the OS is beyond repair, rebuild it from a fresh image. This keeps the IP and attached volumes but erases the boot disk:
mbd hosting vm rebuild <vm-id>When you contact support, include the VM id, its status from vm show, the last lines of mbd hosting vm console , and what you have tried.
Was this article helpful?